Commit 690f7c61 authored by François Jacquet's avatar François Jacquet
Browse files

Translate 'Active' string in Food Service programs

parent 1389e0c3
......@@ -64,7 +64,7 @@ Widgets('fsa_status');
Widgets('fsa_barcode');
Widgets('fsa_account_id');
$extra['SELECT'] .= ",coalesce(fssa.STATUS,'"._('Active')."') AS STATUS";
$extra['SELECT'] .= ",coalesce(fssa.STATUS,'" . DBEscapeString( _( 'Active' ) ) . "') AS STATUS";
$extra['SELECT'] .= ",(SELECT BALANCE FROM FOOD_SERVICE_ACCOUNTS WHERE ACCOUNT_ID=fssa.ACCOUNT_ID) AS BALANCE";
if(!mb_strpos($extra['FROM'],'fssa'))
{
......@@ -151,6 +151,6 @@ if(UserStudentID() && empty($_REQUEST['modfunc']))
PopTable('footer');
echo '<BR /><span class="center">'.SubmitButton(_('Save')).'</span>';
echo '<BR /><div class="center">' . SubmitButton( _( 'Save' ) ) . '</div>';
echo '</FORM>';
}
......@@ -5,7 +5,7 @@ Widgets('fsa_status');
Widgets('fsa_barcode');
Widgets('fsa_account_id');
$extra['SELECT'] .= ",coalesce(fssa.STATUS,'Active') AS STATUS";
$extra['SELECT'] .= ",coalesce(fssa.STATUS,'" . DBEscapeString( _( 'Active' ) ) . "') AS STATUS";
$extra['SELECT'] .= ",(SELECT BALANCE FROM FOOD_SERVICE_ACCOUNTS WHERE ACCOUNT_ID=fssa.ACCOUNT_ID) AS BALANCE";
if(!mb_strpos($extra['FROM'],'fssa'))
{
......
......@@ -5,7 +5,7 @@ Widgets('fsa_status');
Widgets('fsa_barcode');
Widgets('fsa_account_id');
$extra['SELECT'] .= ",coalesce(fssa.STATUS,'Active') AS STATUS";
$extra['SELECT'] .= ",coalesce(fssa.STATUS,'" . DBEscapeString( _( 'Active' ) ) . "') AS STATUS";
$extra['SELECT'] .= ",(SELECT BALANCE FROM FOOD_SERVICE_ACCOUNTS WHERE ACCOUNT_ID=fssa.ACCOUNT_ID) AS BALANCE";
if(!mb_strpos($extra['FROM'],'fssa'))
{
......
......@@ -36,7 +36,7 @@ Widgets('fsa_status');
Widgets('fsa_barcode');
Widgets('fsa_account_id');
$extra['SELECT'] .= ",coalesce(fssa.STATUS,'Active') AS STATUS";
$extra['SELECT'] .= ",coalesce(fssa.STATUS,'" . DBEscapeString( _( 'Active' ) ) . "') AS STATUS";
$extra['SELECT'] .= ",(SELECT BALANCE FROM FOOD_SERVICE_ACCOUNTS WHERE ACCOUNT_ID=fssa.ACCOUNT_ID) AS BALANCE";
if(!mb_strpos($extra['FROM'],'fssa'))
{
......@@ -113,7 +113,7 @@ if(UserStudentID() && empty($_REQUEST['modfunc']))
$columns = array('TYPE'=>_('Type'),'DESCRIPTION'=>_('Description'),'AMOUNT'=>_('Amount'));
ListOutput($RET,$columns,'Earlier Transaction','Earlier Transactions',$link,false,array('save'=>false,'search'=>false));
echo '<br /><span class="center">'.SubmitButton(_('Save'),'save').'</span>';
echo '<br /><div class="center">' . SubmitButton(_('Save'),'save') . '</div>';
echo '</TD></TR></TABLE>';
}
......
......@@ -88,7 +88,7 @@ StaffWidgets('fsa_barcode');
StaffWidgets('fsa_exists_Y');
$extra['SELECT'] .= ",(SELECT BALANCE FROM FOOD_SERVICE_STAFF_ACCOUNTS WHERE STAFF_ID=s.STAFF_ID) AS BALANCE";
$extra['SELECT'] .= ",(SELECT coalesce(STATUS,'"._('Active')."') FROM FOOD_SERVICE_STAFF_ACCOUNTS WHERE STAFF_ID=s.STAFF_ID) AS STATUS";
$extra['SELECT'] .= ",(SELECT coalesce(STATUS,'" . DBEscapeString( _( 'Active' ) ) . "') FROM FOOD_SERVICE_STAFF_ACCOUNTS WHERE STAFF_ID=s.STAFF_ID) AS STATUS";
$extra['functions'] += array('BALANCE'=>'red');
$extra['columns_after'] = array('BALANCE'=>_('Balance'),'STATUS'=>_('Status'));
......@@ -152,6 +152,6 @@ if(UserStaffID() && empty($_REQUEST['modfunc']))
PopTable('footer');
echo '<BR /><span class="center">'.SubmitButton(_('Save')).'</span>';
echo '<BR /><div class="center">' . SubmitButton( _( 'Save' ) ) . '</div>';
echo '</FORM>';
}
......@@ -4,7 +4,7 @@ StaffWidgets('fsa_status');
StaffWidgets('fsa_barcode');
StaffWidgets('fsa_exists_Y');
$extra['SELECT'] .= ",(SELECT coalesce(STATUS,'Active') FROM FOOD_SERVICE_STAFF_ACCOUNTS WHERE STAFF_ID=s.STAFF_ID) AS STATUS";
$extra['SELECT'] .= ",(SELECT coalesce(STATUS,'" . DBEscapeString( _( 'Active' ) ) . "') FROM FOOD_SERVICE_STAFF_ACCOUNTS WHERE STAFF_ID=s.STAFF_ID) AS STATUS";
$extra['SELECT'] .= ",(SELECT BALANCE FROM FOOD_SERVICE_STAFF_ACCOUNTS WHERE STAFF_ID=s.STAFF_ID) AS BALANCE";
$extra['functions'] += array('BALANCE'=>'red');
$extra['columns_after'] = array('BALANCE'=>_('Balance'),'STATUS'=>_('Status'));
......
......@@ -4,7 +4,7 @@ StaffWidgets('fsa_status');
StaffWidgets('fsa_barcode');
StaffWidgets('fsa_exists_Y');
$extra['SELECT'] .= ",(SELECT coalesce(STATUS,'Active') FROM FOOD_SERVICE_STAFF_ACCOUNTS WHERE STAFF_ID=s.STAFF_ID) AS STATUS";
$extra['SELECT'] .= ",(SELECT coalesce(STATUS,'" . DBEscapeString( _( 'Active' ) ) . "') FROM FOOD_SERVICE_STAFF_ACCOUNTS WHERE STAFF_ID=s.STAFF_ID) AS STATUS";
$extra['SELECT'] .= ",(SELECT BALANCE FROM FOOD_SERVICE_STAFF_ACCOUNTS WHERE STAFF_ID=s.STAFF_ID) AS BALANCE";
$extra['functions'] += array('BALANCE'=>'red');
$extra['columns_after'] = array('BALANCE'=>_('Balance'),'STATUS'=>_('Status'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment