opensis-svn Mailing List for openSIS
Brought to you by:
aecioneto,
fxrsliberty
You can subscribe to this list here.
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(21) |
Jul
(45) |
Aug
(115) |
Sep
(122) |
Oct
(68) |
Nov
(21) |
Dec
(17) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
(7) |
Feb
(7) |
Mar
(1) |
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(5) |
Dec
(1) |
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <nev...@us...> - 2011-06-19 00:46:01
|
Revision: 428
http://opensis.svn.sourceforge.net/opensis/?rev=428&view=rev
Author: neverabe
Date: 2011-06-19 00:45:55 +0000 (Sun, 19 Jun 2011)
Log Message:
-----------
Modified Paths:
--------------
trunk/modules/Users/Preferences.php
Modified: trunk/modules/Users/Preferences.php
===================================================================
--- trunk/modules/Users/Preferences.php 2010-12-06 16:45:32 UTC (rev 427)
+++ trunk/modules/Users/Preferences.php 2011-06-19 00:45:55 UTC (rev 428)
@@ -140,7 +140,7 @@
echo '</TR></TABLE></TD></TR><TR><td class=break></td></tr>';
echo '<TR><TD><b>'.get_string('language', 'users').'</b></TD></tr><tr><TD><SELECT name=values[Preferences][LANG]>';
- $values = array('en' => get_string('en', 'users'),'es_cl' => get_string('es_cl', 'users'),'es_ar' => get_string('es_ar', 'users'),'pt_br' => get_string('pt_br', 'users'));
+ $values = array('en' => get_string('en', 'users'),'es_cl' => get_string('es_cl', 'users'),'es_ar' => get_string('es_ar', 'users'),'es_mx' => get_string('es_mx', 'users'),'pt_br' => get_string('pt_br', 'users'));
foreach($values as $symbol => $name)
echo '<OPTION value='.$symbol.((Preferences('LANG')==$symbol)?' SELECTED':'').'>'.$name.'</OPTION>';
echo '</SELECT></TD></TR>';
@@ -255,4 +255,4 @@
$checked = ' CHECKED';
return '<INPUT type=radio name=values[StudentFieldsView][ADDRESS] value="'.$value.'"'.$checked.'>';
}
-?>
\ No newline at end of file
+?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <br-...@us...> - 2010-12-06 16:45:38
|
Revision: 427
http://opensis.svn.sourceforge.net/opensis/?rev=427&view=rev
Author: br-marshall
Date: 2010-12-06 16:45:32 +0000 (Mon, 06 Dec 2010)
Log Message:
-----------
Added option to choose Portuguese language
Modified Paths:
--------------
trunk/modules/Users/Preferences.php
Modified: trunk/modules/Users/Preferences.php
===================================================================
--- trunk/modules/Users/Preferences.php 2010-11-23 16:22:47 UTC (rev 426)
+++ trunk/modules/Users/Preferences.php 2010-12-06 16:45:32 UTC (rev 427)
@@ -140,7 +140,7 @@
echo '</TR></TABLE></TD></TR><TR><td class=break></td></tr>';
echo '<TR><TD><b>'.get_string('language', 'users').'</b></TD></tr><tr><TD><SELECT name=values[Preferences][LANG]>';
- $values = array('en' => get_string('en', 'users'),'es_cl' => get_string('es_cl', 'users'),'es_ar' => get_string('es_ar', 'users'));
+ $values = array('en' => get_string('en', 'users'),'es_cl' => get_string('es_cl', 'users'),'es_ar' => get_string('es_ar', 'users'),'pt_br' => get_string('pt_br', 'users'));
foreach($values as $symbol => $name)
echo '<OPTION value='.$symbol.((Preferences('LANG')==$symbol)?' SELECTED':'').'>'.$name.'</OPTION>';
echo '</SELECT></TD></TR>';
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <br-...@us...> - 2010-11-23 16:22:53
|
Revision: 426
http://opensis.svn.sourceforge.net/opensis/?rev=426&view=rev
Author: br-marshall
Date: 2010-11-23 16:22:47 +0000 (Tue, 23 Nov 2010)
Log Message:
-----------
Corrected some typos
Modified Paths:
--------------
trunk/lang/pt_br_utf8/install.php
Modified: trunk/lang/pt_br_utf8/install.php
===================================================================
--- trunk/lang/pt_br_utf8/install.php 2010-11-22 18:19:26 UTC (rev 425)
+++ trunk/lang/pt_br_utf8/install.php 2010-11-23 16:22:47 UTC (rev 426)
@@ -51,21 +51,21 @@
/* Buttons */
$string['continuebutton'] = 'Continuar';
-$string['savebutton'] = 'Salvar e prosseguir';
+$string['savebutton'] = 'Salvar';
$string['retrybutton'] = 'Tentar novamente';
$string['next']='Próximo';
$string['previous']='Anterior';
/* Installer Headings */
$string['indexheader'] ='Instalador OpenSIS';
-$string['step0header'] = 'Instalador OpenSIS Installer. Por favor lembre-se de primeiramente ler o arquivo de ajuda da instalação.';
-$string['step1headernew'] = 'Você escolheu uma nova instalaçao';
-$string['step1headerupgrade'] = 'Você escolheu atulizar';
+$string['step0header'] = 'Instalador OpenSIS. Antes de instalar leia o arquivo de ajuda da instalação';
+$string['step1headernew'] = 'Você escolheu uma nova instalação';
+$string['step1headerupgrade'] = 'Você escolheu atualizar';
$string['step2header'] = 'Obrigado por informar a conexão MySQL';
$string['step3header'] = 'O banco de dados foi criado';
$string['step4header'] = 'Parabéns, seu banco de dados foi atualizado';
-$string['step5installheader'] = 'Êxito na instalaçao';
-$string['step5upgradeheader'] = 'Êxisto na atualizaçãp';
+$string['step5installheader'] = 'Êxito na instalação';
+$string['step5upgradeheader'] = 'Êxito na atualização';
/*Steps Sequence */
@@ -95,11 +95,11 @@
$string['userphotoerror1'] = 'Impossível a escrita no diretório <i>assets/UserPhotos</i>';
$string['userphotoerror2'] = 'As fotos dos estudantes não poderão ser salvas enquanto o problema de permissão não for resolvido';
$string['recommendfixissue'] = 'é recomendado que resolva os problemas de permissões antes de executar a instalação';
-$string['databaseconnectioninformation'] = 'Por favor, informe a conexão MySQL';
-$string['databaseserver']='Servidor do banco de dados';
-$string['databaseport']='Porta do banco de dados';
-$string['databaseusername']='Usuário do banco de dados';
-$string['databasepassword']='Senha do banco de dados';
+$string['databaseconnectioninformation'] = 'Por favor, informe os dados da conexão MySQL';
+$string['databaseserver']='Servidor do BD';
+$string['databaseport']='Porta';
+$string['databaseusername']='Usuário';
+$string['databasepassword']='Senha';
$string['advancedsettingsheader'] = 'Configuração avançada';
$string['advancedsettingsbody'] = 'Selecione como lidar com as tabelas de uma instalação anterior';
@@ -109,9 +109,9 @@
$string['validateadmin'] = 'Por favor insira o nome de usuário do admin do MySQL';
/* Step2 */
-$string['newdatabase1'] = 'O sistema precisa de criar um novo banco de dados';
+$string['newdatabase1'] = 'O sistema precisa criar um novo banco de dados';
$string['newdatabase2'] = 'Isto pode levar até um minuto para terminar';
-$string['databasename']=')Por favor entre com um nome';
+$string['databasename']='Por favor entre com o nome do Banco de Dados';
$string['validatedbname'] = 'Entre com o nome do banco de dados';
/* Step3 */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <br-...@us...> - 2010-11-22 18:19:35
|
Revision: 425
http://opensis.svn.sourceforge.net/opensis/?rev=425&view=rev
Author: br-marshall
Date: 2010-11-22 18:19:26 +0000 (Mon, 22 Nov 2010)
Log Message:
-----------
Added Brazilian-Portuguese language translation files
Added Paths:
-----------
trunk/lang/pt_br_utf8/Attendance/
trunk/lang/pt_br_utf8/Billing/
trunk/lang/pt_br_utf8/Billing/Balance.php
trunk/lang/pt_br_utf8/Billing/Define.php
trunk/lang/pt_br_utf8/Billing/Invoices.php
trunk/lang/pt_br_utf8/Billing/Letters.php
trunk/lang/pt_br_utf8/Billing/LunchAdmin.php
trunk/lang/pt_br_utf8/Billing/LunchTotals.php
trunk/lang/pt_br_utf8/Billing/MassAdd.php
trunk/lang/pt_br_utf8/Billing/StaffBilling.php
trunk/lang/pt_br_utf8/Common.php
trunk/lang/pt_br_utf8/Core.php
trunk/lang/pt_br_utf8/Database/
trunk/lang/pt_br_utf8/Database/Ethnicity.php
trunk/lang/pt_br_utf8/Database/Gender.php
trunk/lang/pt_br_utf8/Database/Profiles.php
trunk/lang/pt_br_utf8/Database/Status.php
trunk/lang/pt_br_utf8/Database/StudentFields.php
trunk/lang/pt_br_utf8/Eligibility/
trunk/lang/pt_br_utf8/Eligibility/TeacherCompletion.php
trunk/lang/pt_br_utf8/Eligibility.php
trunk/lang/pt_br_utf8/Food_Service/
trunk/lang/pt_br_utf8/Food_Service/Accounts.php
trunk/lang/pt_br_utf8/Food_Service/ActivityReport.php
trunk/lang/pt_br_utf8/Food_Service/AssignSchool.php
trunk/lang/pt_br_utf8/Food_Service/DailyMenus.php
trunk/lang/pt_br_utf8/Food_Service/Kiosk.php
trunk/lang/pt_br_utf8/Food_Service/Menu.php
trunk/lang/pt_br_utf8/Food_Service/MenuItems.php
trunk/lang/pt_br_utf8/Food_Service/MenuReports.php
trunk/lang/pt_br_utf8/Food_Service/Menus.php
trunk/lang/pt_br_utf8/Food_Service/ServeMenus.php
trunk/lang/pt_br_utf8/Food_Service/Statements.php
trunk/lang/pt_br_utf8/Food_Service/Student.inc.php
trunk/lang/pt_br_utf8/Food_Service/Students/
trunk/lang/pt_br_utf8/Food_Service/Students/Accounts.php
trunk/lang/pt_br_utf8/Food_Service/Students/ActivityReport.php
trunk/lang/pt_br_utf8/Food_Service/Students/Lunch.php
trunk/lang/pt_br_utf8/Food_Service/Students/Reminders.php
trunk/lang/pt_br_utf8/Food_Service/Students/ServeMenus.php
trunk/lang/pt_br_utf8/Food_Service/Students/Statements.php
trunk/lang/pt_br_utf8/Food_Service/Students/Transactions.php
trunk/lang/pt_br_utf8/Food_Service/TakeMenuCounts.php
trunk/lang/pt_br_utf8/Food_Service/TeacherCompletion.php
trunk/lang/pt_br_utf8/Food_Service/TransactionsReport.php
trunk/lang/pt_br_utf8/Food_Service/User.inc.php
trunk/lang/pt_br_utf8/Food_Service/Users/
trunk/lang/pt_br_utf8/Food_Service/Users/Accounts.php
trunk/lang/pt_br_utf8/Food_Service/Users/ActivityReport.php
trunk/lang/pt_br_utf8/Food_Service/Users/Lunch.php
trunk/lang/pt_br_utf8/Food_Service/Users/Reminders.php
trunk/lang/pt_br_utf8/Food_Service/Users/ServeMenus.php
trunk/lang/pt_br_utf8/Food_Service/Users/Statements.php
trunk/lang/pt_br_utf8/Food_Service/Users/Transactions.php
trunk/lang/pt_br_utf8/Food_Service/includes/
trunk/lang/pt_br_utf8/Food_Service/includes/DeletePromptX.php
trunk/lang/pt_br_utf8/Functions/
trunk/lang/pt_br_utf8/Functions/DeletePrompt.fnc.php
trunk/lang/pt_br_utf8/Functions/GetStuList.fnc.php
trunk/lang/pt_br_utf8/Functions/HackingLog.php
trunk/lang/pt_br_utf8/Functions/ListOutput.fnc.php
trunk/lang/pt_br_utf8/Functions/Search.fnc.php
trunk/lang/pt_br_utf8/Functions/Widgets.fnc.php
trunk/lang/pt_br_utf8/Grades.php
trunk/lang/pt_br_utf8/Modules.php
trunk/lang/pt_br_utf8/Scheduling.php
trunk/lang/pt_br_utf8/School_Setup/
trunk/lang/pt_br_utf8/School_Setup/Menu.php
trunk/lang/pt_br_utf8/Students/
trunk/lang/pt_br_utf8/Students/Menu.php
trunk/lang/pt_br_utf8/Students/includes.php
trunk/lang/pt_br_utf8/Tools.php
trunk/lang/pt_br_utf8/Users/
trunk/lang/pt_br_utf8/Users/AddStudents.php
trunk/lang/pt_br_utf8/Users/Exceptions.php
trunk/lang/pt_br_utf8/Users/Menu.php
trunk/lang/pt_br_utf8/Users/Preferences.php
trunk/lang/pt_br_utf8/Users/Profiles.php
trunk/lang/pt_br_utf8/Users/Search.inc.php
trunk/lang/pt_br_utf8/Users/Search.php
trunk/lang/pt_br_utf8/Users/Search_Miss_Attn.inc.php
trunk/lang/pt_br_utf8/Users/User.php
trunk/lang/pt_br_utf8/Users/UserFields.php
trunk/lang/pt_br_utf8/Users/includes/
trunk/lang/pt_br_utf8/Users/includes/General_Info.inc.php
trunk/lang/pt_br_utf8/Users/includes/Schedule.inc.php
trunk/lang/pt_br_utf8/ajax.php
trunk/lang/pt_br_utf8/attendance.php
trunk/lang/pt_br_utf8/datetime.php
trunk/lang/pt_br_utf8/install.php
trunk/lang/pt_br_utf8/langconfig.php
trunk/lang/pt_br_utf8/login.inc.php
trunk/lang/pt_br_utf8/misc/
trunk/lang/pt_br_utf8/misc/Portal.php
trunk/lang/pt_br_utf8/schoolsetup.php
trunk/lang/pt_br_utf8/students.php
trunk/lang/pt_br_utf8/users.php
Added: trunk/lang/pt_br_utf8/Billing/Balance.php
===================================================================
--- trunk/lang/pt_br_utf8/Billing/Balance.php (rev 0)
+++ trunk/lang/pt_br_utf8/Billing/Balance.php 2010-11-22 18:19:26 UTC (rev 425)
@@ -0,0 +1,104 @@
+<?php
+
+DrawHeader('Balance Report');
+
+if($_REQUEST[modfunc]=='')
+{
+ echo '<BR>';
+ PopTable('header','Search');
+ echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=list method=POST>";
+ echo '<TABLE>';
+ Warehouse('searchstu');
+ echo '<TR><TD>Balance Between</TD><TD><INPUT type=text name=balance_low> & <INPUT type=text name=balance_high></TD></TR>';
+ echo '<TR><TD>Balance Not Zero</TD><TD><INPUT type=checkbox name=not_zero value=Y></TD></TR>';
+ echo '<TR><TD>Balance</TD><TD>';
+ echo '<SELECT name=editor>
+ <OPTION value="Student Billing">Student Billing</OPTION>
+ <OPTION value=Lunch>Lunch</OPTION>
+ </SELECT>';
+ echo '</TD></TR>';
+ PrepareSchool(SessionSchool(),'',SessionCurSchool());
+ Warehouse('searchgrade');
+ Warehouse('searchyear');
+ echo '<TR><TD colspan=2 align=center>';
+ Buttons('Find','Reset');
+ echo '</TD></TR>';
+ echo '</TABLE>';
+ PopTable('footer');
+}
+
+if($_REQUEST[modfunc]=='list')
+{
+ if($_REQUEST[balance_low]>$_REQUEST[balance_high])
+ {
+ $tmp = $_REQUEST[balance_high];
+ $_REQUEST[balance_high] = $_REQUEST[balance_low];
+ $_REQUEST[balance_low] = $tmp;
+ }
+
+ DrawHeader($_REQUEST[editor].' Balances - School Year: '.DispYear($_REQUEST[year]).' as of '.ProperDate(DBDate()));
+
+ if($_REQUEST[editor]=='Student Billing')
+ {
+ $sql = "SELECT ssm.STUDENT_ID,ssm.SCHOOL,ssm.GRADE,s.FIRST_NAME,s.LAST_NAME,s.MIDDLE_NAME ";
+ $sql .= ",(SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_FEES WHERE STUDENT_ID=ssm.STUDENT_ID),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND (LUNCH_PAYMENT!='Y' OR LUNCH_PAYMENT IS NULL) ),0)
+ ".FROM_DUAL.") as BALANCE ";
+ $sql .= "FROM STU_SCHOOL_MEETS ssm,STUDENTS s
+ WHERE ssm.SYEAR='$_REQUEST[year]' AND s.STUDENT_ID=ssm.STUDENT_ID ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_FEES WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ BETWEEN '$_REQUEST[balance_low]' AND '$_REQUEST[balance_high]' ";
+ if($_REQUEST[not_zero]=='Y')
+ $sql .="AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_FEES WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ != '0' ";
+ if($_REQUEST[sch])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND ssm.STUDENT_ID='$_REQUEST[stuid]' ";
+ if($_REQUEST[first])
+ $sql .= "AND s.FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[last])
+ $sql .= "AND s.LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ $sql .= "ORDER BY s.LAST_NAME,s.FIRST_NAME,s.MIDDLE_NAME ";
+ }
+ else
+ {
+ $sql = "SELECT ssm.STUDENT_ID,ssm.SCHOOL,ssm.GRADE,s.FIRST_NAME,s.LAST_NAME,s.MIDDLE_NAME ";
+ $sql .= ",(SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT_LUNCH WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.") -
+ COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND LUNCH_PAYMENT='Y' ),0) as BALANCE ";
+ $sql .= "FROM STU_SCHOOL_MEETS ssm,STUDENTS s
+ WHERE ssm.SYEAR='$_REQUEST[year]' AND s.STUDENT_ID=ssm.STUDENT_ID ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND LUNCH_PAYMENT='Y' ),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT_LUNCH WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ BETWEEN '$_REQUEST[balance_low]' AND '$_REQUEST[balance_high]' ";
+ if($_REQUEST[not_zero]=='Y')
+ $sql .="AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_FEES WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ != '0' ";
+ if($_REQUEST[sch])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND ssm.STUDENT_ID='$_REQUEST[stuid]' ";
+ if($_REQUEST[first])
+ $sql .= "AND s.FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[last])
+ $sql .= "AND s.LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ $sql .= "ORDER BY s.LAST_NAME,s.FIRST_NAME,s.MIDDLE_NAME ";
+ }
+
+ $QI = DBQuery($sql);
+ $RET = DBGet($QI,array('LAST_NAME'=>'GetCapWords','FIRST_NAME'=>'GetCapWords','SCHOOL'=>'GetSchool','GRADE'=>'GetGrade','BALANCE'=>'Currency'));
+
+ $columns = array('LAST_NAME'=>'Last Name','FIRST_NAME'=>'First Name','STUDENT_ID'=>'Student ID','SCHOOL'=>'School','GRADE'=>'Grade','BALANCE'=>'Balance');
+ ListOutput($RET,$columns,'Student','Students');
+
+}
+?>
\ No newline at end of file
Added: trunk/lang/pt_br_utf8/Billing/Define.php
===================================================================
--- trunk/lang/pt_br_utf8/Billing/Define.php (rev 0)
+++ trunk/lang/pt_br_utf8/Billing/Define.php 2010-11-22 18:19:26 UTC (rev 425)
@@ -0,0 +1,162 @@
+<?php
+DrawHeader('Pre-Defined Student Billing Fees');
+
+if($_REQUEST[modfunc]=='update')
+{
+ $_REQUEST['date'] = $_REQUEST['day'] . '-' . $_REQUEST['month'] . '-' . $_REQUEST['year'];
+ if($_REQUEST['date']=='--')
+ $_REQUEST['date']='';
+ $effective_date = DBDate();
+ $sql = "INSERT INTO STU_BILLING_DEFINED_FEES (ID,ACCOUNT_ID,TITLE,AMOUNT,DUE_DATE,SYEAR,SCHOOL,GRADE)
+ values(".db_seq_nextval('STU_BILLING_DEFINED_FEES_SEQ').",'$_REQUEST[account_id]','$_REQUEST[title]','$_REQUEST[amount]','$_REQUEST[date]','$_REQUEST[syear]','$_REQUEST[school]','$_REQUEST[grade]')";
+ DBQuery($sql);
+
+ $note[] = 'That Pre-Defined Fee has been added';
+ unset($_REQUEST[modfunc]);
+}
+
+if($_REQUEST[modfunc]=='delete')
+{
+ if(DeletePrompt('pre-defined fee'))
+ {
+ DBQuery("DELETE FROM STU_BILLING_DEFINED_FEES WHERE ID='$_REQUEST[id]'");
+ $note[] = "That Pre-Defined Fee has been Deleted";
+ unset($_REQUEST[modfunc]);
+ }
+}
+
+if(!$_REQUEST[modfunc])
+{
+ // LIST
+ if($note)
+ {
+ echo '<TABLE width=100%><TR><TD bgcolor=#E8E8E9><font size=-1>';
+ ErrorMessage($note,'note');
+ echo '</font></TD></TR></TABLE>';
+ }
+ echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=update METHOD=POST>";
+
+ $functions = array('AMOUNT'=>'Currency','ACCOUNT_ID'=>'getAccount','DUE_DATE'=>'ProperDate','SYEAR'=>'DispYear','SCHOOL'=>'GetSchool','GRADE'=>'GetGrade');
+ $RET = DBGet(DBQuery('SELECT DISTINCT sb.ID,sb.TITLE,sb.AMOUNT,
+ to_char(sb.DUE_DATE,\'dd-MON-yy\') as DUE_DATE,sb.SYEAR,sb.SCHOOL,sb.GRADE,sb.ACCOUNT_ID
+ FROM STU_BILLING_DEFINED_FEES sb ORDER BY sb.TITLE'),$functions);
+
+ $columns = array('TITLE'=>'Title','AMOUNT'=>'Amount','ACCOUNT_ID'=>'Account','DUE_DATE'=>'Due Date','SYEAR'=>'School Year','SCHOOL'=>'School','GRADE'=>'Grade');
+ $link[add][html] = array('TITLE'=>makeTitleInput(),'AMOUNT'=>makeAmountInput(),'ACCOUNT_ID'=>makeAccountInput(),'DUE_DATE'=>makeDateInput(),'SYEAR'=>makeSyearInput(),'SCHOOL'=>makeSchoolInput(),'GRADE'=>makeGradeInput(),'remove'=>button('add'));
+ $link[remove] = array('link'=>"Modules.php?modname=$_REQUEST[modname]&modfunc=delete",
+ 'variables'=>array('id'=>'ID'));
+ $_REQUEST[modfunc] = 'list';
+ unset($_REQUEST[modfunc]);
+ ListOutput($RET,$columns,'Pre-Defined Fee','Pre-Defined Fees',$link);
+ echo '<center><input type=submit class=btn_medium value=Save></center>';
+}
+// -- END LIST
+
+function makeTitleInput($value='')
+{
+ return "<INPUT type=text name=title maxlength=30 size=10 value='$value'>";
+}
+
+function makeAmountInput($value='')
+{
+ return "<INPUT type=text name=amount maxlength=10 size=6 ".(($value)?"value=".Currency($value):'').'>';
+}
+
+function makeDateInput($value='00-000-00')
+{
+ return PrepareDate("",$value);
+}
+
+function makeYesInput($value='')
+{
+ if($value=='Y')
+ return 'Yes';
+ else
+ return 'No';
+}
+
+function makeSchoolInput($value='')
+{
+
+ $QI = DBQuery("SELECT NAME,SCHOOL,SCHOOL_TYPE FROM SCHOOLS WHERE SCHOOL > '00' AND DISPLAY_FORMS='Y' ORDER BY ".db_case(array("SCHOOL","'ALL'","'2'","'1'")).",".db_case(array("SCHOOL_TYPE","'ELM'","'1'","'MID'","'2'","'HIGH'","'3'","'4'")).",NAME ");
+ $RET = DBReturn($QI,$count);
+ $return .= "<SELECT name=school>";
+ $return .= "<OPTION value=''>Not Specified</OPTION>";
+ foreach($RET as $key=>$school)
+ {
+ $return .= "<OPTION value=$school[SCHOOL]";
+ if($school[SCHOOL]==$value)
+ $return .= " SELECTED";
+ $return .= ">$school[NAME]</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function makeSyearInput($value='')
+{
+
+ $syear = '20'.GetSysYear();
+
+ if($value<50)
+ $default = '20'.$value;
+ else
+ $default = '19'.$value;
+
+ if(!$value)
+ $default = $syear;
+ $return .= "<SELECT name=syear>";
+ for($i=$syear-3;$i<$syear+3;$i++)
+ {
+ $year = substr($i,2);
+ $return .= "<OPTION value=$year".(($default==$i)?' SELECTED':'').">".DispYear($year)."</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function makeGradeInput($value='')
+{
+ $QI = DBQuery("SELECT DISTINCT GRADE FROM SCHOOL_GRADELEVELS WHERE DISPLAY = '1' ORDER BY GRADE");
+ $RET = DBReturnNoWord($QI,$count);
+ $return .= "<SELECT name=grade>";
+ $return .= "<OPTION value=''>N/A</OPTION>";
+ foreach($RET as $grade)
+ {
+ $return .= "<OPTION value=$grade[GRADE]";
+ if($grade[GRADE]==$value)
+ $return .= " SELECTED";
+ $return .= ">$grade[GRADE]</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function makeAccountInput($value='')
+{
+ $QI = DBQuery("SELECT TITLE,ID FROM STU_BILLING_ACCOUNTS WHERE SYEAR='".GetSysYear()."' ORDER BY TITLE");
+ $RET = DBReturnNoWord($QI,$count);
+ $return .= "<SELECT name=account_id>";
+ foreach($RET as $account)
+ {
+ $return .= "<OPTION value=$account[ID]";
+ if($account[ID]==$value)
+ $return .= " SELECTED";
+ $return .= ">$account[TITLE]</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function getAccount($account_id)
+{ global $_OSIS;
+
+ if(!$_OSIS['GetAccount'])
+ {
+ $QI=DBQuery("SELECT ID,TITLE FROM STU_BILLING_ACCOUNTS");
+ $_OSIS['GetAccount'] = DBGet($QI,array(),array('ID'));
+ }
+
+ return $_OSIS['GetAccount'][$account_id][1]['TITLE'];
+}
+?>
\ No newline at end of file
Added: trunk/lang/pt_br_utf8/Billing/Invoices.php
===================================================================
--- trunk/lang/pt_br_utf8/Billing/Invoices.php (rev 0)
+++ trunk/lang/pt_br_utf8/Billing/Invoices.php 2010-11-22 18:19:26 UTC (rev 425)
@@ -0,0 +1,425 @@
+<?php
+
+if($_REQUEST[modfunc]=='')
+{
+ if(defined('PRINT_LETTER'))
+ $title = 'Student Billing Notifications';
+ else
+ $title = 'Student Billing Invoices';
+
+ DrawHeader($title);
+ echo '<BR>';
+ PopTable('header','Search');
+ echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=list method=POST>";
+ echo '<TABLE>';
+ Warehouse('searchstu');
+ echo '<TR><TD>Balance Between</TD><TD><INPUT type=text name=balance_low> & <INPUT type=text name=balance_high></TD></TR>';
+ echo '<TR><TD>Balance Not Zero</TD><TD><INPUT type=checkbox name=not_zero value=Y></TD></TR>';
+ echo '<TR><TD>Invoice</TD><TD>';
+ echo '<SELECT name=editor>
+ <OPTION value=both>Student Billing & Lunch</OPTION>
+ <OPTION value=stubilling SELECTED>Student Billing</OPTION>
+ <OPTION value=lunch>Lunch</OPTION>
+ </SELECT>';
+ echo '</TD></TR>';
+ PrepareSchool(SessionSchool(),'',SessionCurSchool());
+ Warehouse('searchgrade');
+ Warehouse('searchyear');
+
+ if(defined('PRINT_LETTER'))
+ {
+ echo '<TR><TD>Letter Text</TD><TD>';
+ echo '<TEXTAREA name=letter rows=10 cols=50>
+
+Dear __PARENTS__,
+ Your child, __STUDENT__ (__STUDENT_ID__) now has a balance of __BALANCE__. It should be refilled as soon as possible to avoid running out.
+
+--Administration
+ </TEXTAREA>';
+ echo '</TD></TR>';
+ }
+ echo '<TR><TD colspan=2 align=center>';
+ Buttons('Find','Reset');
+ echo '</TD></TR>';
+ echo '</TABLE>';
+ echo '</FORM>';
+ PopTable('footer');
+}
+
+if($_REQUEST['modfunc']=='list')
+{
+ $_REQUEST['balance_low'] = ereg_replace('[^0-9]','',$_REQUEST['balance_low']);
+ $_REQUEST['balance_high'] = ereg_replace('[^0-9]','',$_REQUEST['balance_high']);
+
+ if($_REQUEST['balance_low']>$_REQUEST['balance_high'])
+ {
+ $tmp = $_REQUEST['balance_high'];
+ $_REQUEST['balance_high'] = $_REQUEST['balance_low'];
+ $_REQUEST['balance_low'] = $tmp;
+ }
+}
+
+if($_REQUEST[modfunc]=='list' && ($_REQUEST[editor]=='stubilling' || $_REQUEST[editor]=='lunch'))
+{
+ if($_REQUEST[editor]=='stubilling')
+ {
+ $debits_table = 'STU_BILLING_FEES';
+ $credits_cond = " (LUNCH_PAYMENT!='Y' OR LUNCH_PAYMENT IS NULL) ";
+ $letter_title = 'Student Billing Notification';
+ }
+ else
+ {
+ $debits_table = 'STU_BILLING_ACT_LUNCH';
+ $credits_cond = " LUNCH_PAYMENT='Y' ";
+ $letter_title = 'Lunch Billing Notification';
+ }
+ $sql = "select school,ADDRESS1,zipcode,area_code,telephone,city,state from schools";
+ $address_RET = DBGet(DBQuery($sql),array(),array('SCHOOL'));
+ foreach($address_RET as $school=>$address)
+ {
+ $address = $address[1];
+ $school_address[$school] = '<font size=+1>'.GetTitle() . '</font><BR>' . $address['ADDRESS1'] . '<BR>' . $address['CITY'].', '.$address['STATE'].' '.$address['ZIPCODE'].'<BR>('.$address['AREA_CODE'].') '.substr($address['TELEPHONE'],0,3).'-'.substr($address['TELEPHONE'],3);
+ }
+
+
+ $sql = "SELECT ssm.STUDENT_ID,ssm.SCHOOL,s.FIRST_NAME,s.LAST_NAME,s.MIDDLE_NAME,rm.PERSON_ID ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= ",(SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.") as BALANCE ";
+ $sql .= "FROM STU_SCHOOL_MEETS ssm,STUDENTS s,RELATIONS_MEETS rm
+ WHERE
+ ssm.SYEAR='$_REQUEST[year]' AND s.STUDENT_ID=ssm.STUDENT_ID
+ AND rm.STUDENT_ID = ssm.STUDENT_ID AND rm.CUSTODY = 'Y'
+ ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ BETWEEN '$_REQUEST[balance_low]' AND '$_REQUEST[balance_high]' ";
+ if($_REQUEST[not_zero]=='Y')
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ != '0' ";
+ if($_REQUEST[sch])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND ssm.STUDENT_ID='$_REQUEST[stuid]' ";
+ if($_REQUEST[first])
+ $sql .= "AND s.FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[last])
+ $sql .= "AND s.LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ $sql .= "ORDER BY s.LAST_NAME,s.FIRST_NAME,s.MIDDLE_NAME ";
+
+ $QI = DBQuery($sql);
+ $RET = DBGet($QI,array('LAST_NAME'=>'GetCapWords','FIRST_NAME'=>'GetCapWords'),array('STUDENT_ID'));
+
+ if(count($RET))
+ {
+ $handle=PDFStart("Invoices.pdf", "Click Here to Download the Invoices","--webpage --quiet -t pdf12 --jpeg --no-links --portrait --footer t --header . --left 0.5in ");
+ $_REQUEST['PDF'] = true;
+
+ $f_year = $_REQUEST[f_year] = $_REQUEST['year'];
+ $modfunc = 'detail';
+
+ foreach($RET as $student_id=>$student_records)
+ {
+ unset($addresses);
+ foreach($student_records as $person)
+ {
+ $addr = GetAddrPer($person['PERSON_ID']);
+ $addr = $addr[1];
+ $parents = $addr['FIRST_NAME'].' '.$addr['LAST_NAME'];
+ if($addresses[$addr['ADDRESS_ID']]['PARENTS'])
+ $parents = $addresses[$addr['ADDRESS_ID']]['PARENTS'] . ' & ' . $parents;
+ if(is_array($addr))
+ $addresses[$addr['ADDRESS_ID']] = $addr + array('PARENTS'=>str_replace(' ',' ',$parents));
+ }
+
+ if(count($addresses))
+ {
+ foreach($addresses as $addr)
+ {
+ if(defined('PRINT_LETTER'))
+ printLetter($student_records[1],$letter_title);
+
+ echo '<CENTER>';
+ echo '<TABLE border=1 width=100%><TR><TD width=100% align=center><font size=+1><b>Student Financial Account<b></font></TD></TR></TABLE>';
+ echo '<B>'.$school_address[$student_records[1]['SCHOOL']].'</B>';
+ echo '</CENTER>';
+
+ echo '<TABLE><TR><TD width=35> </TD><TD nowrap><BR><BR><BR>';
+ echo $addr['PARENTS'].'<BR>';
+ echo $addr['HOUSE_NO']." ".$addr['LETTER']." ".$addr['DIRECTION']." ".$addr['STREET']." ";
+ if($addr['APT']){ echo "Apt. ".$addr['APT'];}
+ echo '<BR>'.$addr['CITY'].", ".$addr['STATE']." ".$addr['ZIPCODE'];
+ if($addr['PLUS4'])
+ echo '-'.$addr['PLUS4'];
+ echo '</TD></TR></TABLE><BR>';
+
+ echo '<TABLE width=100%><TR><TD align=left width=50%><b>'.$student_records[1][FIRST_NAME].' '.$student_records[1][LAST_NAME].' - '.$student_records[1][STUDENT_ID].'</b></TD>';
+ echo '<TD align=right>'.ProperDate(DBDate()).'</TD></TR></TABLE>';
+ $f_stuid = $_REQUEST[f_stuid] = $student_records[1][STUDENT_ID];
+ $f_school = $_REQUEST[f_school] = $student_records[1][SCHOOL];
+ include('modules/StudentInfo/StuBilling.inc.php');
+ echo '<!-- NEW PAGE -->';
+ }
+ }
+ }
+
+ PDFStop($handle);
+ }
+ else
+ echo '<CENTER><H4>No Students were Found.</H4></CENTER>';
+}
+elseif($_REQUEST[modfunc]=='list' && $_REQUEST[editor]=='both')
+{
+ $debits_table = 'STU_BILLING_FEES';
+ $credits_cond = " (LUNCH_PAYMENT!='Y' OR LUNCH_PAYMENT IS NULL) ";
+ $stubilling_title = '<B>Student Fees and Payments</B><BR>School Year: '.DispYear($_REQUEST[year]).'<BR>as of '.ProperDate(DBDate());
+
+ $sql = "SELECT ssm.STUDENT_ID,ssm.SCHOOL,s.FIRST_NAME,s.LAST_NAME,s.MIDDLE_NAME ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= ",(SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.") as BALANCE ";
+ $sql .= "FROM STU_SCHOOL_MEETS ssm,STUDENTS s
+ WHERE ssm.SYEAR='$_REQUEST[year]' AND s.STUDENT_ID=ssm.STUDENT_ID ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ BETWEEN '$_REQUEST[balance_low]' AND '$_REQUEST[balance_high]' ";
+ if($_REQUEST[not_zero]=='Y')
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ != '0' ";
+ if($_REQUEST[sch])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND ssm.STUDENT_ID='$_REQUEST[stuid]' ";
+ if($_REQUEST[first])
+ $sql .= "AND s.FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[last])
+ $sql .= "AND s.LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ $sql .= "ORDER BY s.LAST_NAME,s.FIRST_NAME,s.MIDDLE_NAME ";
+
+ $QI = DBQuery($sql);
+ $stubilling_RET = DBGet($QI,array('LAST_NAME'=>'GetCapWords','FIRST_NAME'=>'GetCapWords'));
+
+ $debits_table = 'STU_BILLING_ACT_LUNCH';
+ $credits_cond = " LUNCH_PAYMENT='Y' ";
+ $lunch_title = '<B>Lunch Purchases and Payments</B><BR>School Year: '.DispYear($_REQUEST[year]).'<BR>as of '.ProperDate(DBDate());
+
+ $sql = "SELECT ssm.STUDENT_ID,ssm.SCHOOL,s.FIRST_NAME,s.LAST_NAME,s.MIDDLE_NAME ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= ",(SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.") as BALANCE ";
+ $sql .= "FROM STU_SCHOOL_MEETS ssm,STUDENTS s
+ WHERE ssm.SYEAR='$_REQUEST[year]' AND s.STUDENT_ID=ssm.STUDENT_ID ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ BETWEEN '$_REQUEST[balance_low]' AND '$_REQUEST[balance_high]' ";
+ if($_REQUEST[not_zero]=='Y')
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ != '0' ";
+ if($_REQUEST[sch])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND ssm.STUDENT_ID='$_REQUEST[stuid]' ";
+ if($_REQUEST[first])
+ $sql .= "AND s.FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[last])
+ $sql .= "AND s.LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ $sql .= "ORDER BY s.LAST_NAME,s.FIRST_NAME,s.MIDDLE_NAME ";
+
+ $QI = DBQuery($sql);
+ $lunch_RET = DBGet($QI,array('LAST_NAME'=>'GetCapWords','FIRST_NAME'=>'GetCapWords'),array('STUDENT_ID'));
+
+ if(count($stubilling_RET) || count($lunch_RET))
+ {
+ $handle=PDFStart("Invoices.pdf", "Click Here to Download the Invoices","--webpage --quiet -t pdf12 --jpeg --no-links --portrait --footer t --header . --left 0.5in ");
+
+ $f_year = $_REQUEST[f_year] = $_REQUEST['year'];
+ $modfunc = 'detail';
+
+ if(count($stubilling_RET))
+ {
+ foreach($stubilling_RET as $student)
+ {
+ $_REQUEST[editor] = 'stubilling';
+ if(defined('PRINT_LETTER'))
+ printLetter($student,'Student Billing Notification');
+ echo '<H4>'.$student[FIRST_NAME].' '.$student[LAST_NAME].' - '.$student[STUDENT_ID].'</H4>';
+ echo $stubilling_title;
+ $f_stuid = $_REQUEST[f_stuid] = $student[STUDENT_ID];
+ $f_school = $_REQUEST[f_school] = $student[SCHOOL];
+ include('modules/StudentInfo/StuBilling.inc.php');
+ echo '<!-- NEW PAGE -->';
+
+ if($lunch_RET[$student[STUDENT_ID]])
+ {
+ if(defined('PRINT_LETTER'))
+ printLetter($lunch_RET[$student[STUDENT_ID]][1],'Lunch Billing Notification');
+
+ $_REQUEST[editor] = 'lunch';
+ echo '<H4>'.$lunch_RET[$student[STUDENT_ID]][1][FIRST_NAME].' '.$lunch_RET[$student[STUDENT_ID]][1][LAST_NAME].' - '.$lunch_RET[$student[STUDENT_ID]][1][STUDENT_ID].'</H4>';
+ echo $lunch_title;
+ $f_stuid = $_REQUEST[f_stuid] = $lunch_RET[$student[STUDENT_ID]][1][STUDENT_ID];
+ $f_school = $_REQUEST[f_school] = $lunch_RET[$student[STUDENT_ID]][1][SCHOOL];
+ include('modules/StudentInfo/StuBilling.inc.php');
+ echo '<!-- NEW PAGE -->';
+ unset($lunch_RET[$student[STUDENT_ID]]);
+ }
+ }
+ }
+
+ if(count($lunch_RET))
+ {
+ foreach($lunch_RET as $student_id=>$student)
+ {
+ if(defined('PRINT_LETTER'))
+ printLetter($student[1],'Lunch Billing Notification');
+
+ $student = $student[1];
+ $_REQUEST[editor] = 'lunch';
+ echo '<H4>'.$student[FIRST_NAME].' '.$student[LAST_NAME].' - '.$student[STUDENT_ID].'</H4>';
+ echo $lunch_title;
+ $f_stuid = $_REQUEST[f_stuid] = $student[STUDENT_ID];
+ $f_school = $_REQUEST[f_school] = $student[SCHOOL];
+ include('modules/StudentInfo/StuBilling.inc.php');
+ echo '<!-- NEW PAGE -->';
+ }
+ }
+ PDFStop($handle);
+ }
+ else
+ echo '<CENTER><H4>No Students were Found.</H4></CENTER>';
+}
+elseif($_REQUEST[modfunc]=='list' && $_REQUEST[editor]=='none')
+{
+ $debits_table = 'STU_BILLING_FEES';
+ $credits_cond = " (LUNCH_PAYMENT!='Y' OR LUNCH_PAYMENT IS NULL) ";
+ $stubilling_title = '<B>Student Fees and Payments</B><BR>School Year: '.DispYear($_REQUEST[year]).'<BR>as of '.ProperDate(DBDate());
+
+ $sql = "SELECT ssm.STUDENT_ID,ssm.SCHOOL,s.FIRST_NAME,s.LAST_NAME,s.MIDDLE_NAME ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= ",(SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.") as BALANCE ";
+ $sql .= "FROM STU_SCHOOL_MEETS ssm,STUDENTS s
+ WHERE ssm.SYEAR='$_REQUEST[year]' AND s.STUDENT_ID=ssm.STUDENT_ID ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ BETWEEN '$_REQUEST[balance_low]' AND '$_REQUEST[balance_high]' ";
+ if($_REQUEST[not_zero]=='Y')
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ != '0' ";
+ if($_REQUEST[sch])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND ssm.STUDENT_ID='$_REQUEST[stuid]' ";
+ if($_REQUEST[first])
+ $sql .= "AND s.FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[last])
+ $sql .= "AND s.LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ $sql .= "ORDER BY s.LAST_NAME,s.FIRST_NAME,s.MIDDLE_NAME ";
+
+ $QI = DBQuery($sql);
+ $stubilling_RET = DBGet($QI,array('FIRST_NAME'=>'GetCapWords','LAST_NAME'=>'GetCapWords'));
+
+ $debits_table = 'STU_BILLING_ACT_LUNCH';
+ $credits_cond = " LUNCH_PAYMENT='Y' ";
+ $lunch_title = '<B>Lunch Purchases and Payments</B><BR>School Year: '.DispYear($_REQUEST[year]).'<BR>as of '.ProperDate(DBDate());
+
+ $sql = "SELECT ssm.STUDENT_ID,ssm.SCHOOL,s.FIRST_NAME,s.LAST_NAME,s.MIDDLE_NAME ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= ",(SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.") as BALANCE ";
+ $sql .= "FROM STU_SCHOOL_MEETS ssm,STUDENTS s
+ WHERE ssm.SYEAR='$_REQUEST[year]' AND s.STUDENT_ID=ssm.STUDENT_ID ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ BETWEEN '$_REQUEST[balance_low]' AND '$_REQUEST[balance_high]' ";
+ if($_REQUEST[not_zero]=='Y')
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ != '0' ";
+ if($_REQUEST[sch])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND ssm.STUDENT_ID='$_REQUEST[stuid]' ";
+ if($_REQUEST[first])
+ $sql .= "AND s.FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[last])
+ $sql .= "AND s.LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ $sql .= "ORDER BY s.LAST_NAME,s.FIRST_NAME,s.MIDDLE_NAME ";
+
+ $QI = DBQuery($sql);
+ $lunch_RET = DBGet($QI,array('FIRST_NAME'=>'GetCapWords','LAST_NAME'=>'GetCapWords'),array('STUDENT_ID'));
+
+ if(count($stubilling_RET) || count($lunch_RET))
+ {
+ $handle=PDFStart("Letters.pdf", "Click Here to Download the Letters","--webpage --quiet -t pdf12 --jpeg --no-links --portrait --footer t --header . --left 0.5in ");
+
+ if(count($stubilling_RET))
+ {
+ foreach($stubilling_RET as $student)
+ {
+ if(defined('PRINT_LETTER'))
+ printLetter($student,'Student Billing Notification');
+
+ if($lunch_RET[$student[STUDENT_ID]])
+ {
+ if(defined('PRINT_LETTER'))
+ printLetter($lunch_RET[$student[STUDENT_ID]][1],'Lunch Billing Notification');
+ }
+ }
+ }
+
+ if(count($lunch_RET))
+ {
+ foreach($lunch_RET as $student_id=>$student)
+ {
+ if(defined('PRINT_LETTER'))
+ {
+ $student[1][BALANCE] = $student[1][LUNCH_BALANCE];
+ printLetter($student[1],'Lunch Billing Notification');
+ }
+ }
+ }
+ PDFStop($handle);
+ }
+ else
+ echo '<CENTER><H4>No Students were Found.</H4></CENTER>';
+}
+
+function printLetter($student,$title)
+{ global $LETTER;
+
+ echo '<B>'.$title.'</B><BR>';
+ $letter = $_REQUEST[letter];
+ if($LETTER[student])
+ $letter = str_replace('__STUDENT__',$student[FIRST_NAME].' '.$student[LAST_NAME],$letter);
+ if($LETTER[student_id])
+ $letter = str_replace('__STUDENT_ID__',$student[STUDENT_ID],$letter);
+ if($LETTER[parents])
+ $letter = str_replace('__PARENTS__',GetRelNames($student[STUDENT_ID]),$letter);
+ if($LETTER[balance])
+ $letter = str_replace('__BALANCE__',Currency($student[BALANCE]),$letter);
+
+ echo $letter;
+ echo '<!-- NEW PAGE -->';
+}
+
+?>
\ No newline at end of file
Added: trunk/lang/pt_br_utf8/Billing/Letters.php
===================================================================
--- trunk/lang/pt_br_utf8/Billing/Letters.php (rev 0)
+++ trunk/lang/pt_br_utf8/Billing/Letters.php 2010-11-22 18:19:26 UTC (rev 425)
@@ -0,0 +1,22 @@
+<?php
+define('PRINT_LETTER',true);
+
+if($_REQUEST[modfunc]=='list')
+{
+ $_REQUEST[letter] = str_replace("\n",'<BR>',$_REQUEST[letter]);
+ //$_REQUEST[letter] = str_replace("\r",'<BR>',$_REQUEST[letter]);
+ $_REQUEST[letter] = str_replace("\t",' ',$_REQUEST[letter]);
+
+ if(strpos($_REQUEST[letter],'__STUDENT__')!==false)
+ $LETTER[student] = true;
+ if(strpos($_REQUEST[letter],'__STUDENT_ID__')!==false)
+ $LETTER[student_id] = true;
+ if(strpos($_REQUEST[letter],'__PARENTS__')!==false)
+ $LETTER[parents] = true;
+ if(strpos($_REQUEST[letter],'__BALANCE__')!==false)
+ $LETTER[balance] = true;
+}
+
+include('modules/StuBilling/Invoices.php');
+
+?>
\ No newline at end of file
Added: trunk/lang/pt_br_utf8/Billing/LunchAdmin.php
===================================================================
--- trunk/lang/pt_br_utf8/Billing/LunchAdmin.php (rev 0)
+++ trunk/lang/pt_br_utf8/Billing/LunchAdmin.php 2010-11-22 18:19:26 UTC (rev 425)
@@ -0,0 +1,246 @@
+<?php
+// UPDATE AND ADD ITEMS TO THE LUNCH MENU
+if($_REQUEST['modfunc']=='update')
+{
+ DBQuery("UPDATE LUNCH_CONFIG SET NEGATIVE_BALANCE='".str_replace('$','',$_REQUEST[negative_balance])."',WARNING_BALANCE='".str_replace('$','',$_REQUEST[warning_balance])."' WHERE SCHOOL='".UserSchool()."'");
+
+ if(count($_REQUEST[title]))
+ {
+ foreach($_REQUEST[title] as $id=>$title)
+ DBQuery("UPDATE LUNCH_MENU SET TITLE='$title' WHERE ID='$id'");
+ }
+ if(count($_REQUEST[price]))
+ {
+ foreach($_REQUEST[price] as $id=>$price)
+ {
+ $price = str_replace('$','',$price);
+ DBQuery("UPDATE LUNCH_MENU SET PRICE='$price' WHERE ID='$id'");
+ }
+ }
+ if(count($_REQUEST[fprice]))
+ {
+ foreach($_REQUEST[fprice] as $id=>$price)
+ {
+ $price = str_replace('$','',$price);
+ DBQuery("UPDATE LUNCH_MENU SET FREE_PRICE='$price' WHERE ID='$id'");
+ }
+ }
+ if(count($_REQUEST[rprice]))
+ {
+ foreach($_REQUEST[rprice] as $id=>$price)
+ {
+ $price = str_replace('$','',$price);
+ DBQuery("UPDATE LUNCH_MENU SET REDUCED_PRICE='$price' WHERE ID='$id'");
+ }
+ }
+
+ if(count($_REQUEST[button]))
+ {
+ foreach($_REQUEST[button] as $id=>$button)
+ {
+ DBQuery("UPDATE LUNCH_MENU SET BUTTON='$button' WHERE ID='$id'");
+ }
+ }
+
+ if(count($_REQUEST[new_title]))
+ {
+ foreach($_REQUEST[new_title] as $category_id=>$title)
+ {
+ if($title)
+ {
+ $price = str_replace('$','',$_REQUEST[new_price][$category_id]);
+ $fprice = str_replace('$','',$_REQUEST[new_fprice][$category_id]);
+ $rprice = str_replace('$','',$_REQUEST[new_rprice][$category_id]);
+
+ DBQuery("INSERT INTO LUNCH_MENU (SCHOOL,ID,TITLE,PRICE,FREE_PRICE,REDUCED_PRICE,CATEGORY_ID,BUTTON) values('".UserSchool()."',".db_seq_nextval('LUNCH_MENU_SEQ').",'$title','$price','$fprice','$rprice','$category_id','".$_REQUEST[new_button][$category_id]."')");
+ unset($_REQUEST[new_price][$category_id]);
+ }
+ }
+ }
+
+ if($_REQUEST[category_title])
+ {
+ foreach($_REQUEST[category_title] as $category_id=>$title)
+ DBQuery("UPDATE LUNCH_CATEGORIES SET TITLE='$title' WHERE CATEGORY_ID='$category_id'");
+ }
+
+ if($_REQUEST[new_category_title] && $_REQUEST[new_category_title]!='New Category')
+ DBQuery("INSERT INTO LUNCH_CATEGORIES (SCHOOL,CATEGORY_ID,TITLE) values('".UserSchool()."',".db_seq_nextval('LUNCH_CATEGORY_SEQ').",'$_REQUEST[new_category_title]')");
+
+ unset($_REQUEST['modfunc']);
+}
+
+// DELETE AN ITEM
+if($_REQUEST['modfunc']=='delete')
+{
+ if(DeletePrompt('lunch item'))
+ {
+ if($_REQUEST[id])
+ DBQuery("DELETE FROM LUNCH_MENU WHERE ID='$_REQUEST[id]'");
+ unset($_REQUEST['modfunc']);
+ }
+}
+
+if($_REQUEST['modfunc']=='delete_category')
+{
+ if(DeletePrompt('category'))
+ {
+ DBQuery("DELETE FROM LUNCH_CATEGORIES WHERE CATEGORY_ID='$_REQUEST[id]'");
+ DBQuery("DELETE FROM LUNCH_MENU WHERE CATEGORY_ID='$_REQUEST[id]'");
+ unset($_REQUEST['modfunc']);
+ }
+}
+
+
+// DISPLAY THE LUNCH MENU
+if(!isset($_REQUEST['modfunc']))
+{
+ echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=update METHOD=POST>";
+ DrawHeader(ProgramTitle());
+ DrawHeader('Click on any title or price to modify the menu.',SubmitButton('Save','','class=btn_medium'));
+
+ $QI = DBQuery("SELECT NEGATIVE_BALANCE,WARNING_BALANCE FROM LUNCH_CONFIG WHERE SCHOOL='".UserSchool()."'");
+ $config = DBGet($QI);
+ $config = $config[1];
+
+ echo '<CENTER><TABLE><TR><TD><b><small>Lowest Allowed Balance</small></B></TD><TD><INPUT type=text name=negative_balance value='.Currency($config[NEGATIVE_BALANCE]).' size=8> </TD><TD><b><small>Warning Balance</small></B></TD><TD><INPUT type=text name=warning_balance value='.Currency($config[WARNING_BALANCE]).' size=8></TD></TR></TABLE><BR>';
+
+ echo '<TABLE><TR><TD align=center>';
+ $QI = DBQuery("SELECT CATEGORY_ID,TITLE FROM LUNCH_CATEGORIES WHERE SCHOOL='".UserSchool()."' ORDER BY CATEGORY_ID");
+ $categories_RET = DBGet($QI,array(),array('CATEGORY_ID'));
+
+ $QI = DBQuery("SELECT ID,CATEGORY_ID,TITLE,PRICE,FREE_PRICE,REDUCED_PRICE,BUTTON FROM LUNCH_MENU WHERE SCHOOL='".UserSchool()."' ORDER BY CATEGORY_ID");
+ $foods_RET = DBGet($QI,array('TITLE'=>'makeTitleInput','PRICE'=>'makePriceInput','FREE_PRICE'=>'makeFPriceInput','REDUCED_PRICE'=>'makeRPriceInput','BUTTON'=>'makeButtonInput'),array('CATEGORY_ID'));
+
+ if(count($foods_RET))
+ {
+ echo '<TABLE border=0><TR>';
+ foreach($foods_RET as $category_id => $food)
+ {
+ echo '<TD valign=top>';
+ echo '<center><table><tr><td>'.
+ "<A HREF=Modules.php?modname=$_REQUEST[modname]&modfunc=delete_category&id=$category_id&user_school=".UserSchool().">
+ <IMG SRC=assets/remove_button.gif></A></td>
+ <td><b>".makeCategoryInput($categories_RET[$category_id][1]['TITLE'],$category_id).'</b></td></tr></table></center>';
+ $link['remove']['link'] = "Modules.php?modname=$_REQUEST[modname]&modfunc=delete&user_school=".UserSchool();
+ $link['remove']['variables'] = array('id'=>'ID');
+ $link['add']['html'] = array('TITLE'=>makeTitleInput('',$category_id),'PRICE'=>makePriceInput('',$category_id),'FREE_PRICE'=>makeFPriceInput('',$category_id),'REDUCED_PRICE'=>makeRPriceInput('',$category_id),'BUTTON'=>makeButtonInput('',$category_id));
+ ListOutput($food,array('TITLE'=>'Name','BUTTON'=>'Key','PRICE'=>'Price','REDUCED_PRICE'=>'Reduced Price','FREE_PRICE'=>'Free Price'),'','',$link,array(),array('save'=>false));
+ echo '</TD>';
+ }
+ }
+
+ if(count($categories_RET))
+ {
+ foreach($categories_RET as $category_id=>$value)
+ {
+ if(!count($foods_RET[$category_id]))
+ {
+ echo '<TD valign=top>';
+ echo '<center><table><tr><td>'.
+ "<A HREF=Modules.php?modname=$_REQUEST[modname]&modfunc=delete_category&id=$category_id&user_school=".UserSchool().">
+ <IMG SRC=assets/remove_button.gif></A></td>
+ <td><b>".makeCategoryInput($categories_RET[$category_id][1]['TITLE'],$category_id).'</b></td></tr></table></center>';
+ $link[add][html] = array('TITLE'=>makeTitleInput('',$category_id),'PRICE'=>makePriceInput('',$category_id),'FREE_PRICE'=>makeFPriceInput('',$category_id),'REDUCED_PRICE'=>makeRPriceInput('',$category_id),'BUTTON'=>makeButtonInput('',$category_id));
+ ListOutput(array(),array('TITLE'=>'Name','BUTTON'=>'Key','PRICE'=>'Price','REDUCED_PRICE'=>'Reduced Price','FREE_PRICE'=>'Free Price'),'','',$link,array(),array('save'=>false));
+ echo '</TD>';
+ }
+ }
+ }
+
+ echo '<TD valign=top>';
+ echo '<table><TR><TD><IMG SRC=assets/add_button.gif></TD><TD><INPUT type=text size=20 name=new_category_title value="New Category"></TD></TR></TABLE>';
+ echo '</TD>';
+
+ echo '</TR>';
+ echo '<TR><TD colspan='.(count($categories_RET)*2 + 1).' align=center>';
+ echo '<INPUT type=submit value="Save the Menu">';
+ echo '</TD></TR>';
+ echo '</TABLE>';
+ echo '</FORM>';
+
+ echo "</TD></TR></TABLE></CENTER>";
+}
+
+
+function makeCategoryInput($value,$category='')
+{
+ return "<DIV id='c$category'><div onclick='javascript:addHTML(\"<INPUT type=text name=category_title[$category] value=\\\"$value\\\" size=10>\",\"c$category\",true)'>$value</div></DIV>";
+}
+
+function makeTitleInput($value='',$category='')
+{ global $THIS_RET;
+
+ if($value!='')
+ return "<DIV id='t$THIS_RET[ID]'><div onclick='javascript:addHTML(\"<INPUT type=text name=title[$THIS_RET[ID]] value=\\\"$value\\\" size=10>\",\"t$THIS_RET[ID]\",true)'>$value</div></DIV>";
+ elseif($THIS_RET[PRICE])
+ return "<INPUT TYPE=TEXT NAME=title[$THIS_RET[ID]] size=10>";
+ else
+ return "<INPUT TYPE=TEXT NAME=new_title[$category] size=10>";
+ //return "<INPUT TYPE=TEXT NAME=title[$THIS_RET[ID]] VALUE=$value size=10>";
+}
+
+function makePriceInput($value='',$category='')
+{ global $THIS_RET;
+
+ if($value!='')
+ {
+ $value = Currency($value);
+ return "<DIV id='p$THIS_RET[ID]'><div onclick='javascript:addHTML(\"<INPUT type=text name=price[$THIS_RET[ID]] value=$value size=5>\",\"p$THIS_RET[ID]\",true)'>$value</div></DIV>";
+ }
+ elseif($THIS_RET[TITLE])
+ {
+ return "<INPUT TYPE=TEXT NAME=price[$THIS_RET[ID]] size=5>";
+ }
+ else
+ return "<INPUT TYPE=TEXT NAME=new_price[$category] size=5>";
+ //return "<INPUT TYPE=TEXT NAME=price[$THIS_RET[ID]] VALUE=$value size=5>";
+}
+
+function makeFPriceInput($value='',$category='')
+{ global $THIS_RET;
+
+ if($value!='')
+ {
+ $value = Currency($value);
+ return "<DIV id='fp$THIS_RET[ID]'><div onclick='javascript:addHTML(\"<INPUT type=text name=fprice[$THIS_RET[ID]] value=$value size=5>\",\"fp$THIS_RET[ID]\",true)'>$value</div></DIV>";
+ }
+ elseif($THIS_RET[TITLE])
+ {
+ return "<INPUT TYPE=TEXT NAME=fprice[$THIS_RET[ID]] size=5>";
+ }
+ else
+ return "<INPUT TYPE=TEXT NAME=new_fprice[$category] size=5>";
+ //return "<INPUT TYPE=TEXT NAME=fprice[$THIS_RET[ID]] VALUE=$value size=5>";
+}
+
+function makeRPriceInput($value='',$category='')
+{ global $THIS_RET;
+
+ if($value!='')
+ {
+ $value = Currency($value);
+ return "<DIV id='rp$THIS_RET[ID]'><div onclick='javascript:addHTML(\"<INPUT type=text name=rprice[$THIS_RET[ID]] value=$value size=5>\",\"rp$THIS_RET[ID]\",true)'>$value</div></DIV>";
+ }
+ elseif($THIS_RET[TITLE])
+ {
+ return "<INPUT TYPE=TEXT NAME=rprice[$THIS_RET[ID]] size=5>";
+ }
+ else
+ return "<INPUT TYPE=TEXT NAME=new_rprice[$category] size=5>";
+ //return "<INPUT TYPE=TEXT NAME=rprice[$THIS_RET[ID]] VALUE=$value size=5>";
+}
+
+function makeButtonInput($value='',$category='')
+{ global $THIS_RET;
+
+ if($value!='')
+ return "<DIV id='b$THIS_RET[ID]'><div onclick='javascript:addHTML(\"<INPUT type=text name=button[$THIS_RET[ID]] value=$value size=5>\",\"b$THIS_RET[ID]\",true)'>$value</div></DIV>";
+ elseif($THIS_RET[TITLE])
+ return "<INPUT TYPE=TEXT NAME=button[$THIS_RET[ID]] size=5>";
+ else
+ return "<INPUT TYPE=TEXT NAME=new_button[$category] size=5>";
+ //return "<INPUT TYPE=TEXT NAME=price[$THIS_RET[ID]] VALUE=$value size=5>";
+}
+
+?>
\ No newline at end of file
Added: trunk/lang/pt_br_utf8/Billing/LunchTotals.php
===================================================================
--- trunk/lang/pt_br_utf8/Billing/LunchTotals.php (rev 0)
+++ trunk/lang/pt_br_utf8/Billing/LunchTotals.php 2010-11-22 18:19:26 UTC (rev 425)
@@ -0,0 +1,35 @@
+<?php
+DrawHeader(ProgramTitle());
+
+$begin_date = $_REQUEST['day_begin'].'-'.$_REQUEST[month_begin].'-'.$_REQUEST[year_begin];
+$end_date = $_REQUEST[day_end].'-'.$_REQUEST[month_end].'-'.$_REQUEST[year_end];
+DrawHeader(ProperDate($begin_date).' - '.ProperDate($end_date).' : '.GetSchool($_REQUEST[sch]));
+
+// LUNCH DEBITS
+$sql = "SELECT MENU_ID,".db_case(array('FSC',"''","'REG'","'1'","'FREE'","'2'","'REDUCED'"))." as FSC,
+ count(*) as COUNT
+ FROM STU_BILLING_ACT_LUNCH sba,STUDENT_ENROLLMENT se
+ WHERE se.SYEAR=sba.SYEAR AND se.STUDENT_ID=sba.STUDENT_ID AND se.SCHOOL_ID='".UserSchool()."' AND ";
+$sql .= "PAYMENT_DATE BETWEEN '$begin_date' AND '$end_date'
+ GROUP BY MENU_ID,FSC";
+$QI = DBQuery($sql);
+$counts_RET = DBGet($QI,array(),array('MENU_ID','FSC'));
+
+$sql = "SELECT ID,SCHOOL_ID,TITLE FROM LUNCH_MENU WHERE SCHOOL_ID='".UserSchool()."' ";
+$QI = DBQuery($sql);
+$menu_RET = DBGet($QI,array(),array('SCHOOL_ID'));
+
+$columns = array('TITLE'=>'Lunch Item','REG_COUNT'=>'Regular Purchases','FREE_COUNT'=>'Free Purchases','REDUCED_COUNT'=>'Reduced Purchases','TOTAL'=>'Total');
+foreach($menu_RET as $school=>$items)
+{
+ unset($RET);
+ $RET[] = '';
+ foreach($items as $item)
+ {
+ $total = $counts_RET[$item[ID]]['REG'][1]['COUNT'] + $counts_RET[$item[ID]]['FREE'][1]['COUNT'] + $counts_RET[$item[ID]]['REDUCED'][1]['COUNT'];
+ $RET[] = array('TITLE'=>$item[TITLE],'REG_COUNT'=>$counts_RET[$item[ID]]['REG'][1]['COUNT'],'FREE_COUNT'=>$counts_RET[$item[ID]]['FREE'][1]['COUNT'],'REDUCED_COUNT'=>$counts_RET[$item[ID]]['REDUCED'][1]['COUNT'],'TOTAL'=>$total);
+ }
+ unset($RET[0]);
+ ListOutput($RET,$columns,'','','',array(),array('save'=>false));
+}
+?>
\ No newline at end of file
Added: trunk/lang/pt_br_utf8/Billing/MassAdd.php
===================================================================
--- trunk/lang/pt_br_utf8/Billing/MassAdd.php (rev 0)
+++ trunk/lang/pt_br_utf8/Billing/MassAdd.php 2010-11-22 18:19:26 UTC (rev 425)
@@ -0,0 +1,203 @@
+<?php
+DrawHeader('Mass Add Student Billing Fees');
+
+if($_REQUEST[modfunc]=='update')
+{
+ if(DeletePrompt('fee to all students '.(($_REQUEST[grade])?'in '.GetGrade($_REQUEST[grade]):'').' '.(($_REQUEST[school])?'at '.GetSchool($_REQUEST[school]):''),'apply'))
+ {
+ $_REQUEST['date'] = $_REQUEST['day'] . '-' . $_REQUEST['month'] . '-' . $_REQUEST['year'];
+ if($_REQUEST['date']=='--')
+ $_REQUEST['date']='';
+ $effective_date = DBDate();
+ $global_id = DBGet(DBQuery("SELECT ".db_seq_nextval('STU_BILLING_GLOABL_SEQ').' AS GLOBAL_ID'.FROM_DUAL));
+ if($_REQUEST['defined'])
+ {
+ $sql = "SELECT SYEAR,TITLE,AMOUNT,DUE_DATE,ACCOUNT_ID FROM STU_BILLING_DEFINED_FEES WHERE ID='$_REQUEST[defined]'";
+ $defined = DBGet(DBQuery($sql));
+ $defined = $defined[1];
+ $_REQUEST['syear'] = $defined[SYEAR];
+ $_REQUEST['title'] = $defined[TITLE];
+ $_REQUEST['account_id'] = $defined[ACCOUNT_ID];
+ $_REQUEST['amount'] = $defined[AMOUNT];
+ $_REQUEST['date'] = $defined[DUE_DATE];
+ }
+
+ $sql = "INSERT INTO STU_BILLING_FEES
+ (ID,GLOBAL_ID,ACCOUNT_ID,STUDENT_ID,TITLE,AMOUNT,EFFECTIVE_DATE,DUE_DATE,SYEAR,SCHOOL,GRADE)
+ (SELECT ".db_seq_nextval('STU_BILLING_FEES_SEQ').",".$global_id[1][GLOBAL_ID].",'".$_REQUEST['account_id']."',ssm.STUDENT_ID,
+ '".$_REQUEST['title']."','".$_REQUEST['amount']."','$effective_date',
+ '".$_REQUEST['date']."','".$_REQUEST['syear']."',
+ '".$_REQUEST['school']."','".$_REQUEST['grade']."'
+ FROM STU_SCHOOL_MEETS ssm
+ WHERE
+ ssm.SYEAR='$_REQUEST[syear]' AND ssm.ACTIVE='A' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[school])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[school]' ";
+ $sql .= ')';
+
+ DBQuery($sql);
+
+ $note[] = 'The Student Billing Fee '.$title.' has been Applied to all students '.(($_REQUEST[grade])?'in '.GetGrade($_REQUEST[grade]):'').' '.(($_REQUEST[school])?'at '.GetSchool($_REQUEST[school]):'');
+ unset($_REQUEST[modfunc]);
+ }
+}
+
+if($_REQUEST[modfunc]=='delete')
+{
+ if(DeletePrompt('fee for all applicable students'))
+ {
+ DBQuery("DELETE FROM STU_BILLING_FEES WHERE GLOBAL_ID=$_REQUEST[id]");
+ $note[] = "That Fee has been Deleted for All Applicable Students";
+ unset($_REQUEST[modfunc]);
+ }
+}
+
+if(!$_REQUEST[modfunc])
+{
+ // LIST
+ if($note)
+ {
+ echo '<TABLE width=100%><TR><TD bgcolor=#E8E8E9><font size=-1>';
+ ErrorMessage($note,'note');
+ echo '</font></TD></TR></TABLE>';
+ }
+ echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=update METHOD=POST>";
+
+ $functions = array('ACCOUNT_ID'=>'getAccount','DUE_DATE'=>'ProperDate','SYEAR'=>'DispYear','SCHOOL'=>'GetSchool','GRADE'=>'GetGrade');
+ $RET = DBGet(DBQuery('SELECT DISTINCT sb.GLOBAL_ID,sb.TITLE,sb.AMOUNT,sb.ACCOUNT_ID,
+ to_char(sb.DUE_DATE,\'dd-MON-yy\') as DUE_DATE,sb.SYEAR,sb.SCHOOL,sb.GRADE
+ FROM STU_BILLING_FEES sb WHERE GLOBAL_ID IS NOT NULL ORDER BY sb.GLOBAL_ID'),$functions);
+
+ $columns = array('TITLE'=>'Title','AMOUNT'=>'Amount','ACCOUNT_ID'=>'Account','DUE_DATE'=>'Due Date','SYEAR'=>'School Year','SCHOOL'=>'School','GRADE'=>'Grade');
+ $link[add][html] = array('TITLE'=>makeTitleInput(),'AMOUNT'=>makeAmountInput(),'ACCOUNT_ID'=>makeAccountInput(),'DUE_DATE'=>makeDateInput(),'SYEAR'=>makeSyearInput(),'SCHOOL'=>makeSchoolInput(),'GRADE'=>makeGradeInput(),'remove'=>button('add'));
+ $link[remove] = array('link'=>"Modules.php?modname=$_REQUEST[modname]&modfunc=delete",
+ 'variables'=>array('id'=>'GLOBAL_ID'));
+ $_REQUEST[modfunc] = 'list';
+ unset($_REQUEST[modfunc]);
+ ListOutput($RET,$columns,'Student Billing Fee','Student Billing Fees',$link);
+ echo '<center><input type=submit class=btn_medium value=Save></center>';
+}
+// -- END LIST
+
+function makeTitleInput($value='')
+{
+ $sql = "SELECT ID,TITLE,AMOUNT,SCHOOL,GRADE FROM STU_BILLING_DEFINED_FEES WHERE SYEAR='".GetSysYear()."'";
+ $QI = DBQuery($sql);
+ $defined_RET = DBGet($QI,array('SCHOOL'=>'GetSchool','Grade'=>'GetGrade'));
+ if(count($defined_RET))
+ {
+ $return .= "<BR><SELECT name=defined><OPTION value=''>Not Specified</OPTION>";
+ foreach($defined_RET as $defined)
+ $return .= "<OPTION value=$defined[ID]>$defined[TITLE] - $defined[AMOUNT] - $defined[SCHOOL] $defined[GRADE]</OPTION>";
+ $return .= "</SELECT>";
+ }
+
+ return "<INPUT type=text name=title maxlength=30 size=10 value='$value'>$return";
+}
+
+function makeAmountInput($value='')
+{
+ return "<INPUT type=text name=amount maxlength=10 size=6 ".(($value)?"value=".Currency($value):'').'>';
+}
+
+function makeDateInput($value='00-000-00')
+{
+
+ return PrepareDate("",$value);
+}
+
+function makeYesInput($value='')
+{
+ if($value=='Y')
+ return 'Yes';
+ else
+ return 'No';
+}
+
+function makeSchoolInput($value='')
+{
+
+ $QI = DBQuery("SELECT NAME,SCHOOL,SCHOOL_TYPE FROM SCHOOLS WHERE SCHOOL > '00' AND DISPLAY_FORMS='Y' ORDER BY ".db_case(array("SCHOOL","'ALL'","'2'","'1'")).",".db_case(array("SCHOOL_TYPE","'ELM'","'1'","'MID'","'2'","'HIGH'","'3'","'4'")).",NAME ");
+ $RET = DBReturn($QI,$count);
+ $return .= "<SELECT name=school>";
+ $return .= "<OPTION value=''>Not Specified</OPTION>";
+ foreach($RET as $key=>$school)
+ {
+ $return .= "<OPTION value=$school[SCHOOL]";
+ if($school[SCHOOL]==$value)
+ $return .= " SELECTED";
+ $return .= ">$school[NAME]</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function makeSyearInput($value='')
+{
+
+ $syear = '20'.GetSysYear();
+
+ if($value<50)
+ $default = '20'.$value;
+ else
+ $default = '19'.$value;
+
+ if(!$value)
+ $default = $syear;
+ $return .= "<SELECT name=syear>";
+ for($i=$syear-3;$i<$syear+3;$i++)
+ {
+ $year = substr($i,2);
+ $return .= "<OPTION value=$year".(($default==$i)?' SELECTED':'').">".ProperYear($year)."</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function makeGradeInput($value='')
+{
+ $QI = DBQuery("SELECT DISTINCT GRADE FROM SCHOOL_GRADELEVELS WHERE DISPLAY = '1' ORDER BY GRADE");
+ $RET = DBReturnNoWord($QI,$count);
+ $return .= "<SELECT name=grade>";
+ $return .= "<OPTION value=''>N/A</OPTION>";
+ foreach($RET as $grade)
+ {
+ $return .= "<OPTION value=$grade[GRADE]";
+ if($grade[GRADE]==$value)
+ $return .= " SELECTED";
+ $return .= ">$grade[GRADE]</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function makeAccountInput($value='')
+{
+ $QI = DBQuery("SELECT TITLE,ID FROM STU_BILLING_ACCOUNTS WHERE SYEAR='".GetSysYear()."' ORDER BY TITLE");
+ $RET = DBReturnNoWord($QI,$count);
+ $return .= "<SELECT name=account_id>";
+ foreach($RET as $account)
+ {
+ $return .= "<OPTION value=$account[ID]";
+ if($account[ID]==$value)
+ $return .= " SELECTED";
+ $return .= ">$account[TITLE]</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function getAccount($account_id)
+{ global $_OSIS;
+
+ if(!$_OSIS['GetAccount'])
+ {
+ $QI=DBQuery("SELECT ID,TITLE FROM STU_BILLING_ACCOUNTS");
+ $_OSIS['GetAccount'] = DBGet($QI,array(),array('ID'));
+ }
+
+ return $_OSIS['GetAccount'][$account_id][1]['TITLE'];
+}
+?>
\ No newline at end of file
Added: trunk/lang/pt_br_utf8/Billing/StaffBilling.php
===================================================================
--- trunk/lang/pt_br_utf8/Billing/StaffBilling.php (rev 0)
+++ trunk/lang/pt_br_utf8/Billing/StaffBilling.php 2010-11-22 18:19:26 UTC (rev 425)
@@ -0,0 +1,87 @@
+<?php
+DrawHeader('Staff Billing Administration');
+
+if($_REQUEST[modfunc]=='')
+{
+ PopTable('header','Find a Staff Member');
+ echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=list method=POST>";
+ echo '<TABLE>';
+ echo '<TR><TD>Last Name</TD><TD><INPUT type=text name=last></TD></TR>';
+ echo '<TR><TD>First Name</TD><TD><INPUT type=text name=first></TD></TR>';
+ echo '<TR><TD>ID</TD><TD><INPUT type=text name=stuid></TD></TR>';
+ PrepareSchool(SessionSchool(),'',SessionCurSchool());
+ Warehouse('searchyear');
+ echo '<TR><TD align=center colspan=2>';
+ Buttons('Submit','Reset');
+ echo '</TD></TR>';
+ echo '</TABLE>';
+ echo '</FORM>';
+ PopTable('footer');
+}
+
+
+if($_REQUEST[modfunc]=='list')
+{
+ $sql = "SELECT LAST_NAME||', '||FIRST_NAME as FULL_NAME,TEACHER_ID AS STAFF_ID,SCHOOL,SCHOOL AS DISP_SCHOOL,'T' AS TYPE
+ FROM TEACHERS WHERE SYEAR='$_REQUEST[year]' ";
+ if($_REQUEST[sch])
+ $sql .= "AND SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[last])
+ $sql .= "AND LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ if($_REQUEST[first])
+ $sql .= "AND FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND TEACHER_ID='".strtoupper($_REQUEST[stuid])."' ";
+
+ $sql .= "UNION ";
+
+ $sql .= "SELECT LAST_NAME||', '||FIRST_NAME as FULL_NAME,STAFF_ID AS STAFF_ID,SCHOOL,SCHOOL AS DISP_SCHOOL,'S' AS TYPE
+ FROM STAFF WHERE SYEAR='$_REQUEST[year]' ";
+ if($_REQUEST[sch])
+ $sql .= "AND SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[last])
+ $sql .= "AND LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ if($_REQUEST[first])
+ $sql .= "AND FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND STAFF_ID='".strtoupper($_REQUEST[stuid])."' ";
+ $sql .= "ORDER BY 1 ";
+
+ $QI = DBQuery($sql);
+ $RET = DBGet($QI,array('FULL_NAME'=>'GetCapWords','DISP_SCHOOL'=>'GetSchool'));
+
+ $columns = array('FULL_NAME'=>'Staff Member','STAFF_ID'=>'Staff ID','DISP_SCHOOL'=>'School');
+ $link['FULL_NAME']['link'] = "Modules.php?modname=$_REQUEST[modname]&modfunc=detail&editor=stubilling&f_year=$_REQUEST[year]";
+ $link['FULL_NAME']['variables'] = array('f_stuid'=>'STAFF_ID','f_school'=>'SCHOOL','type'=>'TYPE');
+ ListOutput($RET,$columns,'Staff Member','Staff Members',$link);
+}
+
+
+if($_REQUEST[modfunc]=='detail')
+{
+ $header = "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]&f_school=$_REQUEST[f_school]&f_year=$_REQUEST[f_year]&f_stuid=$_REQUEST[f_stuid]&editor=$_REQUEST[editor]&type=$_REQUEST[type] method=POST>";
+ $header .= "<SELECT name=editor onChange='document.forms[0].submit();'>";
+ $header .= '<OPTION value=stubilling>Billing</OPTION>';
+ $header .= "<OPTION value=lunch ".(($_REQUEST[editor]=='lunch')?' SELECTED':'').'>Lunch Billing</OPTION>';
+ $header .= "</SELECT>";
+ $header .= '</FORM>';
+
+ if($_REQUEST[type]=='S')
+ {
+ define('STU_SCHOOL_MEETS','STAFF');
+ define('SSMSTUDENT_ID','ssm.STAFF_ID');
+ }
+ elseif($_REQUEST[type]=='T')
+ {
+ define('STU_SCHOOL_MEETS','TEACHERS');
+ define('SSMSTUDENT_ID','ssm.TEACHER_ID');
+ }
+
+ $QI = DBQuery('SELECT FIRST_NAME||\' \'||LAST_NAME AS FULL_NAME FROM '.STU_SCHOOL_MEETS.' ssm WHERE '.SSMSTUDENT_ID."='".$_REQUEST[f_stuid]."'");
+ $name = DBGet($QI,array('FULL_NAME'=>'GetCapWords'));
+
+ DrawHeader($name[1][FULL_NAME],$header);
+
+ include('modules/StudentInfo/StuBilling.inc.php');
+}
+?>
\ No newline at end of file
Added: trunk/lang/pt_br_utf8/Common.php
===================================================================
--- trunk/lang/pt_br_utf8/Common.php (rev 0)
+++ trunk/lang/pt_br_utf8/Common.php 2010-11-22 18:19:26 UTC (rev 425)
@@ -0,0 +1,38 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include st...
[truncated message content] |
|
From: <br-...@us...> - 2010-11-19 18:14:36
|
Revision: 424
http://opensis.svn.sourceforge.net/opensis/?rev=424&view=rev
Author: br-marshall
Date: 2010-11-19 18:14:30 +0000 (Fri, 19 Nov 2010)
Log Message:
-----------
Created Brazilian-Portuguese language directory
Added Paths:
-----------
trunk/lang/pt_br_utf8/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <aec...@us...> - 2010-11-19 17:07:51
|
Revision: 423
http://opensis.svn.sourceforge.net/opensis/?rev=423&view=rev
Author: aecioneto
Date: 2010-11-19 17:07:41 +0000 (Fri, 19 Nov 2010)
Log Message:
-----------
Rolling back pt_br translation due to changes in en_us files
Modified Paths:
--------------
trunk/lang/en_utf8/Common.php
trunk/lang/en_utf8/Core.php
trunk/lang/en_utf8/Database/Ethnicity.php
trunk/lang/en_utf8/Database/Gender.php
trunk/lang/en_utf8/Database/Profiles.php
trunk/lang/en_utf8/Database/Status.php
trunk/lang/en_utf8/Database/StudentFields.php
trunk/lang/en_utf8/Eligibility/TeacherCompletion.php
trunk/lang/en_utf8/Eligibility.php
trunk/lang/en_utf8/Food_Service/Accounts.php
trunk/lang/en_utf8/Food_Service/ActivityReport.php
trunk/lang/en_utf8/Food_Service/AssignSchool.php
trunk/lang/en_utf8/Food_Service/DailyMenus.php
trunk/lang/en_utf8/Food_Service/Kiosk.php
trunk/lang/en_utf8/Food_Service/Menu.php
trunk/lang/en_utf8/Food_Service/MenuItems.php
trunk/lang/en_utf8/Food_Service/MenuReports.php
trunk/lang/en_utf8/Food_Service/Menus.php
trunk/lang/en_utf8/Food_Service/ServeMenus.php
trunk/lang/en_utf8/Food_Service/Statements.php
trunk/lang/en_utf8/Food_Service/Student.inc.php
trunk/lang/en_utf8/Food_Service/Students/Accounts.php
trunk/lang/en_utf8/Food_Service/Students/ActivityReport.php
trunk/lang/en_utf8/Food_Service/Students/Lunch.php
trunk/lang/en_utf8/Food_Service/Students/Reminders.php
trunk/lang/en_utf8/Food_Service/Students/ServeMenus.php
trunk/lang/en_utf8/Food_Service/Students/Statements.php
trunk/lang/en_utf8/Food_Service/Students/Transactions.php
trunk/lang/en_utf8/Food_Service/TakeMenuCounts.php
trunk/lang/en_utf8/Food_Service/TeacherCompletion.php
trunk/lang/en_utf8/Food_Service/TransactionsReport.php
trunk/lang/en_utf8/Food_Service/User.inc.php
trunk/lang/en_utf8/Food_Service/Users/Accounts.php
trunk/lang/en_utf8/Food_Service/Users/ActivityReport.php
trunk/lang/en_utf8/Food_Service/Users/Lunch.php
trunk/lang/en_utf8/Food_Service/Users/Reminders.php
trunk/lang/en_utf8/Food_Service/Users/ServeMenus.php
trunk/lang/en_utf8/Food_Service/Users/Statements.php
trunk/lang/en_utf8/Food_Service/Users/Transactions.php
trunk/lang/en_utf8/Food_Service/includes/DeletePromptX.php
trunk/lang/en_utf8/Functions/DeletePrompt.fnc.php
trunk/lang/en_utf8/Functions/GetStuList.fnc.php
trunk/lang/en_utf8/Functions/HackingLog.php
trunk/lang/en_utf8/Functions/ListOutput.fnc.php
trunk/lang/en_utf8/Functions/Search.fnc.php
trunk/lang/en_utf8/Functions/Widgets.fnc.php
trunk/lang/en_utf8/Grades.php
trunk/lang/en_utf8/Modules.php
trunk/lang/en_utf8/Scheduling.php
trunk/lang/en_utf8/School_Setup/Menu.php
trunk/lang/en_utf8/Students/Menu.php
trunk/lang/en_utf8/Students/includes.php
trunk/lang/en_utf8/Tools.php
trunk/lang/en_utf8/Users/AddStudents.php
trunk/lang/en_utf8/Users/Exceptions.php
trunk/lang/en_utf8/Users/Menu.php
trunk/lang/en_utf8/Users/Preferences.php
trunk/lang/en_utf8/Users/Profiles.php
trunk/lang/en_utf8/Users/Search.inc.php
trunk/lang/en_utf8/Users/Search.php
trunk/lang/en_utf8/Users/Search_Miss_Attn.inc.php
trunk/lang/en_utf8/Users/User.php
trunk/lang/en_utf8/Users/UserFields.php
trunk/lang/en_utf8/Users/includes/General_Info.inc.php
trunk/lang/en_utf8/Users/includes/Schedule.inc.php
trunk/lang/en_utf8/ajax.php
trunk/lang/en_utf8/attendance.php
trunk/lang/en_utf8/datetime.php
trunk/lang/en_utf8/install.php
trunk/lang/en_utf8/langconfig.php
trunk/lang/en_utf8/login.inc.php
trunk/lang/en_utf8/misc/Portal.php
trunk/lang/en_utf8/schoolsetup.php
trunk/lang/en_utf8/students.php
trunk/lang/en_utf8/users.php
Modified: trunk/lang/en_utf8/Common.php
===================================================================
--- trunk/lang/en_utf8/Common.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Common.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -26,13 +26,13 @@
#**************************************************************************
/*This are frequently used strings, in English*/
- $string['student'] = 'Estudante';
- $string['students'] = 'Estudantes';
- $string['users'] = 'Usuários';
- $string['balance'] = 'Balanco';
- $string['status'] = 'Status';
- $string['notSpecified'] = 'Não especificado';
- $string['detailedView'] = 'Exibição Detalhada';
- $string["originalview"] = "Exibição normal" ;
- $string['go'] = 'Confirma';
+ $string['student'] = 'Student tr';
+ $string['students'] = 'Students tr';
+ $string['users'] = 'Users tr';
+ $string['balance'] = 'Balance tr';
+ $string['status'] = 'Status tr';
+ $string['notSpecified'] = 'Not Specified tr';
+ $string['detailedView'] = 'Detailed View tr' ;
+ $string["originalview"] = "Original View" ;
+ $string['go'] = 'Go tr' ;
?>
Modified: trunk/lang/en_utf8/Core.php
===================================================================
--- trunk/lang/en_utf8/Core.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Core.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,16 +24,16 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['opensisTitle'] = 'Opensis Sistema escolar';
-$string['accountNotActivated'] = 'Sua conta ainda não foi ativada. Você será notificado via email quando ela for verificada pelo administrador.';
-$string['incorrectUserOrPassword'] = 'Nome de usuário e/ou senha incorretos. Por favor tente novamente.';
-$string['accountCreated'] = 'Sua conta foi criada. Você será notificado via email quando ela for verificada pelo administrador.';
-$string['notAllowedUseProgram'] = 'Você não é autorizado a usar este sistema! A tentativa de violação foi gravada em nossos registros juntamente com seu endereço IP.';
-$string['diagnosticPathAlert'] = 'O arquivo <i>diagnostic.php</i> necessita estar no diretório do sistema para funcionar corretamente. Mova o arquivo e tente novamente.';
-$string['functionsPathAlert'] = 'O endereço de <i>OSISPath</i> em <i>config.inc.php</i> não é o correto ou o diretório <i>functions</i> não tem as permissões corretas para serem lidas pelo servidor. Tenha certeza que <i>OSISPath</i> aponte para o diretório de instalação do openSIS e que possa ser lido por todos os usuários.';
-$string['phpPGAlert'] = 'PHP não foi compilado com suporte ao PostgreSQL. Você deve recompilar PHP usando a opção <i>--with-pgsql</i> para o correto funcionamento.';
-$string['pgCannotConnect'] = 'openSIS não pode se conectar ao banco de dados Postgres. Ou Postgres não está em execução ou não foi iniciado com a opção <u>-i</u> ou conexões deste host não foi permitida ao arquivo <i>pg_hba.conf</i>. Último erro Postgres: ';
-$string['pgWrongPermission'] = 'O banco de dados foi criado com as permissões erradas. O usuário especificado no arquivo <i>config.inc.php</i> não tem permissão de acesso ao banco de dados do OSIS. Use o super-user (postgres) ou recrie o banco de dados adicionando <i>\connect - SEU_NOME_DE_USUÁRIO</i> no topo do arquivo <i>OSIS.sql</i>.';
-$string['pgTableNotExist'] = 'Ao menos uma das tabelas não existe. Tenha certeza de que você executou o arquivo sql como descrito no arquivo <i>INSTALL</i>.';
-$string['installationConfigured'] = 'Sua instalação do openSIS foi devidamente configurada.';
+$string['opensisTitle'] = 'Opensis school software tr';
+$string['accountNotActivated'] = 'Your account has not yet been activated. When your account has been verified by school administration, you will be notified by email.';
+$string['incorrectUserOrPassword'] = 'Incorrect username or password. Please try again.';
+$string['accountCreated'] = 'Your account has been created. You will be notified by email when it is verified by school administration and you can log in.';
+$string['notAllowedUseProgram'] = 'You are not allowed to use this program! This attempted violation has been logged and your IP address was captured.';
+$string['diagnosticPathAlert'] = 'The diagnostic.php file needs to be in the OSIS directory to be able to run. Please move it there, and run it again.';
+$string['functionsPathAlert'] = 'The value for OSISPath in config.inc.php is not correct or the functions directory does not have the correct permissions to be read by the webserver. Make sure OSISPath points to the openSIS installation directory and that it is readable by all users.';
+$string['phpPGAlert'] = 'PHP was not compiled with PostgreSQL support. You need to recompile PHP using the --with-pgsql option for openSIS to work.';
+$string['pgCannotConnect'] = 'openSIS cannot connect to the Postgres database. Either Postgres is not running, it was not started with the -i option, or connections from this host are not allowed in the pg_hba.conf file. Last Postgres Error: ';
+$string['pgWrongPermission'] = 'The database was created with the wrong permissions. The user specified in the config.inc.php file does not have permission to access the OSIS database. Use the super-user (postgres) or recreate the database adding \connect - YOUR_USERNAME to the top of the OSIS.sql file.';
+$string['pgTableNotExist'] = 'At least one of the tables does not exist. Make sure you ran the sql file as described in the INSTALL file.';
+$string['installationConfigured'] = 'Your openSIS installation is properly configured.';
?>
Modified: trunk/lang/en_utf8/Database/Ethnicity.php
===================================================================
--- trunk/lang/en_utf8/Database/Ethnicity.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Database/Ethnicity.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -1,10 +1,10 @@
<?php
- /*This are messages on Ethnicity field of the Database, in Portuguese*/
+ /*This are messages on Ethnicity field of the Database, in English*/
- $string[' White, Non-Hispanic'] = "White, Não-Hispânico";
- $string[' Black, Non-Hispanic'] = "Negro";
- $string[' Amer. Indian or Alaskan Native'] = "Ameríndio ou nativo do Alaska";
- $string[' Asian or Pacific Islander'] = "Asiático";
- $string[' Hispanic'] = "Hispânico";
- $string[' Other'] = "Outra";
+ $string['White, Non-Hispanic'] = "White, Non-Hispanic tr";
+ $string[' Black, Non-Hispanic'] = "Black, Non-Hispanic tr";
+ $string[' Amer. Indian or Alaskan Native'] = "Amer. Indian or Alaskan Native tr";
+ $string[' Asian or Pacific Islander'] = "Asian or Pacific Islander tr";
+ $string[' Hispanic'] = "Hispanic tr";
+ $string[' Other'] = "Other tr";
?>
Modified: trunk/lang/en_utf8/Database/Gender.php
===================================================================
--- trunk/lang/en_utf8/Database/Gender.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Database/Gender.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -1,6 +1,6 @@
<?php
- /*This are messages on Ethnicity field of the Database, in Portuguese*/
+ /*This are messages on Ethnicity field of the Database, in English*/
- $string['Male'] = "Masculino";
- $string['Female'] = "Feminino";
+ $string['Male'] = "Male tr";
+ $string[' Female'] = "Female tr";
?>
Modified: trunk/lang/en_utf8/Database/Profiles.php
===================================================================
--- trunk/lang/en_utf8/Database/Profiles.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Database/Profiles.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -1,12 +1,12 @@
<?php
- /*This are the names of Profiles used on the Database, in Portuguese*/
+ /*This are the names of Profiles used on the Database, in English*/
- $string['na'] = 'N/D tr';
- $string['profiles'] = 'Perfis';
- $string['administrator'] = 'Administrador';
- $string['admin'] = $string['administrador'];
- $string['teacher'] = 'Professor';
- $string['parent'] = 'Pais';
- $string['noAccess'] = 'Sem acesso';
- $string['wCustom'] = 'c/Customizado';
+ $string['na'] = 'N/A tr';
+ $string['profiles'] = 'Profiles tr';
+ $string['administrator'] = 'Administrator tr';
+ $string['admin'] = $string['administrator'];
+ $string['teacher'] = 'Teacher tr';
+ $string['parent'] = 'Parent tr';
+ $string['noAccess'] = 'No Access tr';
+ $string['wCustom'] = 'w/Custom tr';
?>
Modified: trunk/lang/en_utf8/Database/Status.php
===================================================================
--- trunk/lang/en_utf8/Database/Status.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Database/Status.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -1,8 +1,8 @@
<?php
- /*This are the names of Status used on the Database, in Portuguese*/
+ /*This are the names of Status used on the Database, in English*/
- $string['inactive'] = 'Inativo';
- $string['disabled'] = 'Desabilitado';
- $string['closed'] = 'Fechado';
- $string['active'] = 'Ativo';
+ $string['inactive'] = 'Inactive tr';
+ $string['disabled'] = 'Disabled tr';
+ $string['closed'] = 'Closed tr';
+ $string['active'] = 'Active tr';
?>
Modified: trunk/lang/en_utf8/Database/StudentFields.php
===================================================================
--- trunk/lang/en_utf8/Database/StudentFields.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Database/StudentFields.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -1,18 +1,18 @@
<?php
- /*This are field names for Students on the Database, in Portuguese*/
+ /*This are field names for Students on the Database, in English*/
- $string['<b>General Info</b>'] = '<b>Informação geral</b> tr';
- $string['<b>Medical</b>'] = '<b>Médica</b> tr';
- $string['Estimated Grad. Date'] = 'Data estimada de formatura';
- $string['Gender'] = 'Sexo';
- $string['Ethnicity'] = 'Etnia';
- $string['Common Name'] = 'Nome comum';
- $string['Social Security'] = 'Seguro social';
- $string['Birthdate'] = 'Data de nascimento';
- $string['Language'] = 'Idioma';
- $string['Physician'] = 'Médico';
- $string['Physician Phone'] = 'Telefone do médico';
- $string['Preferred Hospital'] = 'Hospital preferido';
- $string['Comments'] = 'Comentários';
- $string["Doctor's Note Comments"] = "Observações médicas";
+ $string['<b>General Info</b>'] = '<b>General Info</b> tr';
+ $string['<b>Medical</b>'] = '<b>Medical</b> tr';
+ $string['Estimated Grad. Date'] = 'Estimated Grad. Date tr';
+ $string['Gender'] = 'Gender tr';
+ $string['Ethnicity'] = 'Ethnicity tr';
+ $string['Common Name'] = 'Common Name tr';
+ $string['Social Security'] = 'Social Security tr';
+ $string['Birthdate'] = 'Birthdate tr';
+ $string['Language'] = 'Language tr';
+ $string['Physician'] = 'Physician tr';
+ $string['Physician Phone'] = 'Physician Phone tr';
+ $string['Preferred Hospital'] = 'Preferred Hospital tr';
+ $string['Comments'] = 'Comments tr';
+ $string["Doctor's Note Comments"] = "Doctor's Note Comments tr";
?>
Modified: trunk/lang/en_utf8/Eligibility/TeacherCompletion.php
===================================================================
--- trunk/lang/en_utf8/Eligibility/TeacherCompletion.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Eligibility/TeacherCompletion.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -1,3 +1,3 @@
<?php
-$string['Teacher'] = 'Professor ';
+$string['Teacher'] = 'Teacher tr ';
?>
Modified: trunk/lang/en_utf8/Eligibility.php
===================================================================
--- trunk/lang/en_utf8/Eligibility.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Eligibility.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,30 +24,30 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['activity'] = 'Atividade';
-$string['activities'] = 'Atividades';
-$string['title'] = 'Título';
-$string['begins'] = 'Começo';
-$string['ends'] = 'Término';
-$string['save'] = 'Salvar';
-$string['student screen'] = 'Tela do estudante';
-$string['add activity'] = 'Adicionar atividade';
-$string['reports'] = 'Relatórios';
-$string['student list'] = 'Lista de estudantes';
-$string['teacher completion'] = 'Fechamento do professor';
-$string['setup'] = 'Configurar';
-$string['activities'] = 'Atividades';
-$string['entry times'] = 'Data do registro';
-$string['enter eligibility'] = 'Entrar com elegibilidade';
-$string['ineligible'] = 'Inelegível';
-$string['allow eligibility posting'] = 'Autorizar postagem de Elegibilidade';
-$string['from'] = 'De';
-$string['to'] = 'até';
-$string['add'] = 'Adicionar';
-$string['Starts'] = 'Começo';
-$string['Ends'] = 'Fim';
-$string['Activity'] = 'Atividade';
-$string['Grade'] = 'Grau';
-$string['Course'] = 'Curso';
-$string['addactivity']="Adicionar Atividade ao(s) Estudante(s) selecionado(s)";
+$string['activity'] = 'Activity tr';
+$string['activities'] = 'Activities tr';
+$string['title'] = 'Title tr';
+$string['begins'] = 'Begins tr';
+$string['ends'] = 'Ends tr';
+$string['save'] = 'Save tr';
+$string['student screen'] = 'Student Screen tr';
+$string['add activity'] = 'Add Activity tr';
+$string['reports'] = 'Reports tr';
+$string['student list'] = 'Student List tr';
+$string['teacher completion'] = 'Teacher Completion tr';
+$string['setup'] = 'Setup tr';
+$string['activities'] = 'Activities tr';
+$string['entry times'] = 'Entry Times tr';
+$string['enter eligibility'] = 'Enter Eligibility tr';
+$string['ineligible'] = 'Ineligible tr';
+$string['allow eligibility posting'] = 'Allow Eligibility Posting tr';
+$string['from'] = 'From tr';
+$string['to'] = 'To tr';
+$string['add'] = 'add tr';
+$string['Starts'] = 'Starts tr';
+$string['Ends'] = 'Ends tr';
+$string['Activity'] = 'Activity tr';
+$string['Grade'] = 'Grade tr';
+$string['Course'] = 'Course tr';
+$string['addactivity']="Add Activity to Selected Students tr";
?>
Modified: trunk/lang/en_utf8/Food_Service/Accounts.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Accounts.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Accounts.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,24 +24,24 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on Accounts file of Food_Service Module, in Portuguese*/
+ /*This are messages on Accounts file of Food_Service Module, in English*/
-$string['students'] = 'Estudantes';
-$string['users'] = 'Usuários';
-$string['save'] = 'Salvar';
-$string['deleteAccount'] = 'Deletar conta';
-$string['createAccount'] = 'Criar conta';
-$string['accountInformation'] = 'Informação da conta';
-$string['thisUserDoesNotHaveMealAccount'] = 'Este usuário não tem conta na cantina';
-$string['warning'] = 'Aviso';
-$string['barcode'] = 'Código de barras';
-$string['otherStudentsAssociatedWithSameAccount'] = 'Outro estudante associado à mesma conta:<BR> tr';
-$string['nonExistentAccount'] = 'Conta não existente!';
-$string['reduced'] = 'Reduzido';
-$string['free'] = 'Gratuito';
-$string['discount'] = 'Desconto';
-$string['full'] = 'Integral';
-$string['balance'] = 'Balanço';
-$string['status'] = 'Situação';
+$string['students'] = 'Students tr';
+$string['users'] = 'Users tr';
+$string['save'] = 'Save tr';
+$string['deleteAccount'] = 'Delete Account tr';
+$string['createAccount'] = 'Create Account tr';
+$string['accountInformation'] = 'Account Information tr';
+$string['thisUserDoesNotHaveMealAccount'] = 'This user does not have a Meal Account. tr';
+$string['warning'] = 'Warning tr';
+$string['barcode'] = 'Barcode tr';
+$string['otherStudentsAssociatedWithSameAccount'] = 'Other students associated with same account:<BR> tr';
+$string['nonExistentAccount'] = 'Non-existent account! tr';
+$string['reduced'] = 'Reduced tr';
+$string['free'] = 'Free tr';
+$string['discount'] = 'Discount tr';
+$string['full'] = 'Full tr';
+$string['balance'] = 'Balance tr';
+$string['status'] = 'Status tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/ActivityReport.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/ActivityReport.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/ActivityReport.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,26 +24,26 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['cash'] = 'Espécie';
-$string['check'] = 'Cheque';
-$string['creditCard'] = 'Cartão de crédito';
-$string['debitCard'] = 'Cartão de débito';
-$string['transfer'] = 'Transferência';
-$string['ns'] = 'n/s tr'; //pendente
-$string['deposit'] = 'Depósito';
-$string['credit'] = 'Crédito';
-$string['debit'] = 'Débito';
-$string['notSpecified'] = 'Não especificado';
-$string['go'] = 'Ir';
-$string['detailedView'] = 'Exibição detalhada';
-$string['originalView'] = 'Exibição normal';
+$string['cash'] = 'Cash tr';
+$string['check'] = 'Check tr';
+$string['creditCard'] = 'Credit Card tr';
+$string['debitCard'] = 'Debit Card tr';
+$string['transfer'] = 'Transfer tr';
+$string['ns'] = 'n/s tr';
+$string['deposit'] = 'Deposit tr';
+$string['credit'] = 'Credit tr';
+$string['debit'] = 'Debit tr';
+$string['notSpecified'] = 'Not Specified tr';
+$string['go'] = 'Go tr';
+$string['detailedView'] = 'Detailed View tr';
+$string['originalView'] = 'Original View tr';
-$string['description'] = 'Descrição';
-$string['detail'] = 'Detalhes';
-$string['count'] = 'Conta'; // pendente ou quantia?
-$string['amount'] = 'Quantidade';
-$string['transactionType'] = 'Tipo de transação';
-$string['transactionTypes'] = 'Tipos de transações';
-$string['transaction'] = 'Transação';
-$string['transactions'] = 'Transações';
+$string['description'] = 'Description tr';
+$string['detail'] = 'Detail tr';
+$string['count'] = 'Count tr';
+$string['amount'] = 'Amount tr';
+$string['transactionType'] = 'Transaction Type tr';
+$string['transactionTypes'] = 'Transactions Types tr';
+$string['transaction'] = 'Transaction tr';
+$string['transactions'] = 'Transactions tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/AssignSchool.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/AssignSchool.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/AssignSchool.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,14 +24,14 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['save'] = 'Salvar';
-$string['account'] = 'Conta';
-$string['schoolYear'] = 'Ano escolar';
-$string['student'] = 'Estudante';
-$string['students'] = 'Estudantes';
-$string['school'] = 'Escola';
-$string['studentTransactionWOSchool'] = 'Student Transaction w/o School tr'; // pendente
-$string['studentTransactionsWOSchool'] = 'Student Transactions w/o School tr'; // pendente
-$string['schoolYear'] = 'Ano escolar';
-$string['user'] = 'Usuário';
+$string['save'] = 'Save tr';
+$string['account'] = 'Account tr';
+$string['schoolYear'] = 'School Year tr';
+$string['student'] = 'Student tr';
+$string['students'] = 'Students tr';
+$string['school'] = 'School tr';
+$string['studentTransactionWOSchool'] = 'Student Transaction w/o School tr';
+$string['studentTransactionsWOSchool'] = 'Student Transactions w/o School tr';
+$string['schoolYear'] = 'School Year tr';
+$string['user'] = 'User tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/DailyMenus.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/DailyMenus.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/DailyMenus.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,14 +24,14 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on DailyMenus file of Food_Service Module, in Portuguese*/
+ /*This are messages on DailyMenus file of Food_Service Module, in English*/
- $string['orSelectPreviousMeal'] = 'ou selecione lanches anteriores';
- $string['description'] = 'Descrição';
- $string['date'] = 'Data';
- $string['save'] = 'Salvar';
- $string['new'] = 'Novo';
- $string['generateMenu'] = 'Gerar menu';
- $string['thereAreNoCalendars...'] = 'Ainda não existem calendários configurados.';
- $string['thereAreNoMenus...'] = 'Ainda não existem menus configurados.';
+ $string['orSelectPreviousMeal'] = 'or select previous meal tr';
+ $string['description'] = 'Description tr';
+ $string['date'] = 'Date tr';
+ $string['save'] = 'Save tr';
+ $string['new'] = 'new tr';
+ $string['generateMenu'] = 'Generate Menu tr';
+ $string['thereAreNoCalendars...'] = 'There are no calendars yet setup. tr';
+ $string['thereAreNoMenus...'] = 'There are no menus yet setup. tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Kiosk.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Kiosk.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Kiosk.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,7 +24,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on Kiosk file of Food_Service Module, in Portuguese*/
+ /*This are messages on Kiosk file of Food_Service Module, in English*/
- $string['thereAreNoMenus'] = 'Ainda não existem menus configurados';
+ $string['thereAreNoMenus'] = 'There are no menus yet setup. tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Menu.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Menu.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Menu.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,21 +24,21 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on Menu file of Food_Service Module, in Portuguese*/
+ /*This are messages on Menu file of Food_Service Module, in English*/
- $string['accounts'] = 'Contas';
- $string['statements'] = 'Confirmações';
- $string['transactions'] = 'Transações';
- $string['serveMeals'] = 'Servir lanches';
- $string['reports'] = 'Relatórios';
- $string['activityReport'] = 'Relatório de atividades';
- $string['transactionsReport'] = 'Relatórios de transações';
- $string['mealReports'] = 'Relatórios de lanches';
- $string['reminders'] = 'Lembretes';
- $string['setup'] = 'Configurar';
- $string['dailyMenus'] = 'Menus Diários';
- $string['mealItems'] = 'Itens do lanche';
- $string['meals'] = 'Lanches';
- $string['kioskPreview'] = 'Previsualização da cantina';
- $string[''] = ' ';
+ $string['accounts'] = 'Accounts tr';
+ $string['statements'] = 'Statements tr';
+ $string['transactions'] = 'Transactions tr';
+ $string['serveMeals'] = 'Serve Meals tr';
+ $string['reports'] = 'Reports tr';
+ $string['activityReport'] = 'Activity Report tr';
+ $string['transactionsReport'] = 'Transactions Report tr';
+ $string['mealReports'] = 'Meal Reports tr';
+ $string['reminders'] = 'Reminders tr';
+ $string['setup'] = 'Setup tr';
+ $string['dailyMenus'] = 'Daily Menus tr';
+ $string['mealItems'] = 'Meal Items tr';
+ $string['meals'] = 'Meals tr';
+ $string['kioskPreview'] = 'Kiosk Preview tr';
+ $string[''] = ' tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/MenuItems.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/MenuItems.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/MenuItems.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,20 +24,20 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
- $string['save'] = 'Salvar';
- $string['itemDescription'] = 'Descrição do item';
- $string['shortName'] = 'Abreviação';
- $string['icon'] = 'Ícone';
- $string['sortOrder'] = 'Ordem de classificação';
- $string['studentPrice'] = 'Estudante<BR>Preço';
- $string['reducedPrice'] = 'Reduzido<BR>Preço';
- $string['freePrice'] = 'Gratuito<BR>Preço';
- $string['usersPrice'] = '<BR>Preço do usuário';
- $string['mealItem'] = 'Item do lanche';
- $string['mealItems'] = 'Itens do lanche';
- $string['item'] = 'Item';
- $string['includeInCounts'] = 'Incluir<br>nas contas';
- $string['category'] = 'Categoria';
+ $string['save'] = 'Save tr';
+ $string['itemDescription'] = 'Item Description tr';
+ $string['shortName'] = 'Short Name tr';
+ $string['icon'] = 'Icon tr';
+ $string['sortOrder'] = 'Sort Order tr';
+ $string['studentPrice'] = 'Student<BR>Price tr';
+ $string['reducedPrice'] = 'Reduced<BR>Price tr';
+ $string['freePrice'] = 'Free<BR>Price tr';
+ $string['usersPrice'] = 'Users<BR>Price tr';
+ $string['mealItem'] = 'Meal Item tr';
+ $string['mealItems'] = 'Meal Items tr';
+ $string['item'] = 'Item tr';
+ $string['includeInCounts'] = 'Include<br>in Counts tr';
+ $string['category'] = 'Category tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/MenuReports.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/MenuReports.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/MenuReports.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,18 +24,18 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
-$string['noMenusYetSetup'] = 'Ainda não existem menus configurados.';
-$string['elligible'] = 'Elegível';
-$string['days'] = 'Dias';
-$string['possible'] = 'Possível';
-$string['participated'] = 'participados';
-$string['participation'] = 'Participação';
-$string['sales'] = 'Vendas';
-$string['totals'] = 'Totais';
-$string['type'] = 'Tipo';
-$string['discount'] = 'Desconto';
-$string['total'] = 'Total';
-$string['go'] = 'Ir';
+$string['noMenusYetSetup'] = 'There are no menus yet setup. tr';
+$string['elligible'] = 'Elligible tr';
+$string['days'] = 'Days tr';
+$string['possible'] = 'Possible tr';
+$string['participated'] = 'Participated tr';
+$string['participation'] = 'Participation tr';
+$string['sales'] = 'Sales tr';
+$string['totals'] = 'Totals tr';
+$string['type'] = 'Type tr';
+$string['discount'] = 'Discount tr';
+$string['total'] = 'Total tr';
+$string['go'] = 'Go tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Menus.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Menus.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Menus.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,12 +24,12 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on Menus file of Food_Service Module, in Portuguese*/
+ /*This are messages on Menus file of Food_Service Module, in English*/
- $string['save'] = 'Salvar';
- $string['meal'] = 'lanche';
- $string['sortOrder'] = 'Ordem de classificação';
- $string['meals'] = 'Lanches';
- $string['category'] = 'Categoria';
- $string['mealCategory'] = '$a Categoria';
+ $string['save'] = 'Save tr';
+ $string['meal'] = 'Meal tr';
+ $string['sortOrder'] = 'Sort Order tr';
+ $string['meals'] = 'Meals tr';
+ $string['category'] = 'Category tr';
+ $string['mealCategory'] = '$a Category tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/ServeMenus.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/ServeMenus.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/ServeMenus.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,11 +24,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
-$string['user'] = 'Usuário';
-$string['users'] = 'Usuários';
-$string['student'] = 'Estudante';
-$string['students'] = 'Estudantes';
-$string['noMenusYetSetup'] = 'Ainda não existem menus configurados.';
+$string['user'] = 'User tr';
+$string['users'] = 'Users tr';
+$string['student'] = 'Student tr';
+$string['students'] = 'Students tr';
+$string['noMenusYetSetup'] = 'There are no menus yet setup. tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Statements.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Statements.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Statements.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,11 +24,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on Statements file of Food_Service Module, in Portuguese*/
+ /*This are messages on Statements file of Food_Service Module, in English*/
- $string['deposit'] = 'Depósito';
- $string['credit'] = 'Crédito';
- $string['debit'] = 'Débito';
- $string['type'] = 'Tipo';
+ $string['deposit'] = 'Deposit tr';
+ $string['credit'] = 'Credit tr';
+ $string['debit'] = 'Debit tr';
+ $string['type'] = 'Type tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Student.inc.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Student.inc.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Student.inc.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,16 +24,16 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
-$string['otherStudentsAssociatedSameAccount'] = 'Existem outro estudantes associados à mesma conta';
-$string['nonExistentAccount'] = 'Conta não existente!';
-$string['inactive'] = 'Inativo';
-$string['disabled'] = 'Desabilitado';
-$string['closed'] = 'Fechado';
-$string['active'] = 'Ativo';
-$string['reduced'] = 'Reduzido';
-$string['free'] = 'Gratuito';
-$string['discount'] = 'Desconto';
-$string['barcode'] = 'Código de barras';
+$string['otherStudentsAssociatedSameAccount'] = 'Other students associated with same account tr';
+$string['nonExistentAccount'] = 'Non-existent account! tr';
+$string['inactive'] = 'Inactive tr';
+$string['disabled'] = 'Disabled tr';
+$string['closed'] = 'Closed tr';
+$string['active'] = 'Active tr';
+$string['reduced'] = 'Reduced tr';
+$string['free'] = 'Free tr';
+$string['discount'] = 'Discount tr';
+$string['barcode'] = 'Barcode tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Students/Accounts.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/Accounts.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Students/Accounts.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,16 +24,16 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
-$string['save'] = 'Salvar';
-$string['accountInformation'] = 'Informações da conta';
-$string['balance'] = 'Balanço';
-$string['status'] = 'Estado';
-$string['otherStudentsAssociatedSameAccount'] = 'Existe outro estudante associado à mesma conta';
-$string['inactive'] = 'Inativo';
-$string['disabled'] = 'Desabilitado';
-$string['closed'] = 'Fechado';
-$string['reduced'] = 'Reduzido';
-$string['free'] = 'Gratuito';
+$string['save'] = 'Save tr';
+$string['accountInformation'] = 'Account Information';
+$string['balance'] = 'Balance tr';
+$string['status'] = 'Status tr';
+$string['otherStudentsAssociatedSameAccount'] = 'Other students associated with same account tr';
+$string['inactive'] = 'Inactive tr';
+$string['disabled'] = 'Disabled tr';
+$string['closed'] = 'Closed tr';
+$string['reduced'] = 'Reduced tr';
+$string['free'] = 'Free tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Students/ActivityReport.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/ActivityReport.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Students/ActivityReport.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -25,13 +25,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['accountID'] = 'ID da conta';
-$string['student'] = 'Estudante';
-$string['date'] = 'Data';
-$string['time'] = 'Hora';
-$string['balance'] = 'Balanço';
-$string['discount'] = 'Desconto';
-$string['description'] = 'Descrição';
-$string['amount'] = 'Quantia';
-$string['user'] = 'Usuário';
+$string['accountID'] = 'Account ID tr';
+$string['student'] = 'Student tr';
+$string['date'] = 'Date tr';
+$string['time'] = 'Time tr';
+$string['balance'] = 'Balance tr';
+$string['discount'] = 'Discount tr';
+$string['description'] = 'Description tr';
+$string['amount'] = 'Amount tr';
+$string['user'] = 'User tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Students/Lunch.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/Lunch.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Students/Lunch.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -25,14 +25,14 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['cancelSale'] = 'Cancelar venda';
-$string['completeSale'] = 'Completar venda';
-$string['balance'] = 'Balanço';
-$string['earlierSale'] = 'Venda anterior';
-$string['earlierSales'] = 'Vendas anteriores';
-$string['add'] = 'Inserir';
-$string['item'] = 'Item';
-$string['items'] = 'Itens';
-$string['amount'] = 'Quantia';
-$string['userNotHaveMealAccount'] = 'Este usuário não tem conta para lanche';
+$string['cancelSale'] = 'Cancel Sale tr';
+$string['completeSale'] = 'Complete Sale tr';
+$string['balance'] = 'Balance tr';
+$string['earlierSale'] = 'Earlier Sale tr';
+$string['earlierSales'] = 'Earlier Sales tr';
+$string['add'] = 'Add tr';
+$string['item'] = 'Item tr';
+$string['items'] = 'Items tr';
+$string['amount'] = 'Amount tr';
+$string['userNotHaveMealAccount'] = 'This user does not have a Meal Account tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Students/Reminders.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/Reminders.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Students/Reminders.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -25,28 +25,28 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['accountLow'] = '%N\'s crédito de lanches estão acabando. Por favor adquira mais créditos com %H reminder slip. OBRIGADO! tr'; // pendente
-$string['negativeBalanceAboveMinimum'] = '%N agora tem um <B>balanço negativo</B> na %H conta de lanche. Favor informar aos responsáveis antes de efetuar novas vendas. Obrigado!';
-$string['negativeBalanceBelowMinimum'] = '%N agora tem um <B>balanço negativo</B> na %H conta de lanche. Favor informar aos responsáveis antes de efetuar novas vendas. Obrigado!';
-$string['requestedPaymentAmount'] = 'Nota: Quantia requerida para pagamento';
-$string['chooseAtLeastOneUser'] = 'Você precisa selecionar ao menos um estudante';
-$string['createRemindersSelectedUser'] = 'Criar lembretes para os estudantes selecionados';
-$string['estimateForYearEnd'] = 'Estimativa para o fim do ano';
-$string['balance'] = 'Balanço';
-$string['status'] = 'Estado';
-$string['warning'] = 'Aviso';
-$string['negative'] = 'Negativo';
-$string['minimum'] = 'Mínimo';
-$string['paymentReminder'] = 'Lembrete de pagamento';
-$string['otherStudentsOnThisAccount'] = 'Outros estudantes nesta conta';
+$string['accountLow'] = '%N\'s lunch account is getting low. Please send in additional lunch money with %H reminder slip. THANK YOU! tr';
+$string['negativeBalanceAboveMinimum'] = '%N now has a <B>negative balance</B> in %H lunch account. Please stop by the office and speak with responsible person before placing additional lunch orders. Thanks! tr';
+$string['negativeBalanceBelowMinimum'] = '%N now has a <B>negative balance</B> in %H lunch account. Please stop by the office and speak with responsible person before placing additional lunch orders. Thanks! tr';
+$string['requestedPaymentAmount'] = 'Note: Requested payment amount tr';
+$string['chooseAtLeastOneUser'] = 'You must choose at least one user tr';
+$string['createRemindersSelectedUser'] = 'Create Reminders for Selected Users tr';
+$string['estimateForYearEnd'] = 'Estimate for year end tr';
+$string['balance'] = 'Balance tr';
+$string['status'] = 'Status tr';
+$string['warning'] = 'Warning tr';
+$string['negative'] = 'Negative tr';
+$string['minimum'] = 'Minimum tr';
+$string['paymentReminder'] = 'Payment Reminder tr';
+$string['otherStudentsOnThisAccount'] = 'Other students on this account tr';
$string['grade'] = 'Grade tr';
-$string['teacher'] = 'Professor';
-$string['todayDate'] = 'Data de hoje';
-$string['dateLastDeposit'] = 'Data do último depósito';
-$string['amountLastDeposit'] = 'Quantia do último depósito';
-$string['minimumPayment'] = 'Pagamento mínimo';
-$string['accountID'] = 'ID da conta';
-$string['his'] = 'ele';
-$string['her'] = 'ela';
-$string['hisHer'] = 'ele/ela';
+$string['teacher'] = 'Teacher tr';
+$string['todayDate'] = 'Today\'s Date tr';
+$string['dateLastDeposit'] = 'Date of Last Deposit tr';
+$string['amountLastDeposit'] = 'Amount of Last Deposit tr';
+$string['minimumPayment'] = 'Mimimum Payment tr';
+$string['accountID'] = 'Account ID tr';
+$string['his'] = 'his tr';
+$string['her'] = 'her tr';
+$string['hisHer'] = 'his/her tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Students/ServeMenus.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/ServeMenus.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Students/ServeMenus.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -25,13 +25,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['cancelSale'] = 'Cancelar venda';
-$string['completeSale'] = 'Completar venda';
-$string['balance'] = 'Balanço';
-$string['item'] = 'Item';
-$string['items'] = 'Itens';
-$string['amount'] = 'Quantia';
-$string['icon'] = 'Ícone';
-$string['price'] = 'Preço';
-$string['userNotHaveMealAccount'] = 'Este usuário não tem conta para lanche';
+$string['cancelSale'] = 'Cancel Sale tr';
+$string['completeSale'] = 'Complete Sale tr';
+$string['balance'] = 'Balance tr';
+$string['item'] = 'Item tr';
+$string['items'] = 'Items tr';
+$string['amount'] = 'Amount tr';
+$string['icon'] = 'Icon tr';
+$string['price'] = 'Price tr';
+$string['userNotHaveMealAccount'] = 'This user does not have a Meal Account tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Students/Statements.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/Statements.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Students/Statements.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -25,17 +25,17 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['balance'] = 'Balanço';
-$string['status'] = 'Estado';
-$string['detailedView'] = 'Exibição detalhada';
-$string['originalView'] = 'Exibição normal';
-$string['date'] = 'Data';
-$string['time'] = 'Hora';
-$string['description'] = 'Descrição';
-$string['amount'] = 'Quantia';
-$string['user'] = 'Usuário';
-$string['student'] = 'estudante';
-$string['transaction'] = 'Transação';
-$string['transactions'] = 'Transações';
-$string['userNotHaveMealAccount'] = 'Este usuário não tem conta para lanche';
+$string['balance'] = 'Balance tr';
+$string['status'] = 'Status tr';
+$string['detailedView'] = 'Detailed View tr';
+$string['originalView'] = 'Original View tr';
+$string['date'] = 'Date tr';
+$string['time'] = 'Time tr';
+$string['description'] = 'Description tr';
+$string['amount'] = 'Amount tr';
+$string['user'] = 'User tr';
+$string['student'] = 'Student tr';
+$string['transaction'] = 'Transaction tr';
+$string['transactions'] = 'Transactions tr';
+$string['userNotHaveMealAccount'] = 'This user does not have a Meal Account tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Students/Transactions.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/Transactions.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Students/Transactions.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -25,15 +25,15 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['enterValidTypeAmount'] = 'Por favor insira Tipo e Quantia válidos.';
-$string['balance'] = 'Balanço';
-$string['status'] = 'Estado';
-$string['cancel'] = 'Cancelar';
-$string['save'] = 'Salvar';
-$string['type'] = 'Tipo';
-$string['description'] = 'Descrição';
-$string['amount'] = 'Quantia';
-$string['earlierTransaction'] = 'Última transação';
-$string['earlierTransactions'] = 'Últimas transações';
-$string['userNotHaveMealAccount'] = 'Este usuário não tem uma conta para lanche';
+$string['enterValidTypeAmount'] = 'Please enter valid Type and Amount. tr';
+$string['balance'] = 'Balance tr';
+$string['status'] = 'Status tr';
+$string['cancel'] = 'Cancel tr';
+$string['save'] = 'Save tr';
+$string['type'] = 'Type tr';
+$string['description'] = 'Description tr';
+$string['amount'] = 'Amount tr';
+$string['earlierTransaction'] = 'Earlier Transaction tr';
+$string['earlierTransactions'] = 'Earlier Transactions tr';
+$string['userNotHaveMealAccount'] = 'This user does not have a Meal Account tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/TakeMenuCounts.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/TakeMenuCounts.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/TakeMenuCounts.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,23 +24,23 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
-$string['cannotTakeMealCountsPeriod'] = 'Você não está autorizado a lanchar neste período.';
-$string['selectedDateNotSchoolDay'] = 'O dia selecionado não consta no calendário escolar!';
-$string['periodNotMPSelectedDate'] = 'Este período não é referente às Marcações de Período da data selecionada.';
-$string['periodNotMeetSelectedDate'] = 'Este período não é referente à data selecionada.';
-$string['SelectedDateNotToday'] = 'A data selecionada não é hoje';
-$string['takenLunchCountsToday'] = 'You have taken lunch counts today for this period. tr'; // pendente
-$string['save'] = 'Salvar';
-$string['item'] = 'Item';
-$string['count'] = 'Quantidade';
-$string['student'] = 'Estudante';
-$string['id'] = 'ID';
-$string['grade'] = 'Grade tr'; // pendente
-$string['balance'] = 'Balanço';
-$string['status'] = 'Estado';
-$string['ineligibleStudent'] = 'Estudante Inelegível';
-$string['ineligibleStudents'] = 'Estudantes Inelegíveis';
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
+$string['cannotTakeMealCountsPeriod'] = 'You cannot take meal counts for this period. tr';
+$string['selectedDateNotSchoolDay'] = 'The selected date is not a school day! tr';
+$string['periodNotMPSelectedDate'] = 'This period does not meet in the marking period of the selected date. tr';
+$string['periodNotMeetSelectedDate'] = 'This period does not meet on the selected date. tr';
+$string['SelectedDateNotToday'] = 'The selected date is not today tr';
+$string['takenLunchCountsToday'] = 'You have taken lunch counts today for this period. tr';
+$string['save'] = 'Save tr';
+$string['item'] = 'Item tr';
+$string['count'] = 'Count tr';
+$string['student'] = 'Student tr';
+$string['id'] = 'ID tr';
+$string['grade'] = 'Grade tr';
+$string['balance'] = 'Balance tr';
+$string['status'] = 'Status tr';
+$string['ineligibleStudent'] = 'Inelegible Student tr';
+$string['ineligibleStudents'] = 'Inelegible Students tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/TeacherCompletion.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/TeacherCompletion.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/TeacherCompletion.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,16 +24,16 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
-$string['noMenusYetSetup'] = 'Ainda não existe um menu configurado.';
-$string['teacherWhoTakes'] = 'Professor que toma';
-$string['teachersWhoTake'] = 'Professores que totam';
-$string['counts'] = 'contador';
-$string['item'] = ' Item';
-$string['totalCount'] = ' Contagem total';
-$string['itemTotal'] = ' Total do item';
-$string['itemTotals'] = ' Total dos itens';
+$string['noMenusYetSetup'] = 'There are no menus yet setup. tr';
+$string['teacherWhoTakes'] = 'Teacher who takes tr';
+$string['teachersWhoTake'] = 'Teachers who take tr';
+$string['counts'] = ' counts tr';
+$string['item'] = ' Items tr';
+$string['totalCount'] = 'Total count tr';
+$string['itemTotal'] = ' Item Total tr';
+$string['itemTotals'] = ' Items Total tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/TransactionsReport.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/TransactionsReport.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/TransactionsReport.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,12 +24,12 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
-$string['go'] = 'Ir';
-$string['totals'] = 'Totais';
-$string['type'] = 'Tipo';
-$string['type'] = 'Tipo';
-$string['transaction'] = 'Transação';
-$string['total'] = 'Total';
+$string['go'] = 'Go tr';
+$string['totals'] = 'Totals tr';
+$string['type'] = 'Type tr';
+$string['type'] = 'Types tr';
+$string['transaction'] = 'Transaction tr';
+$string['total'] = 'Total tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/User.inc.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/User.inc.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/User.inc.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,14 +24,14 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
-$string['balance'] = 'Balanço';
-$string['inactive'] = 'Inativo';
-$string['disabled'] = 'Desabilitado';
-$string['closed'] = 'Fechado';
-$string['active'] = 'Ativo';
-$string['reduced'] = 'Reduzido';
-$string['free'] = 'Gratuito';
-$string['discount'] = 'Desconto';
-$string['barcode'] = 'Código de barras';
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
+$string['balance'] = 'Balance tr';
+$string['inactive'] = 'Inactive tr';
+$string['disabled'] = 'Disabled tr';
+$string['closed'] = 'Closed tr';
+$string['active'] = 'Active tr';
+$string['reduced'] = 'Reduced tr';
+$string['free'] = 'Free tr';
+$string['discount'] = 'Discount tr';
+$string['barcode'] = 'Barcode tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Users/Accounts.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Users/Accounts.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Users/Accounts.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -24,16 +24,16 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
-$string['save'] = 'Salvar';
-$string['accountInformation'] = 'Informações da conta';
-$string['balance'] = 'Balanço';
-$string['status'] = 'Situação';
-$string['otherStudentsAssociatedSameAccount'] = 'Existem outros estudantes associados à mesma conta';
-$string['inactive'] = 'Inativo';
-$string['disabled'] = 'Desabilitado';
-$string['closed'] = 'Fechado';
-$string['reduced'] = 'Reduzido';
-$string['free'] = 'Gratuito';
+$string['save'] = 'Save tr';
+$string['accountInformation'] = 'Account Information';
+$string['balance'] = 'Balance tr';
+$string['status'] = 'Status tr';
+$string['otherStudentsAssociatedSameAccount'] = 'Other students associated with same account tr';
+$string['inactive'] = 'Inactive tr';
+$string['disabled'] = 'Disabled tr';
+$string['closed'] = 'Closed tr';
+$string['reduced'] = 'Reduced tr';
+$string['free'] = 'Free tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Users/ActivityReport.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Users/ActivityReport.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Users/ActivityReport.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -25,10 +25,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['user'] = 'Usuário';
-$string['date'] = 'Data';
-$string['time'] = 'Hora';
-$string['balance'] = 'Balanço';
-$string['description'] = 'Inserir';
-$string['amount'] = 'Item';
+$string['user'] = 'User tr';
+$string['date'] = 'Date tr';
+$string['time'] = 'Time tr';
+$string['balance'] = 'Balance tr';
+$string['description'] = 'Add tr';
+$string['amount'] = 'Item tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Users/Lunch.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Users/Lunch.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Users/Lunch.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -25,14 +25,14 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['cancelSale'] = 'Cancelar venda';
-$string['completeSale'] = 'Completar venda';
-$string['balance'] = 'Balanço';
-$string['earlierSale'] = 'Venda anterior';
-$string['earlierSales'] = 'Vendas anteriores';
-$string['add'] = 'Inserir';
-$string['item'] = 'Item';
-$string['items'] = 'Items';
-$string['amount'] = 'Quantidade';
-$string['userNotHaveMealAccount'] = 'Este usuário não tem conta para lanche';
+$string['cancelSale'] = 'Cancel Sale tr';
+$string['completeSale'] = 'Complete Sale tr';
+$string['balance'] = 'Balance tr';
+$string['earlierSale'] = 'Earlier Sale tr';
+$string['earlierSales'] = 'Earlier Sales tr';
+$string['add'] = 'Add tr';
+$string['item'] = 'Item tr';
+$string['items'] = 'Items tr';
+$string['amount'] = 'Amount tr';
+$string['userNotHaveMealAccount'] = 'This user does not have a Meal Account tr';
?>
Modified: trunk/lang/en_utf8/Food_Service/Users/Reminders.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Users/Reminders.php 2010-11-19 14:08:08 UTC (rev 422)
+++ trunk/lang/en_utf8/Food_Service/Users/Reminders.php 2010-11-19 17:07:41 UTC (rev 423)
@@ -25,20 +25,20 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['accountLow'] = 'Sua conta de lanche está ficando baixa. Por favor envie ao menos %P com seu lembrete. Obrigado!';
-$string['negativeBalanceAboveMinimum'] = 'Você agora tem <B>balanço negativo</B> na sua conta de lanche. Por favor envie a quantia em negativo mais %T. OBRIGADO!';
-$string['negativeBalanceBelowMinimum'] = 'Você agora tem <b>balanço negativo</b> abaixo do permitodo. Por favor envie a quantia em negativo mais %T. OBRIGADO!';
-$string['chooseAtLeastOneUser'] = 'Você precisa selecionar ao menos um usuário';
-$string['createRemindersSelectedUser'] = 'Criar lembretes para os usuários selecionados';
-$string['balance'] = 'Balanço';
-$string['status'] = 'Estado';
-$string['warning'] = 'Aviso';
-$string['negative'] = 'Negativo';
-$string['minimum'] = 'Mínimo';
-$string['paymentReminder'] = 'Lembrete de pagamento';
-$string['todayDate'] = 'Data de hoje';
-$string['dateLastDeposit'] = 'Data do último depósito';
-$string['amountLastDeposit'] = 'Quantia do último depósito';
-$string['minimumPayment'] = 'Pagamento mínimo';
+$string['accountLow'] = 'Your lunch accou...
[truncated message content] |
|
From: <br-...@us...> - 2010-11-19 14:08:18
|
Revision: 422
http://opensis.svn.sourceforge.net/opensis/?rev=422&view=rev
Author: br-marshall
Date: 2010-11-19 14:08:08 +0000 (Fri, 19 Nov 2010)
Log Message:
-----------
Added Brazilian-Portuguese language
Modified Paths:
--------------
trunk/lang/en_utf8/Common.php
trunk/lang/en_utf8/Core.php
trunk/lang/en_utf8/Database/Ethnicity.php
trunk/lang/en_utf8/Database/Gender.php
trunk/lang/en_utf8/Database/Profiles.php
trunk/lang/en_utf8/Database/Status.php
trunk/lang/en_utf8/Database/StudentFields.php
trunk/lang/en_utf8/Eligibility/TeacherCompletion.php
trunk/lang/en_utf8/Eligibility.php
trunk/lang/en_utf8/Food_Service/Accounts.php
trunk/lang/en_utf8/Food_Service/ActivityReport.php
trunk/lang/en_utf8/Food_Service/AssignSchool.php
trunk/lang/en_utf8/Food_Service/DailyMenus.php
trunk/lang/en_utf8/Food_Service/Kiosk.php
trunk/lang/en_utf8/Food_Service/Menu.php
trunk/lang/en_utf8/Food_Service/MenuItems.php
trunk/lang/en_utf8/Food_Service/MenuReports.php
trunk/lang/en_utf8/Food_Service/Menus.php
trunk/lang/en_utf8/Food_Service/ServeMenus.php
trunk/lang/en_utf8/Food_Service/Statements.php
trunk/lang/en_utf8/Food_Service/Student.inc.php
trunk/lang/en_utf8/Food_Service/Students/Accounts.php
trunk/lang/en_utf8/Food_Service/Students/ActivityReport.php
trunk/lang/en_utf8/Food_Service/Students/Lunch.php
trunk/lang/en_utf8/Food_Service/Students/Reminders.php
trunk/lang/en_utf8/Food_Service/Students/ServeMenus.php
trunk/lang/en_utf8/Food_Service/Students/Statements.php
trunk/lang/en_utf8/Food_Service/Students/Transactions.php
trunk/lang/en_utf8/Food_Service/TakeMenuCounts.php
trunk/lang/en_utf8/Food_Service/TeacherCompletion.php
trunk/lang/en_utf8/Food_Service/TransactionsReport.php
trunk/lang/en_utf8/Food_Service/User.inc.php
trunk/lang/en_utf8/Food_Service/Users/Accounts.php
trunk/lang/en_utf8/Food_Service/Users/ActivityReport.php
trunk/lang/en_utf8/Food_Service/Users/Lunch.php
trunk/lang/en_utf8/Food_Service/Users/Reminders.php
trunk/lang/en_utf8/Food_Service/Users/ServeMenus.php
trunk/lang/en_utf8/Food_Service/Users/Statements.php
trunk/lang/en_utf8/Food_Service/Users/Transactions.php
trunk/lang/en_utf8/Food_Service/includes/DeletePromptX.php
trunk/lang/en_utf8/Functions/DeletePrompt.fnc.php
trunk/lang/en_utf8/Functions/GetStuList.fnc.php
trunk/lang/en_utf8/Functions/HackingLog.php
trunk/lang/en_utf8/Functions/ListOutput.fnc.php
trunk/lang/en_utf8/Functions/Search.fnc.php
trunk/lang/en_utf8/Functions/Widgets.fnc.php
trunk/lang/en_utf8/Grades.php
trunk/lang/en_utf8/Modules.php
trunk/lang/en_utf8/Scheduling.php
trunk/lang/en_utf8/School_Setup/Menu.php
trunk/lang/en_utf8/Students/Menu.php
trunk/lang/en_utf8/Students/includes.php
trunk/lang/en_utf8/Tools.php
trunk/lang/en_utf8/Users/AddStudents.php
trunk/lang/en_utf8/Users/Exceptions.php
trunk/lang/en_utf8/Users/Menu.php
trunk/lang/en_utf8/Users/Preferences.php
trunk/lang/en_utf8/Users/Profiles.php
trunk/lang/en_utf8/Users/Search.inc.php
trunk/lang/en_utf8/Users/Search.php
trunk/lang/en_utf8/Users/Search_Miss_Attn.inc.php
trunk/lang/en_utf8/Users/User.php
trunk/lang/en_utf8/Users/UserFields.php
trunk/lang/en_utf8/Users/includes/General_Info.inc.php
trunk/lang/en_utf8/Users/includes/Schedule.inc.php
trunk/lang/en_utf8/ajax.php
trunk/lang/en_utf8/attendance.php
trunk/lang/en_utf8/datetime.php
trunk/lang/en_utf8/install.php
trunk/lang/en_utf8/langconfig.php
trunk/lang/en_utf8/login.inc.php
trunk/lang/en_utf8/misc/Portal.php
trunk/lang/en_utf8/schoolsetup.php
trunk/lang/en_utf8/students.php
trunk/lang/en_utf8/users.php
Modified: trunk/lang/en_utf8/Common.php
===================================================================
--- trunk/lang/en_utf8/Common.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Common.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -26,13 +26,13 @@
#**************************************************************************
/*This are frequently used strings, in English*/
- $string['student'] = 'Student tr';
- $string['students'] = 'Students tr';
- $string['users'] = 'Users tr';
- $string['balance'] = 'Balance tr';
- $string['status'] = 'Status tr';
- $string['notSpecified'] = 'Not Specified tr';
- $string['detailedView'] = 'Detailed View tr' ;
- $string["originalview"] = "Original View" ;
- $string['go'] = 'Go tr' ;
+ $string['student'] = 'Estudante';
+ $string['students'] = 'Estudantes';
+ $string['users'] = 'Usuários';
+ $string['balance'] = 'Balanco';
+ $string['status'] = 'Status';
+ $string['notSpecified'] = 'Não especificado';
+ $string['detailedView'] = 'Exibição Detalhada';
+ $string["originalview"] = "Exibição normal" ;
+ $string['go'] = 'Confirma';
?>
Modified: trunk/lang/en_utf8/Core.php
===================================================================
--- trunk/lang/en_utf8/Core.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Core.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,16 +24,16 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['opensisTitle'] = 'Opensis school software tr';
-$string['accountNotActivated'] = 'Your account has not yet been activated. When your account has been verified by school administration, you will be notified by email.';
-$string['incorrectUserOrPassword'] = 'Incorrect username or password. Please try again.';
-$string['accountCreated'] = 'Your account has been created. You will be notified by email when it is verified by school administration and you can log in.';
-$string['notAllowedUseProgram'] = 'You are not allowed to use this program! This attempted violation has been logged and your IP address was captured.';
-$string['diagnosticPathAlert'] = 'The diagnostic.php file needs to be in the OSIS directory to be able to run. Please move it there, and run it again.';
-$string['functionsPathAlert'] = 'The value for OSISPath in config.inc.php is not correct or the functions directory does not have the correct permissions to be read by the webserver. Make sure OSISPath points to the openSIS installation directory and that it is readable by all users.';
-$string['phpPGAlert'] = 'PHP was not compiled with PostgreSQL support. You need to recompile PHP using the --with-pgsql option for openSIS to work.';
-$string['pgCannotConnect'] = 'openSIS cannot connect to the Postgres database. Either Postgres is not running, it was not started with the -i option, or connections from this host are not allowed in the pg_hba.conf file. Last Postgres Error: ';
-$string['pgWrongPermission'] = 'The database was created with the wrong permissions. The user specified in the config.inc.php file does not have permission to access the OSIS database. Use the super-user (postgres) or recreate the database adding \connect - YOUR_USERNAME to the top of the OSIS.sql file.';
-$string['pgTableNotExist'] = 'At least one of the tables does not exist. Make sure you ran the sql file as described in the INSTALL file.';
-$string['installationConfigured'] = 'Your openSIS installation is properly configured.';
+$string['opensisTitle'] = 'Opensis Sistema escolar';
+$string['accountNotActivated'] = 'Sua conta ainda não foi ativada. Você será notificado via email quando ela for verificada pelo administrador.';
+$string['incorrectUserOrPassword'] = 'Nome de usuário e/ou senha incorretos. Por favor tente novamente.';
+$string['accountCreated'] = 'Sua conta foi criada. Você será notificado via email quando ela for verificada pelo administrador.';
+$string['notAllowedUseProgram'] = 'Você não é autorizado a usar este sistema! A tentativa de violação foi gravada em nossos registros juntamente com seu endereço IP.';
+$string['diagnosticPathAlert'] = 'O arquivo <i>diagnostic.php</i> necessita estar no diretório do sistema para funcionar corretamente. Mova o arquivo e tente novamente.';
+$string['functionsPathAlert'] = 'O endereço de <i>OSISPath</i> em <i>config.inc.php</i> não é o correto ou o diretório <i>functions</i> não tem as permissões corretas para serem lidas pelo servidor. Tenha certeza que <i>OSISPath</i> aponte para o diretório de instalação do openSIS e que possa ser lido por todos os usuários.';
+$string['phpPGAlert'] = 'PHP não foi compilado com suporte ao PostgreSQL. Você deve recompilar PHP usando a opção <i>--with-pgsql</i> para o correto funcionamento.';
+$string['pgCannotConnect'] = 'openSIS não pode se conectar ao banco de dados Postgres. Ou Postgres não está em execução ou não foi iniciado com a opção <u>-i</u> ou conexões deste host não foi permitida ao arquivo <i>pg_hba.conf</i>. Último erro Postgres: ';
+$string['pgWrongPermission'] = 'O banco de dados foi criado com as permissões erradas. O usuário especificado no arquivo <i>config.inc.php</i> não tem permissão de acesso ao banco de dados do OSIS. Use o super-user (postgres) ou recrie o banco de dados adicionando <i>\connect - SEU_NOME_DE_USUÁRIO</i> no topo do arquivo <i>OSIS.sql</i>.';
+$string['pgTableNotExist'] = 'Ao menos uma das tabelas não existe. Tenha certeza de que você executou o arquivo sql como descrito no arquivo <i>INSTALL</i>.';
+$string['installationConfigured'] = 'Sua instalação do openSIS foi devidamente configurada.';
?>
Modified: trunk/lang/en_utf8/Database/Ethnicity.php
===================================================================
--- trunk/lang/en_utf8/Database/Ethnicity.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Database/Ethnicity.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -1,10 +1,10 @@
<?php
- /*This are messages on Ethnicity field of the Database, in English*/
+ /*This are messages on Ethnicity field of the Database, in Portuguese*/
- $string['White, Non-Hispanic'] = "White, Non-Hispanic tr";
- $string[' Black, Non-Hispanic'] = "Black, Non-Hispanic tr";
- $string[' Amer. Indian or Alaskan Native'] = "Amer. Indian or Alaskan Native tr";
- $string[' Asian or Pacific Islander'] = "Asian or Pacific Islander tr";
- $string[' Hispanic'] = "Hispanic tr";
- $string[' Other'] = "Other tr";
+ $string[' White, Non-Hispanic'] = "White, Não-Hispânico";
+ $string[' Black, Non-Hispanic'] = "Negro";
+ $string[' Amer. Indian or Alaskan Native'] = "Ameríndio ou nativo do Alaska";
+ $string[' Asian or Pacific Islander'] = "Asiático";
+ $string[' Hispanic'] = "Hispânico";
+ $string[' Other'] = "Outra";
?>
Modified: trunk/lang/en_utf8/Database/Gender.php
===================================================================
--- trunk/lang/en_utf8/Database/Gender.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Database/Gender.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -1,6 +1,6 @@
<?php
- /*This are messages on Ethnicity field of the Database, in English*/
+ /*This are messages on Ethnicity field of the Database, in Portuguese*/
- $string['Male'] = "Male tr";
- $string[' Female'] = "Female tr";
+ $string['Male'] = "Masculino";
+ $string['Female'] = "Feminino";
?>
Modified: trunk/lang/en_utf8/Database/Profiles.php
===================================================================
--- trunk/lang/en_utf8/Database/Profiles.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Database/Profiles.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -1,12 +1,12 @@
<?php
- /*This are the names of Profiles used on the Database, in English*/
+ /*This are the names of Profiles used on the Database, in Portuguese*/
- $string['na'] = 'N/A tr';
- $string['profiles'] = 'Profiles tr';
- $string['administrator'] = 'Administrator tr';
- $string['admin'] = $string['administrator'];
- $string['teacher'] = 'Teacher tr';
- $string['parent'] = 'Parent tr';
- $string['noAccess'] = 'No Access tr';
- $string['wCustom'] = 'w/Custom tr';
+ $string['na'] = 'N/D tr';
+ $string['profiles'] = 'Perfis';
+ $string['administrator'] = 'Administrador';
+ $string['admin'] = $string['administrador'];
+ $string['teacher'] = 'Professor';
+ $string['parent'] = 'Pais';
+ $string['noAccess'] = 'Sem acesso';
+ $string['wCustom'] = 'c/Customizado';
?>
Modified: trunk/lang/en_utf8/Database/Status.php
===================================================================
--- trunk/lang/en_utf8/Database/Status.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Database/Status.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -1,8 +1,8 @@
<?php
- /*This are the names of Status used on the Database, in English*/
+ /*This are the names of Status used on the Database, in Portuguese*/
- $string['inactive'] = 'Inactive tr';
- $string['disabled'] = 'Disabled tr';
- $string['closed'] = 'Closed tr';
- $string['active'] = 'Active tr';
+ $string['inactive'] = 'Inativo';
+ $string['disabled'] = 'Desabilitado';
+ $string['closed'] = 'Fechado';
+ $string['active'] = 'Ativo';
?>
Modified: trunk/lang/en_utf8/Database/StudentFields.php
===================================================================
--- trunk/lang/en_utf8/Database/StudentFields.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Database/StudentFields.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -1,18 +1,18 @@
<?php
- /*This are field names for Students on the Database, in English*/
+ /*This are field names for Students on the Database, in Portuguese*/
- $string['<b>General Info</b>'] = '<b>General Info</b> tr';
- $string['<b>Medical</b>'] = '<b>Medical</b> tr';
- $string['Estimated Grad. Date'] = 'Estimated Grad. Date tr';
- $string['Gender'] = 'Gender tr';
- $string['Ethnicity'] = 'Ethnicity tr';
- $string['Common Name'] = 'Common Name tr';
- $string['Social Security'] = 'Social Security tr';
- $string['Birthdate'] = 'Birthdate tr';
- $string['Language'] = 'Language tr';
- $string['Physician'] = 'Physician tr';
- $string['Physician Phone'] = 'Physician Phone tr';
- $string['Preferred Hospital'] = 'Preferred Hospital tr';
- $string['Comments'] = 'Comments tr';
- $string["Doctor's Note Comments"] = "Doctor's Note Comments tr";
+ $string['<b>General Info</b>'] = '<b>Informação geral</b> tr';
+ $string['<b>Medical</b>'] = '<b>Médica</b> tr';
+ $string['Estimated Grad. Date'] = 'Data estimada de formatura';
+ $string['Gender'] = 'Sexo';
+ $string['Ethnicity'] = 'Etnia';
+ $string['Common Name'] = 'Nome comum';
+ $string['Social Security'] = 'Seguro social';
+ $string['Birthdate'] = 'Data de nascimento';
+ $string['Language'] = 'Idioma';
+ $string['Physician'] = 'Médico';
+ $string['Physician Phone'] = 'Telefone do médico';
+ $string['Preferred Hospital'] = 'Hospital preferido';
+ $string['Comments'] = 'Comentários';
+ $string["Doctor's Note Comments"] = "Observações médicas";
?>
Modified: trunk/lang/en_utf8/Eligibility/TeacherCompletion.php
===================================================================
--- trunk/lang/en_utf8/Eligibility/TeacherCompletion.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Eligibility/TeacherCompletion.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -1,3 +1,3 @@
<?php
-$string['Teacher'] = 'Teacher tr ';
+$string['Teacher'] = 'Professor ';
?>
Modified: trunk/lang/en_utf8/Eligibility.php
===================================================================
--- trunk/lang/en_utf8/Eligibility.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Eligibility.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,30 +24,30 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['activity'] = 'Activity tr';
-$string['activities'] = 'Activities tr';
-$string['title'] = 'Title tr';
-$string['begins'] = 'Begins tr';
-$string['ends'] = 'Ends tr';
-$string['save'] = 'Save tr';
-$string['student screen'] = 'Student Screen tr';
-$string['add activity'] = 'Add Activity tr';
-$string['reports'] = 'Reports tr';
-$string['student list'] = 'Student List tr';
-$string['teacher completion'] = 'Teacher Completion tr';
-$string['setup'] = 'Setup tr';
-$string['activities'] = 'Activities tr';
-$string['entry times'] = 'Entry Times tr';
-$string['enter eligibility'] = 'Enter Eligibility tr';
-$string['ineligible'] = 'Ineligible tr';
-$string['allow eligibility posting'] = 'Allow Eligibility Posting tr';
-$string['from'] = 'From tr';
-$string['to'] = 'To tr';
-$string['add'] = 'add tr';
-$string['Starts'] = 'Starts tr';
-$string['Ends'] = 'Ends tr';
-$string['Activity'] = 'Activity tr';
-$string['Grade'] = 'Grade tr';
-$string['Course'] = 'Course tr';
-$string['addactivity']="Add Activity to Selected Students tr";
+$string['activity'] = 'Atividade';
+$string['activities'] = 'Atividades';
+$string['title'] = 'Título';
+$string['begins'] = 'Começo';
+$string['ends'] = 'Término';
+$string['save'] = 'Salvar';
+$string['student screen'] = 'Tela do estudante';
+$string['add activity'] = 'Adicionar atividade';
+$string['reports'] = 'Relatórios';
+$string['student list'] = 'Lista de estudantes';
+$string['teacher completion'] = 'Fechamento do professor';
+$string['setup'] = 'Configurar';
+$string['activities'] = 'Atividades';
+$string['entry times'] = 'Data do registro';
+$string['enter eligibility'] = 'Entrar com elegibilidade';
+$string['ineligible'] = 'Inelegível';
+$string['allow eligibility posting'] = 'Autorizar postagem de Elegibilidade';
+$string['from'] = 'De';
+$string['to'] = 'até';
+$string['add'] = 'Adicionar';
+$string['Starts'] = 'Começo';
+$string['Ends'] = 'Fim';
+$string['Activity'] = 'Atividade';
+$string['Grade'] = 'Grau';
+$string['Course'] = 'Curso';
+$string['addactivity']="Adicionar Atividade ao(s) Estudante(s) selecionado(s)";
?>
Modified: trunk/lang/en_utf8/Food_Service/Accounts.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Accounts.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Accounts.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,24 +24,24 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on Accounts file of Food_Service Module, in English*/
+ /*This are messages on Accounts file of Food_Service Module, in Portuguese*/
-$string['students'] = 'Students tr';
-$string['users'] = 'Users tr';
-$string['save'] = 'Save tr';
-$string['deleteAccount'] = 'Delete Account tr';
-$string['createAccount'] = 'Create Account tr';
-$string['accountInformation'] = 'Account Information tr';
-$string['thisUserDoesNotHaveMealAccount'] = 'This user does not have a Meal Account. tr';
-$string['warning'] = 'Warning tr';
-$string['barcode'] = 'Barcode tr';
-$string['otherStudentsAssociatedWithSameAccount'] = 'Other students associated with same account:<BR> tr';
-$string['nonExistentAccount'] = 'Non-existent account! tr';
-$string['reduced'] = 'Reduced tr';
-$string['free'] = 'Free tr';
-$string['discount'] = 'Discount tr';
-$string['full'] = 'Full tr';
-$string['balance'] = 'Balance tr';
-$string['status'] = 'Status tr';
+$string['students'] = 'Estudantes';
+$string['users'] = 'Usuários';
+$string['save'] = 'Salvar';
+$string['deleteAccount'] = 'Deletar conta';
+$string['createAccount'] = 'Criar conta';
+$string['accountInformation'] = 'Informação da conta';
+$string['thisUserDoesNotHaveMealAccount'] = 'Este usuário não tem conta na cantina';
+$string['warning'] = 'Aviso';
+$string['barcode'] = 'Código de barras';
+$string['otherStudentsAssociatedWithSameAccount'] = 'Outro estudante associado à mesma conta:<BR> tr';
+$string['nonExistentAccount'] = 'Conta não existente!';
+$string['reduced'] = 'Reduzido';
+$string['free'] = 'Gratuito';
+$string['discount'] = 'Desconto';
+$string['full'] = 'Integral';
+$string['balance'] = 'Balanço';
+$string['status'] = 'Situação';
?>
Modified: trunk/lang/en_utf8/Food_Service/ActivityReport.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/ActivityReport.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/ActivityReport.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,26 +24,26 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['cash'] = 'Cash tr';
-$string['check'] = 'Check tr';
-$string['creditCard'] = 'Credit Card tr';
-$string['debitCard'] = 'Debit Card tr';
-$string['transfer'] = 'Transfer tr';
-$string['ns'] = 'n/s tr';
-$string['deposit'] = 'Deposit tr';
-$string['credit'] = 'Credit tr';
-$string['debit'] = 'Debit tr';
-$string['notSpecified'] = 'Not Specified tr';
-$string['go'] = 'Go tr';
-$string['detailedView'] = 'Detailed View tr';
-$string['originalView'] = 'Original View tr';
+$string['cash'] = 'Espécie';
+$string['check'] = 'Cheque';
+$string['creditCard'] = 'Cartão de crédito';
+$string['debitCard'] = 'Cartão de débito';
+$string['transfer'] = 'Transferência';
+$string['ns'] = 'n/s tr'; //pendente
+$string['deposit'] = 'Depósito';
+$string['credit'] = 'Crédito';
+$string['debit'] = 'Débito';
+$string['notSpecified'] = 'Não especificado';
+$string['go'] = 'Ir';
+$string['detailedView'] = 'Exibição detalhada';
+$string['originalView'] = 'Exibição normal';
-$string['description'] = 'Description tr';
-$string['detail'] = 'Detail tr';
-$string['count'] = 'Count tr';
-$string['amount'] = 'Amount tr';
-$string['transactionType'] = 'Transaction Type tr';
-$string['transactionTypes'] = 'Transactions Types tr';
-$string['transaction'] = 'Transaction tr';
-$string['transactions'] = 'Transactions tr';
+$string['description'] = 'Descrição';
+$string['detail'] = 'Detalhes';
+$string['count'] = 'Conta'; // pendente ou quantia?
+$string['amount'] = 'Quantidade';
+$string['transactionType'] = 'Tipo de transação';
+$string['transactionTypes'] = 'Tipos de transações';
+$string['transaction'] = 'Transação';
+$string['transactions'] = 'Transações';
?>
Modified: trunk/lang/en_utf8/Food_Service/AssignSchool.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/AssignSchool.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/AssignSchool.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,14 +24,14 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['save'] = 'Save tr';
-$string['account'] = 'Account tr';
-$string['schoolYear'] = 'School Year tr';
-$string['student'] = 'Student tr';
-$string['students'] = 'Students tr';
-$string['school'] = 'School tr';
-$string['studentTransactionWOSchool'] = 'Student Transaction w/o School tr';
-$string['studentTransactionsWOSchool'] = 'Student Transactions w/o School tr';
-$string['schoolYear'] = 'School Year tr';
-$string['user'] = 'User tr';
+$string['save'] = 'Salvar';
+$string['account'] = 'Conta';
+$string['schoolYear'] = 'Ano escolar';
+$string['student'] = 'Estudante';
+$string['students'] = 'Estudantes';
+$string['school'] = 'Escola';
+$string['studentTransactionWOSchool'] = 'Student Transaction w/o School tr'; // pendente
+$string['studentTransactionsWOSchool'] = 'Student Transactions w/o School tr'; // pendente
+$string['schoolYear'] = 'Ano escolar';
+$string['user'] = 'Usuário';
?>
Modified: trunk/lang/en_utf8/Food_Service/DailyMenus.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/DailyMenus.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/DailyMenus.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,14 +24,14 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on DailyMenus file of Food_Service Module, in English*/
+ /*This are messages on DailyMenus file of Food_Service Module, in Portuguese*/
- $string['orSelectPreviousMeal'] = 'or select previous meal tr';
- $string['description'] = 'Description tr';
- $string['date'] = 'Date tr';
- $string['save'] = 'Save tr';
- $string['new'] = 'new tr';
- $string['generateMenu'] = 'Generate Menu tr';
- $string['thereAreNoCalendars...'] = 'There are no calendars yet setup. tr';
- $string['thereAreNoMenus...'] = 'There are no menus yet setup. tr';
+ $string['orSelectPreviousMeal'] = 'ou selecione lanches anteriores';
+ $string['description'] = 'Descrição';
+ $string['date'] = 'Data';
+ $string['save'] = 'Salvar';
+ $string['new'] = 'Novo';
+ $string['generateMenu'] = 'Gerar menu';
+ $string['thereAreNoCalendars...'] = 'Ainda não existem calendários configurados.';
+ $string['thereAreNoMenus...'] = 'Ainda não existem menus configurados.';
?>
Modified: trunk/lang/en_utf8/Food_Service/Kiosk.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Kiosk.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Kiosk.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,7 +24,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on Kiosk file of Food_Service Module, in English*/
+ /*This are messages on Kiosk file of Food_Service Module, in Portuguese*/
- $string['thereAreNoMenus'] = 'There are no menus yet setup. tr';
+ $string['thereAreNoMenus'] = 'Ainda não existem menus configurados';
?>
Modified: trunk/lang/en_utf8/Food_Service/Menu.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Menu.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Menu.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,21 +24,21 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on Menu file of Food_Service Module, in English*/
+ /*This are messages on Menu file of Food_Service Module, in Portuguese*/
- $string['accounts'] = 'Accounts tr';
- $string['statements'] = 'Statements tr';
- $string['transactions'] = 'Transactions tr';
- $string['serveMeals'] = 'Serve Meals tr';
- $string['reports'] = 'Reports tr';
- $string['activityReport'] = 'Activity Report tr';
- $string['transactionsReport'] = 'Transactions Report tr';
- $string['mealReports'] = 'Meal Reports tr';
- $string['reminders'] = 'Reminders tr';
- $string['setup'] = 'Setup tr';
- $string['dailyMenus'] = 'Daily Menus tr';
- $string['mealItems'] = 'Meal Items tr';
- $string['meals'] = 'Meals tr';
- $string['kioskPreview'] = 'Kiosk Preview tr';
- $string[''] = ' tr';
+ $string['accounts'] = 'Contas';
+ $string['statements'] = 'Confirmações';
+ $string['transactions'] = 'Transações';
+ $string['serveMeals'] = 'Servir lanches';
+ $string['reports'] = 'Relatórios';
+ $string['activityReport'] = 'Relatório de atividades';
+ $string['transactionsReport'] = 'Relatórios de transações';
+ $string['mealReports'] = 'Relatórios de lanches';
+ $string['reminders'] = 'Lembretes';
+ $string['setup'] = 'Configurar';
+ $string['dailyMenus'] = 'Menus Diários';
+ $string['mealItems'] = 'Itens do lanche';
+ $string['meals'] = 'Lanches';
+ $string['kioskPreview'] = 'Previsualização da cantina';
+ $string[''] = ' ';
?>
Modified: trunk/lang/en_utf8/Food_Service/MenuItems.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/MenuItems.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/MenuItems.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,20 +24,20 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in English*/
+ /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
- $string['save'] = 'Save tr';
- $string['itemDescription'] = 'Item Description tr';
- $string['shortName'] = 'Short Name tr';
- $string['icon'] = 'Icon tr';
- $string['sortOrder'] = 'Sort Order tr';
- $string['studentPrice'] = 'Student<BR>Price tr';
- $string['reducedPrice'] = 'Reduced<BR>Price tr';
- $string['freePrice'] = 'Free<BR>Price tr';
- $string['usersPrice'] = 'Users<BR>Price tr';
- $string['mealItem'] = 'Meal Item tr';
- $string['mealItems'] = 'Meal Items tr';
- $string['item'] = 'Item tr';
- $string['includeInCounts'] = 'Include<br>in Counts tr';
- $string['category'] = 'Category tr';
+ $string['save'] = 'Salvar';
+ $string['itemDescription'] = 'Descrição do item';
+ $string['shortName'] = 'Abreviação';
+ $string['icon'] = 'Ícone';
+ $string['sortOrder'] = 'Ordem de classificação';
+ $string['studentPrice'] = 'Estudante<BR>Preço';
+ $string['reducedPrice'] = 'Reduzido<BR>Preço';
+ $string['freePrice'] = 'Gratuito<BR>Preço';
+ $string['usersPrice'] = '<BR>Preço do usuário';
+ $string['mealItem'] = 'Item do lanche';
+ $string['mealItems'] = 'Itens do lanche';
+ $string['item'] = 'Item';
+ $string['includeInCounts'] = 'Incluir<br>nas contas';
+ $string['category'] = 'Categoria';
?>
Modified: trunk/lang/en_utf8/Food_Service/MenuReports.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/MenuReports.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/MenuReports.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,18 +24,18 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in English*/
+ /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
-$string['noMenusYetSetup'] = 'There are no menus yet setup. tr';
-$string['elligible'] = 'Elligible tr';
-$string['days'] = 'Days tr';
-$string['possible'] = 'Possible tr';
-$string['participated'] = 'Participated tr';
-$string['participation'] = 'Participation tr';
-$string['sales'] = 'Sales tr';
-$string['totals'] = 'Totals tr';
-$string['type'] = 'Type tr';
-$string['discount'] = 'Discount tr';
-$string['total'] = 'Total tr';
-$string['go'] = 'Go tr';
+$string['noMenusYetSetup'] = 'Ainda não existem menus configurados.';
+$string['elligible'] = 'Elegível';
+$string['days'] = 'Dias';
+$string['possible'] = 'Possível';
+$string['participated'] = 'participados';
+$string['participation'] = 'Participação';
+$string['sales'] = 'Vendas';
+$string['totals'] = 'Totais';
+$string['type'] = 'Tipo';
+$string['discount'] = 'Desconto';
+$string['total'] = 'Total';
+$string['go'] = 'Ir';
?>
Modified: trunk/lang/en_utf8/Food_Service/Menus.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Menus.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Menus.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,12 +24,12 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on Menus file of Food_Service Module, in English*/
+ /*This are messages on Menus file of Food_Service Module, in Portuguese*/
- $string['save'] = 'Save tr';
- $string['meal'] = 'Meal tr';
- $string['sortOrder'] = 'Sort Order tr';
- $string['meals'] = 'Meals tr';
- $string['category'] = 'Category tr';
- $string['mealCategory'] = '$a Category tr';
+ $string['save'] = 'Salvar';
+ $string['meal'] = 'lanche';
+ $string['sortOrder'] = 'Ordem de classificação';
+ $string['meals'] = 'Lanches';
+ $string['category'] = 'Categoria';
+ $string['mealCategory'] = '$a Categoria';
?>
Modified: trunk/lang/en_utf8/Food_Service/ServeMenus.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/ServeMenus.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/ServeMenus.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,11 +24,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in English*/
+ /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
-$string['user'] = 'User tr';
-$string['users'] = 'Users tr';
-$string['student'] = 'Student tr';
-$string['students'] = 'Students tr';
-$string['noMenusYetSetup'] = 'There are no menus yet setup. tr';
+$string['user'] = 'Usuário';
+$string['users'] = 'Usuários';
+$string['student'] = 'Estudante';
+$string['students'] = 'Estudantes';
+$string['noMenusYetSetup'] = 'Ainda não existem menus configurados.';
?>
Modified: trunk/lang/en_utf8/Food_Service/Statements.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Statements.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Statements.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,11 +24,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on Statements file of Food_Service Module, in English*/
+ /*This are messages on Statements file of Food_Service Module, in Portuguese*/
- $string['deposit'] = 'Deposit tr';
- $string['credit'] = 'Credit tr';
- $string['debit'] = 'Debit tr';
- $string['type'] = 'Type tr';
+ $string['deposit'] = 'Depósito';
+ $string['credit'] = 'Crédito';
+ $string['debit'] = 'Débito';
+ $string['type'] = 'Tipo';
?>
Modified: trunk/lang/en_utf8/Food_Service/Student.inc.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Student.inc.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Student.inc.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,16 +24,16 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in English*/
+ /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
-$string['otherStudentsAssociatedSameAccount'] = 'Other students associated with same account tr';
-$string['nonExistentAccount'] = 'Non-existent account! tr';
-$string['inactive'] = 'Inactive tr';
-$string['disabled'] = 'Disabled tr';
-$string['closed'] = 'Closed tr';
-$string['active'] = 'Active tr';
-$string['reduced'] = 'Reduced tr';
-$string['free'] = 'Free tr';
-$string['discount'] = 'Discount tr';
-$string['barcode'] = 'Barcode tr';
+$string['otherStudentsAssociatedSameAccount'] = 'Existem outro estudantes associados à mesma conta';
+$string['nonExistentAccount'] = 'Conta não existente!';
+$string['inactive'] = 'Inativo';
+$string['disabled'] = 'Desabilitado';
+$string['closed'] = 'Fechado';
+$string['active'] = 'Ativo';
+$string['reduced'] = 'Reduzido';
+$string['free'] = 'Gratuito';
+$string['discount'] = 'Desconto';
+$string['barcode'] = 'Código de barras';
?>
Modified: trunk/lang/en_utf8/Food_Service/Students/Accounts.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/Accounts.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Students/Accounts.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,16 +24,16 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in English*/
+ /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
-$string['save'] = 'Save tr';
-$string['accountInformation'] = 'Account Information';
-$string['balance'] = 'Balance tr';
-$string['status'] = 'Status tr';
-$string['otherStudentsAssociatedSameAccount'] = 'Other students associated with same account tr';
-$string['inactive'] = 'Inactive tr';
-$string['disabled'] = 'Disabled tr';
-$string['closed'] = 'Closed tr';
-$string['reduced'] = 'Reduced tr';
-$string['free'] = 'Free tr';
+$string['save'] = 'Salvar';
+$string['accountInformation'] = 'Informações da conta';
+$string['balance'] = 'Balanço';
+$string['status'] = 'Estado';
+$string['otherStudentsAssociatedSameAccount'] = 'Existe outro estudante associado à mesma conta';
+$string['inactive'] = 'Inativo';
+$string['disabled'] = 'Desabilitado';
+$string['closed'] = 'Fechado';
+$string['reduced'] = 'Reduzido';
+$string['free'] = 'Gratuito';
?>
Modified: trunk/lang/en_utf8/Food_Service/Students/ActivityReport.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/ActivityReport.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Students/ActivityReport.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -25,13 +25,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['accountID'] = 'Account ID tr';
-$string['student'] = 'Student tr';
-$string['date'] = 'Date tr';
-$string['time'] = 'Time tr';
-$string['balance'] = 'Balance tr';
-$string['discount'] = 'Discount tr';
-$string['description'] = 'Description tr';
-$string['amount'] = 'Amount tr';
-$string['user'] = 'User tr';
+$string['accountID'] = 'ID da conta';
+$string['student'] = 'Estudante';
+$string['date'] = 'Data';
+$string['time'] = 'Hora';
+$string['balance'] = 'Balanço';
+$string['discount'] = 'Desconto';
+$string['description'] = 'Descrição';
+$string['amount'] = 'Quantia';
+$string['user'] = 'Usuário';
?>
Modified: trunk/lang/en_utf8/Food_Service/Students/Lunch.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/Lunch.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Students/Lunch.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -25,14 +25,14 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['cancelSale'] = 'Cancel Sale tr';
-$string['completeSale'] = 'Complete Sale tr';
-$string['balance'] = 'Balance tr';
-$string['earlierSale'] = 'Earlier Sale tr';
-$string['earlierSales'] = 'Earlier Sales tr';
-$string['add'] = 'Add tr';
-$string['item'] = 'Item tr';
-$string['items'] = 'Items tr';
-$string['amount'] = 'Amount tr';
-$string['userNotHaveMealAccount'] = 'This user does not have a Meal Account tr';
+$string['cancelSale'] = 'Cancelar venda';
+$string['completeSale'] = 'Completar venda';
+$string['balance'] = 'Balanço';
+$string['earlierSale'] = 'Venda anterior';
+$string['earlierSales'] = 'Vendas anteriores';
+$string['add'] = 'Inserir';
+$string['item'] = 'Item';
+$string['items'] = 'Itens';
+$string['amount'] = 'Quantia';
+$string['userNotHaveMealAccount'] = 'Este usuário não tem conta para lanche';
?>
Modified: trunk/lang/en_utf8/Food_Service/Students/Reminders.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/Reminders.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Students/Reminders.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -25,28 +25,28 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['accountLow'] = '%N\'s lunch account is getting low. Please send in additional lunch money with %H reminder slip. THANK YOU! tr';
-$string['negativeBalanceAboveMinimum'] = '%N now has a <B>negative balance</B> in %H lunch account. Please stop by the office and speak with responsible person before placing additional lunch orders. Thanks! tr';
-$string['negativeBalanceBelowMinimum'] = '%N now has a <B>negative balance</B> in %H lunch account. Please stop by the office and speak with responsible person before placing additional lunch orders. Thanks! tr';
-$string['requestedPaymentAmount'] = 'Note: Requested payment amount tr';
-$string['chooseAtLeastOneUser'] = 'You must choose at least one user tr';
-$string['createRemindersSelectedUser'] = 'Create Reminders for Selected Users tr';
-$string['estimateForYearEnd'] = 'Estimate for year end tr';
-$string['balance'] = 'Balance tr';
-$string['status'] = 'Status tr';
-$string['warning'] = 'Warning tr';
-$string['negative'] = 'Negative tr';
-$string['minimum'] = 'Minimum tr';
-$string['paymentReminder'] = 'Payment Reminder tr';
-$string['otherStudentsOnThisAccount'] = 'Other students on this account tr';
+$string['accountLow'] = '%N\'s crédito de lanches estão acabando. Por favor adquira mais créditos com %H reminder slip. OBRIGADO! tr'; // pendente
+$string['negativeBalanceAboveMinimum'] = '%N agora tem um <B>balanço negativo</B> na %H conta de lanche. Favor informar aos responsáveis antes de efetuar novas vendas. Obrigado!';
+$string['negativeBalanceBelowMinimum'] = '%N agora tem um <B>balanço negativo</B> na %H conta de lanche. Favor informar aos responsáveis antes de efetuar novas vendas. Obrigado!';
+$string['requestedPaymentAmount'] = 'Nota: Quantia requerida para pagamento';
+$string['chooseAtLeastOneUser'] = 'Você precisa selecionar ao menos um estudante';
+$string['createRemindersSelectedUser'] = 'Criar lembretes para os estudantes selecionados';
+$string['estimateForYearEnd'] = 'Estimativa para o fim do ano';
+$string['balance'] = 'Balanço';
+$string['status'] = 'Estado';
+$string['warning'] = 'Aviso';
+$string['negative'] = 'Negativo';
+$string['minimum'] = 'Mínimo';
+$string['paymentReminder'] = 'Lembrete de pagamento';
+$string['otherStudentsOnThisAccount'] = 'Outros estudantes nesta conta';
$string['grade'] = 'Grade tr';
-$string['teacher'] = 'Teacher tr';
-$string['todayDate'] = 'Today\'s Date tr';
-$string['dateLastDeposit'] = 'Date of Last Deposit tr';
-$string['amountLastDeposit'] = 'Amount of Last Deposit tr';
-$string['minimumPayment'] = 'Mimimum Payment tr';
-$string['accountID'] = 'Account ID tr';
-$string['his'] = 'his tr';
-$string['her'] = 'her tr';
-$string['hisHer'] = 'his/her tr';
+$string['teacher'] = 'Professor';
+$string['todayDate'] = 'Data de hoje';
+$string['dateLastDeposit'] = 'Data do último depósito';
+$string['amountLastDeposit'] = 'Quantia do último depósito';
+$string['minimumPayment'] = 'Pagamento mínimo';
+$string['accountID'] = 'ID da conta';
+$string['his'] = 'ele';
+$string['her'] = 'ela';
+$string['hisHer'] = 'ele/ela';
?>
Modified: trunk/lang/en_utf8/Food_Service/Students/ServeMenus.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/ServeMenus.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Students/ServeMenus.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -25,13 +25,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['cancelSale'] = 'Cancel Sale tr';
-$string['completeSale'] = 'Complete Sale tr';
-$string['balance'] = 'Balance tr';
-$string['item'] = 'Item tr';
-$string['items'] = 'Items tr';
-$string['amount'] = 'Amount tr';
-$string['icon'] = 'Icon tr';
-$string['price'] = 'Price tr';
-$string['userNotHaveMealAccount'] = 'This user does not have a Meal Account tr';
+$string['cancelSale'] = 'Cancelar venda';
+$string['completeSale'] = 'Completar venda';
+$string['balance'] = 'Balanço';
+$string['item'] = 'Item';
+$string['items'] = 'Itens';
+$string['amount'] = 'Quantia';
+$string['icon'] = 'Ícone';
+$string['price'] = 'Preço';
+$string['userNotHaveMealAccount'] = 'Este usuário não tem conta para lanche';
?>
Modified: trunk/lang/en_utf8/Food_Service/Students/Statements.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/Statements.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Students/Statements.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -25,17 +25,17 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['balance'] = 'Balance tr';
-$string['status'] = 'Status tr';
-$string['detailedView'] = 'Detailed View tr';
-$string['originalView'] = 'Original View tr';
-$string['date'] = 'Date tr';
-$string['time'] = 'Time tr';
-$string['description'] = 'Description tr';
-$string['amount'] = 'Amount tr';
-$string['user'] = 'User tr';
-$string['student'] = 'Student tr';
-$string['transaction'] = 'Transaction tr';
-$string['transactions'] = 'Transactions tr';
-$string['userNotHaveMealAccount'] = 'This user does not have a Meal Account tr';
+$string['balance'] = 'Balanço';
+$string['status'] = 'Estado';
+$string['detailedView'] = 'Exibição detalhada';
+$string['originalView'] = 'Exibição normal';
+$string['date'] = 'Data';
+$string['time'] = 'Hora';
+$string['description'] = 'Descrição';
+$string['amount'] = 'Quantia';
+$string['user'] = 'Usuário';
+$string['student'] = 'estudante';
+$string['transaction'] = 'Transação';
+$string['transactions'] = 'Transações';
+$string['userNotHaveMealAccount'] = 'Este usuário não tem conta para lanche';
?>
Modified: trunk/lang/en_utf8/Food_Service/Students/Transactions.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/Transactions.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Students/Transactions.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -25,15 +25,15 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['enterValidTypeAmount'] = 'Please enter valid Type and Amount. tr';
-$string['balance'] = 'Balance tr';
-$string['status'] = 'Status tr';
-$string['cancel'] = 'Cancel tr';
-$string['save'] = 'Save tr';
-$string['type'] = 'Type tr';
-$string['description'] = 'Description tr';
-$string['amount'] = 'Amount tr';
-$string['earlierTransaction'] = 'Earlier Transaction tr';
-$string['earlierTransactions'] = 'Earlier Transactions tr';
-$string['userNotHaveMealAccount'] = 'This user does not have a Meal Account tr';
+$string['enterValidTypeAmount'] = 'Por favor insira Tipo e Quantia válidos.';
+$string['balance'] = 'Balanço';
+$string['status'] = 'Estado';
+$string['cancel'] = 'Cancelar';
+$string['save'] = 'Salvar';
+$string['type'] = 'Tipo';
+$string['description'] = 'Descrição';
+$string['amount'] = 'Quantia';
+$string['earlierTransaction'] = 'Última transação';
+$string['earlierTransactions'] = 'Últimas transações';
+$string['userNotHaveMealAccount'] = 'Este usuário não tem uma conta para lanche';
?>
Modified: trunk/lang/en_utf8/Food_Service/TakeMenuCounts.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/TakeMenuCounts.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/TakeMenuCounts.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,23 +24,23 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in English*/
-$string['cannotTakeMealCountsPeriod'] = 'You cannot take meal counts for this period. tr';
-$string['selectedDateNotSchoolDay'] = 'The selected date is not a school day! tr';
-$string['periodNotMPSelectedDate'] = 'This period does not meet in the marking period of the selected date. tr';
-$string['periodNotMeetSelectedDate'] = 'This period does not meet on the selected date. tr';
-$string['SelectedDateNotToday'] = 'The selected date is not today tr';
-$string['takenLunchCountsToday'] = 'You have taken lunch counts today for this period. tr';
-$string['save'] = 'Save tr';
-$string['item'] = 'Item tr';
-$string['count'] = 'Count tr';
-$string['student'] = 'Student tr';
-$string['id'] = 'ID tr';
-$string['grade'] = 'Grade tr';
-$string['balance'] = 'Balance tr';
-$string['status'] = 'Status tr';
-$string['ineligibleStudent'] = 'Inelegible Student tr';
-$string['ineligibleStudents'] = 'Inelegible Students tr';
+ /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
+$string['cannotTakeMealCountsPeriod'] = 'Você não está autorizado a lanchar neste período.';
+$string['selectedDateNotSchoolDay'] = 'O dia selecionado não consta no calendário escolar!';
+$string['periodNotMPSelectedDate'] = 'Este período não é referente às Marcações de Período da data selecionada.';
+$string['periodNotMeetSelectedDate'] = 'Este período não é referente à data selecionada.';
+$string['SelectedDateNotToday'] = 'A data selecionada não é hoje';
+$string['takenLunchCountsToday'] = 'You have taken lunch counts today for this period. tr'; // pendente
+$string['save'] = 'Salvar';
+$string['item'] = 'Item';
+$string['count'] = 'Quantidade';
+$string['student'] = 'Estudante';
+$string['id'] = 'ID';
+$string['grade'] = 'Grade tr'; // pendente
+$string['balance'] = 'Balanço';
+$string['status'] = 'Estado';
+$string['ineligibleStudent'] = 'Estudante Inelegível';
+$string['ineligibleStudents'] = 'Estudantes Inelegíveis';
?>
Modified: trunk/lang/en_utf8/Food_Service/TeacherCompletion.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/TeacherCompletion.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/TeacherCompletion.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,16 +24,16 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in English*/
+ /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
-$string['noMenusYetSetup'] = 'There are no menus yet setup. tr';
-$string['teacherWhoTakes'] = 'Teacher who takes tr';
-$string['teachersWhoTake'] = 'Teachers who take tr';
-$string['counts'] = ' counts tr';
-$string['item'] = ' Items tr';
-$string['totalCount'] = 'Total count tr';
-$string['itemTotal'] = ' Item Total tr';
-$string['itemTotals'] = ' Items Total tr';
+$string['noMenusYetSetup'] = 'Ainda não existe um menu configurado.';
+$string['teacherWhoTakes'] = 'Professor que toma';
+$string['teachersWhoTake'] = 'Professores que totam';
+$string['counts'] = 'contador';
+$string['item'] = ' Item';
+$string['totalCount'] = ' Contagem total';
+$string['itemTotal'] = ' Total do item';
+$string['itemTotals'] = ' Total dos itens';
?>
Modified: trunk/lang/en_utf8/Food_Service/TransactionsReport.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/TransactionsReport.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/TransactionsReport.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,12 +24,12 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in English*/
+ /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
-$string['go'] = 'Go tr';
-$string['totals'] = 'Totals tr';
-$string['type'] = 'Type tr';
-$string['type'] = 'Types tr';
-$string['transaction'] = 'Transaction tr';
-$string['total'] = 'Total tr';
+$string['go'] = 'Ir';
+$string['totals'] = 'Totais';
+$string['type'] = 'Tipo';
+$string['type'] = 'Tipo';
+$string['transaction'] = 'Transação';
+$string['total'] = 'Total';
?>
Modified: trunk/lang/en_utf8/Food_Service/User.inc.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/User.inc.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/User.inc.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,14 +24,14 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in English*/
-$string['balance'] = 'Balance tr';
-$string['inactive'] = 'Inactive tr';
-$string['disabled'] = 'Disabled tr';
-$string['closed'] = 'Closed tr';
-$string['active'] = 'Active tr';
-$string['reduced'] = 'Reduced tr';
-$string['free'] = 'Free tr';
-$string['discount'] = 'Discount tr';
-$string['barcode'] = 'Barcode tr';
+ /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
+$string['balance'] = 'Balanço';
+$string['inactive'] = 'Inativo';
+$string['disabled'] = 'Desabilitado';
+$string['closed'] = 'Fechado';
+$string['active'] = 'Ativo';
+$string['reduced'] = 'Reduzido';
+$string['free'] = 'Gratuito';
+$string['discount'] = 'Desconto';
+$string['barcode'] = 'Código de barras';
?>
Modified: trunk/lang/en_utf8/Food_Service/Users/Accounts.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Users/Accounts.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Users/Accounts.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -24,16 +24,16 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
- /*This are messages on MenuItems file of Food_Service Module, in English*/
+ /*This are messages on MenuItems file of Food_Service Module, in Portuguese*/
-$string['save'] = 'Save tr';
-$string['accountInformation'] = 'Account Information';
-$string['balance'] = 'Balance tr';
-$string['status'] = 'Status tr';
-$string['otherStudentsAssociatedSameAccount'] = 'Other students associated with same account tr';
-$string['inactive'] = 'Inactive tr';
-$string['disabled'] = 'Disabled tr';
-$string['closed'] = 'Closed tr';
-$string['reduced'] = 'Reduced tr';
-$string['free'] = 'Free tr';
+$string['save'] = 'Salvar';
+$string['accountInformation'] = 'Informações da conta';
+$string['balance'] = 'Balanço';
+$string['status'] = 'Situação';
+$string['otherStudentsAssociatedSameAccount'] = 'Existem outros estudantes associados à mesma conta';
+$string['inactive'] = 'Inativo';
+$string['disabled'] = 'Desabilitado';
+$string['closed'] = 'Fechado';
+$string['reduced'] = 'Reduzido';
+$string['free'] = 'Gratuito';
?>
Modified: trunk/lang/en_utf8/Food_Service/Users/ActivityReport.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Users/ActivityReport.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Users/ActivityReport.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -25,10 +25,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['user'] = 'User tr';
-$string['date'] = 'Date tr';
-$string['time'] = 'Time tr';
-$string['balance'] = 'Balance tr';
-$string['description'] = 'Add tr';
-$string['amount'] = 'Item tr';
+$string['user'] = 'Usuário';
+$string['date'] = 'Data';
+$string['time'] = 'Hora';
+$string['balance'] = 'Balanço';
+$string['description'] = 'Inserir';
+$string['amount'] = 'Item';
?>
Modified: trunk/lang/en_utf8/Food_Service/Users/Lunch.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Users/Lunch.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Users/Lunch.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -25,14 +25,14 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['cancelSale'] = 'Cancel Sale tr';
-$string['completeSale'] = 'Complete Sale tr';
-$string['balance'] = 'Balance tr';
-$string['earlierSale'] = 'Earlier Sale tr';
-$string['earlierSales'] = 'Earlier Sales tr';
-$string['add'] = 'Add tr';
-$string['item'] = 'Item tr';
-$string['items'] = 'Items tr';
-$string['amount'] = 'Amount tr';
-$string['userNotHaveMealAccount'] = 'This user does not have a Meal Account tr';
+$string['cancelSale'] = 'Cancelar venda';
+$string['completeSale'] = 'Completar venda';
+$string['balance'] = 'Balanço';
+$string['earlierSale'] = 'Venda anterior';
+$string['earlierSales'] = 'Vendas anteriores';
+$string['add'] = 'Inserir';
+$string['item'] = 'Item';
+$string['items'] = 'Items';
+$string['amount'] = 'Quantidade';
+$string['userNotHaveMealAccount'] = 'Este usuário não tem conta para lanche';
?>
Modified: trunk/lang/en_utf8/Food_Service/Users/Reminders.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Users/Reminders.php 2010-04-14 18:09:01 UTC (rev 421)
+++ trunk/lang/en_utf8/Food_Service/Users/Reminders.php 2010-11-19 14:08:08 UTC (rev 422)
@@ -25,20 +25,20 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-$string['accountLow'] = 'Your lunch account is getting low. Please send in at least %P with your reminder slip. THANK YOU! tr';
-$string['negativeBalanceAboveMinimum'] = 'You now have a <B>negative balance</B> in your lunch account. Please send in the negative balance plus %T. THANK YOU! tr';
-$string['negativeBalanceBelowMinimum'] = 'You now have a <b>negative balance</b> below the allowed minimum. Please send in the negative balance plus %T. THANK YOU! tr';
-$string['chooseAtLeastOneUser'] = 'You must choose at least one user tr';
-$string['createRemindersSelectedUser'] = 'Create Reminders for Selected Users tr';
-$string['balance'] = 'Balance tr';
-$string['status'] = 'Status tr';
-$string['warning'] = 'Warning tr';
-$string['negative'] = 'Negative tr';
-$string['minimum'] = 'Minimum tr';
-$string['paymentReminder'] = 'Payment Reminder tr';
-$string['todayDate'] = 'Today\'s Date tr';
-$string['dateLastDeposit'] = 'Date of Last Deposit tr';
-$string['amountLastDeposit'] = 'Amount of Last Deposit tr';
-$string['minimumPayment'] = 'Mimimum Payment tr';
+$string['accountLow'] = 'Sua conta de la...
[truncated message content] |
|
From: Carlos L. <cml...@gm...> - 2010-04-14 18:16:58
|
|
From: <nev...@us...> - 2010-04-14 18:09:08
|
Revision: 421
http://opensis.svn.sourceforge.net/opensis/?rev=421&view=rev
Author: neverabe
Date: 2010-04-14 18:09:01 +0000 (Wed, 14 Apr 2010)
Log Message:
-----------
Adding the whole folder tree es_mx_utf8 basing on the folder en_utf8
Added Paths:
-----------
trunk/lang/es_mx_utf8/Attendance/
trunk/lang/es_mx_utf8/Billing/
trunk/lang/es_mx_utf8/Billing/Balance.php
trunk/lang/es_mx_utf8/Billing/Define.php
trunk/lang/es_mx_utf8/Billing/Invoices.php
trunk/lang/es_mx_utf8/Billing/Letters.php
trunk/lang/es_mx_utf8/Billing/LunchAdmin.php
trunk/lang/es_mx_utf8/Billing/LunchTotals.php
trunk/lang/es_mx_utf8/Billing/MassAdd.php
trunk/lang/es_mx_utf8/Billing/StaffBilling.php
trunk/lang/es_mx_utf8/Common.php
trunk/lang/es_mx_utf8/Core.php
trunk/lang/es_mx_utf8/Database/
trunk/lang/es_mx_utf8/Database/Ethnicity.php
trunk/lang/es_mx_utf8/Database/Gender.php
trunk/lang/es_mx_utf8/Database/Profiles.php
trunk/lang/es_mx_utf8/Database/Status.php
trunk/lang/es_mx_utf8/Database/StudentFields.php
trunk/lang/es_mx_utf8/Eligibility/
trunk/lang/es_mx_utf8/Eligibility/TeacherCompletion.php
trunk/lang/es_mx_utf8/Eligibility.php
trunk/lang/es_mx_utf8/Food_Service/
trunk/lang/es_mx_utf8/Food_Service/Accounts.php
trunk/lang/es_mx_utf8/Food_Service/ActivityReport.php
trunk/lang/es_mx_utf8/Food_Service/AssignSchool.php
trunk/lang/es_mx_utf8/Food_Service/DailyMenus.php
trunk/lang/es_mx_utf8/Food_Service/Kiosk.php
trunk/lang/es_mx_utf8/Food_Service/Menu.php
trunk/lang/es_mx_utf8/Food_Service/MenuItems.php
trunk/lang/es_mx_utf8/Food_Service/MenuReports.php
trunk/lang/es_mx_utf8/Food_Service/Menus.php
trunk/lang/es_mx_utf8/Food_Service/ServeMenus.php
trunk/lang/es_mx_utf8/Food_Service/Statements.php
trunk/lang/es_mx_utf8/Food_Service/Student.inc.php
trunk/lang/es_mx_utf8/Food_Service/Students/
trunk/lang/es_mx_utf8/Food_Service/TakeMenuCounts.php
trunk/lang/es_mx_utf8/Food_Service/TeacherCompletion.php
trunk/lang/es_mx_utf8/Food_Service/TransactionsReport.php
trunk/lang/es_mx_utf8/Food_Service/User.inc.php
trunk/lang/es_mx_utf8/Food_Service/Users/
trunk/lang/es_mx_utf8/Food_Service/includes/
trunk/lang/es_mx_utf8/Functions/
trunk/lang/es_mx_utf8/Functions/DeletePrompt.fnc.php
trunk/lang/es_mx_utf8/Functions/GetStuList.fnc.php
trunk/lang/es_mx_utf8/Functions/HackingLog.php
trunk/lang/es_mx_utf8/Functions/ListOutput.fnc.php
trunk/lang/es_mx_utf8/Functions/Search.fnc.php
trunk/lang/es_mx_utf8/Functions/Widgets.fnc.php
trunk/lang/es_mx_utf8/Grades.php
trunk/lang/es_mx_utf8/Modules.php
trunk/lang/es_mx_utf8/Scheduling.php
trunk/lang/es_mx_utf8/School_Setup/
trunk/lang/es_mx_utf8/School_Setup/Menu.php
trunk/lang/es_mx_utf8/Students/
trunk/lang/es_mx_utf8/Students/Menu.php
trunk/lang/es_mx_utf8/Students/includes.php
trunk/lang/es_mx_utf8/Tools.php
trunk/lang/es_mx_utf8/Users/
trunk/lang/es_mx_utf8/Users/AddStudents.php
trunk/lang/es_mx_utf8/Users/Exceptions.php
trunk/lang/es_mx_utf8/Users/Menu.php
trunk/lang/es_mx_utf8/Users/Preferences.php
trunk/lang/es_mx_utf8/Users/Profiles.php
trunk/lang/es_mx_utf8/Users/Search.inc.php
trunk/lang/es_mx_utf8/Users/Search.php
trunk/lang/es_mx_utf8/Users/Search_Miss_Attn.inc.php
trunk/lang/es_mx_utf8/Users/User.php
trunk/lang/es_mx_utf8/Users/UserFields.php
trunk/lang/es_mx_utf8/Users/includes/
trunk/lang/es_mx_utf8/attendance.php
trunk/lang/es_mx_utf8/datetime.php
trunk/lang/es_mx_utf8/install.php
trunk/lang/es_mx_utf8/langconfig.php
trunk/lang/es_mx_utf8/login.inc.php
trunk/lang/es_mx_utf8/misc/
trunk/lang/es_mx_utf8/misc/Portal.php
trunk/lang/es_mx_utf8/schoolsetup.php
trunk/lang/es_mx_utf8/students.php
trunk/lang/es_mx_utf8/users.php
Added: trunk/lang/es_mx_utf8/Billing/Balance.php
===================================================================
--- trunk/lang/es_mx_utf8/Billing/Balance.php (rev 0)
+++ trunk/lang/es_mx_utf8/Billing/Balance.php 2010-04-14 18:09:01 UTC (rev 421)
@@ -0,0 +1,104 @@
+<?php
+
+DrawHeader('Balance Report');
+
+if($_REQUEST[modfunc]=='')
+{
+ echo '<BR>';
+ PopTable('header','Search');
+ echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=list method=POST>";
+ echo '<TABLE>';
+ Warehouse('searchstu');
+ echo '<TR><TD>Balance Between</TD><TD><INPUT type=text name=balance_low> & <INPUT type=text name=balance_high></TD></TR>';
+ echo '<TR><TD>Balance Not Zero</TD><TD><INPUT type=checkbox name=not_zero value=Y></TD></TR>';
+ echo '<TR><TD>Balance</TD><TD>';
+ echo '<SELECT name=editor>
+ <OPTION value="Student Billing">Student Billing</OPTION>
+ <OPTION value=Lunch>Lunch</OPTION>
+ </SELECT>';
+ echo '</TD></TR>';
+ PrepareSchool(SessionSchool(),'',SessionCurSchool());
+ Warehouse('searchgrade');
+ Warehouse('searchyear');
+ echo '<TR><TD colspan=2 align=center>';
+ Buttons('Find','Reset');
+ echo '</TD></TR>';
+ echo '</TABLE>';
+ PopTable('footer');
+}
+
+if($_REQUEST[modfunc]=='list')
+{
+ if($_REQUEST[balance_low]>$_REQUEST[balance_high])
+ {
+ $tmp = $_REQUEST[balance_high];
+ $_REQUEST[balance_high] = $_REQUEST[balance_low];
+ $_REQUEST[balance_low] = $tmp;
+ }
+
+ DrawHeader($_REQUEST[editor].' Balances - School Year: '.DispYear($_REQUEST[year]).' as of '.ProperDate(DBDate()));
+
+ if($_REQUEST[editor]=='Student Billing')
+ {
+ $sql = "SELECT ssm.STUDENT_ID,ssm.SCHOOL,ssm.GRADE,s.FIRST_NAME,s.LAST_NAME,s.MIDDLE_NAME ";
+ $sql .= ",(SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_FEES WHERE STUDENT_ID=ssm.STUDENT_ID),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND (LUNCH_PAYMENT!='Y' OR LUNCH_PAYMENT IS NULL) ),0)
+ ".FROM_DUAL.") as BALANCE ";
+ $sql .= "FROM STU_SCHOOL_MEETS ssm,STUDENTS s
+ WHERE ssm.SYEAR='$_REQUEST[year]' AND s.STUDENT_ID=ssm.STUDENT_ID ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_FEES WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ BETWEEN '$_REQUEST[balance_low]' AND '$_REQUEST[balance_high]' ";
+ if($_REQUEST[not_zero]=='Y')
+ $sql .="AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_FEES WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ != '0' ";
+ if($_REQUEST[sch])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND ssm.STUDENT_ID='$_REQUEST[stuid]' ";
+ if($_REQUEST[first])
+ $sql .= "AND s.FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[last])
+ $sql .= "AND s.LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ $sql .= "ORDER BY s.LAST_NAME,s.FIRST_NAME,s.MIDDLE_NAME ";
+ }
+ else
+ {
+ $sql = "SELECT ssm.STUDENT_ID,ssm.SCHOOL,ssm.GRADE,s.FIRST_NAME,s.LAST_NAME,s.MIDDLE_NAME ";
+ $sql .= ",(SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT_LUNCH WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.") -
+ COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND LUNCH_PAYMENT='Y' ),0) as BALANCE ";
+ $sql .= "FROM STU_SCHOOL_MEETS ssm,STUDENTS s
+ WHERE ssm.SYEAR='$_REQUEST[year]' AND s.STUDENT_ID=ssm.STUDENT_ID ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND LUNCH_PAYMENT='Y' ),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT_LUNCH WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ BETWEEN '$_REQUEST[balance_low]' AND '$_REQUEST[balance_high]' ";
+ if($_REQUEST[not_zero]=='Y')
+ $sql .="AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_FEES WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ != '0' ";
+ if($_REQUEST[sch])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND ssm.STUDENT_ID='$_REQUEST[stuid]' ";
+ if($_REQUEST[first])
+ $sql .= "AND s.FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[last])
+ $sql .= "AND s.LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ $sql .= "ORDER BY s.LAST_NAME,s.FIRST_NAME,s.MIDDLE_NAME ";
+ }
+
+ $QI = DBQuery($sql);
+ $RET = DBGet($QI,array('LAST_NAME'=>'GetCapWords','FIRST_NAME'=>'GetCapWords','SCHOOL'=>'GetSchool','GRADE'=>'GetGrade','BALANCE'=>'Currency'));
+
+ $columns = array('LAST_NAME'=>'Last Name','FIRST_NAME'=>'First Name','STUDENT_ID'=>'Student ID','SCHOOL'=>'School','GRADE'=>'Grade','BALANCE'=>'Balance');
+ ListOutput($RET,$columns,'Student','Students');
+
+}
+?>
\ No newline at end of file
Property changes on: trunk/lang/es_mx_utf8/Billing/Balance.php
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/lang/es_mx_utf8/Billing/Define.php
===================================================================
--- trunk/lang/es_mx_utf8/Billing/Define.php (rev 0)
+++ trunk/lang/es_mx_utf8/Billing/Define.php 2010-04-14 18:09:01 UTC (rev 421)
@@ -0,0 +1,162 @@
+<?php
+DrawHeader('Pre-Defined Student Billing Fees');
+
+if($_REQUEST[modfunc]=='update')
+{
+ $_REQUEST['date'] = $_REQUEST['day'] . '-' . $_REQUEST['month'] . '-' . $_REQUEST['year'];
+ if($_REQUEST['date']=='--')
+ $_REQUEST['date']='';
+ $effective_date = DBDate();
+ $sql = "INSERT INTO STU_BILLING_DEFINED_FEES (ID,ACCOUNT_ID,TITLE,AMOUNT,DUE_DATE,SYEAR,SCHOOL,GRADE)
+ values(".db_seq_nextval('STU_BILLING_DEFINED_FEES_SEQ').",'$_REQUEST[account_id]','$_REQUEST[title]','$_REQUEST[amount]','$_REQUEST[date]','$_REQUEST[syear]','$_REQUEST[school]','$_REQUEST[grade]')";
+ DBQuery($sql);
+
+ $note[] = 'That Pre-Defined Fee has been added';
+ unset($_REQUEST[modfunc]);
+}
+
+if($_REQUEST[modfunc]=='delete')
+{
+ if(DeletePrompt('pre-defined fee'))
+ {
+ DBQuery("DELETE FROM STU_BILLING_DEFINED_FEES WHERE ID='$_REQUEST[id]'");
+ $note[] = "That Pre-Defined Fee has been Deleted";
+ unset($_REQUEST[modfunc]);
+ }
+}
+
+if(!$_REQUEST[modfunc])
+{
+ // LIST
+ if($note)
+ {
+ echo '<TABLE width=100%><TR><TD bgcolor=#E8E8E9><font size=-1>';
+ ErrorMessage($note,'note');
+ echo '</font></TD></TR></TABLE>';
+ }
+ echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=update METHOD=POST>";
+
+ $functions = array('AMOUNT'=>'Currency','ACCOUNT_ID'=>'getAccount','DUE_DATE'=>'ProperDate','SYEAR'=>'DispYear','SCHOOL'=>'GetSchool','GRADE'=>'GetGrade');
+ $RET = DBGet(DBQuery('SELECT DISTINCT sb.ID,sb.TITLE,sb.AMOUNT,
+ to_char(sb.DUE_DATE,\'dd-MON-yy\') as DUE_DATE,sb.SYEAR,sb.SCHOOL,sb.GRADE,sb.ACCOUNT_ID
+ FROM STU_BILLING_DEFINED_FEES sb ORDER BY sb.TITLE'),$functions);
+
+ $columns = array('TITLE'=>'Title','AMOUNT'=>'Amount','ACCOUNT_ID'=>'Account','DUE_DATE'=>'Due Date','SYEAR'=>'School Year','SCHOOL'=>'School','GRADE'=>'Grade');
+ $link[add][html] = array('TITLE'=>makeTitleInput(),'AMOUNT'=>makeAmountInput(),'ACCOUNT_ID'=>makeAccountInput(),'DUE_DATE'=>makeDateInput(),'SYEAR'=>makeSyearInput(),'SCHOOL'=>makeSchoolInput(),'GRADE'=>makeGradeInput(),'remove'=>button('add'));
+ $link[remove] = array('link'=>"Modules.php?modname=$_REQUEST[modname]&modfunc=delete",
+ 'variables'=>array('id'=>'ID'));
+ $_REQUEST[modfunc] = 'list';
+ unset($_REQUEST[modfunc]);
+ ListOutput($RET,$columns,'Pre-Defined Fee','Pre-Defined Fees',$link);
+ echo '<center><input type=submit class=btn_medium value=Save></center>';
+}
+// -- END LIST
+
+function makeTitleInput($value='')
+{
+ return "<INPUT type=text name=title maxlength=30 size=10 value='$value'>";
+}
+
+function makeAmountInput($value='')
+{
+ return "<INPUT type=text name=amount maxlength=10 size=6 ".(($value)?"value=".Currency($value):'').'>';
+}
+
+function makeDateInput($value='00-000-00')
+{
+ return PrepareDate("",$value);
+}
+
+function makeYesInput($value='')
+{
+ if($value=='Y')
+ return 'Yes';
+ else
+ return 'No';
+}
+
+function makeSchoolInput($value='')
+{
+
+ $QI = DBQuery("SELECT NAME,SCHOOL,SCHOOL_TYPE FROM SCHOOLS WHERE SCHOOL > '00' AND DISPLAY_FORMS='Y' ORDER BY ".db_case(array("SCHOOL","'ALL'","'2'","'1'")).",".db_case(array("SCHOOL_TYPE","'ELM'","'1'","'MID'","'2'","'HIGH'","'3'","'4'")).",NAME ");
+ $RET = DBReturn($QI,$count);
+ $return .= "<SELECT name=school>";
+ $return .= "<OPTION value=''>Not Specified</OPTION>";
+ foreach($RET as $key=>$school)
+ {
+ $return .= "<OPTION value=$school[SCHOOL]";
+ if($school[SCHOOL]==$value)
+ $return .= " SELECTED";
+ $return .= ">$school[NAME]</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function makeSyearInput($value='')
+{
+
+ $syear = '20'.GetSysYear();
+
+ if($value<50)
+ $default = '20'.$value;
+ else
+ $default = '19'.$value;
+
+ if(!$value)
+ $default = $syear;
+ $return .= "<SELECT name=syear>";
+ for($i=$syear-3;$i<$syear+3;$i++)
+ {
+ $year = substr($i,2);
+ $return .= "<OPTION value=$year".(($default==$i)?' SELECTED':'').">".DispYear($year)."</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function makeGradeInput($value='')
+{
+ $QI = DBQuery("SELECT DISTINCT GRADE FROM SCHOOL_GRADELEVELS WHERE DISPLAY = '1' ORDER BY GRADE");
+ $RET = DBReturnNoWord($QI,$count);
+ $return .= "<SELECT name=grade>";
+ $return .= "<OPTION value=''>N/A</OPTION>";
+ foreach($RET as $grade)
+ {
+ $return .= "<OPTION value=$grade[GRADE]";
+ if($grade[GRADE]==$value)
+ $return .= " SELECTED";
+ $return .= ">$grade[GRADE]</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function makeAccountInput($value='')
+{
+ $QI = DBQuery("SELECT TITLE,ID FROM STU_BILLING_ACCOUNTS WHERE SYEAR='".GetSysYear()."' ORDER BY TITLE");
+ $RET = DBReturnNoWord($QI,$count);
+ $return .= "<SELECT name=account_id>";
+ foreach($RET as $account)
+ {
+ $return .= "<OPTION value=$account[ID]";
+ if($account[ID]==$value)
+ $return .= " SELECTED";
+ $return .= ">$account[TITLE]</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function getAccount($account_id)
+{ global $_OSIS;
+
+ if(!$_OSIS['GetAccount'])
+ {
+ $QI=DBQuery("SELECT ID,TITLE FROM STU_BILLING_ACCOUNTS");
+ $_OSIS['GetAccount'] = DBGet($QI,array(),array('ID'));
+ }
+
+ return $_OSIS['GetAccount'][$account_id][1]['TITLE'];
+}
+?>
\ No newline at end of file
Property changes on: trunk/lang/es_mx_utf8/Billing/Define.php
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/lang/es_mx_utf8/Billing/Invoices.php
===================================================================
--- trunk/lang/es_mx_utf8/Billing/Invoices.php (rev 0)
+++ trunk/lang/es_mx_utf8/Billing/Invoices.php 2010-04-14 18:09:01 UTC (rev 421)
@@ -0,0 +1,425 @@
+<?php
+
+if($_REQUEST[modfunc]=='')
+{
+ if(defined('PRINT_LETTER'))
+ $title = 'Student Billing Notifications';
+ else
+ $title = 'Student Billing Invoices';
+
+ DrawHeader($title);
+ echo '<BR>';
+ PopTable('header','Search');
+ echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=list method=POST>";
+ echo '<TABLE>';
+ Warehouse('searchstu');
+ echo '<TR><TD>Balance Between</TD><TD><INPUT type=text name=balance_low> & <INPUT type=text name=balance_high></TD></TR>';
+ echo '<TR><TD>Balance Not Zero</TD><TD><INPUT type=checkbox name=not_zero value=Y></TD></TR>';
+ echo '<TR><TD>Invoice</TD><TD>';
+ echo '<SELECT name=editor>
+ <OPTION value=both>Student Billing & Lunch</OPTION>
+ <OPTION value=stubilling SELECTED>Student Billing</OPTION>
+ <OPTION value=lunch>Lunch</OPTION>
+ </SELECT>';
+ echo '</TD></TR>';
+ PrepareSchool(SessionSchool(),'',SessionCurSchool());
+ Warehouse('searchgrade');
+ Warehouse('searchyear');
+
+ if(defined('PRINT_LETTER'))
+ {
+ echo '<TR><TD>Letter Text</TD><TD>';
+ echo '<TEXTAREA name=letter rows=10 cols=50>
+
+Dear __PARENTS__,
+ Your child, __STUDENT__ (__STUDENT_ID__) now has a balance of __BALANCE__. It should be refilled as soon as possible to avoid running out.
+
+--Administration
+ </TEXTAREA>';
+ echo '</TD></TR>';
+ }
+ echo '<TR><TD colspan=2 align=center>';
+ Buttons('Find','Reset');
+ echo '</TD></TR>';
+ echo '</TABLE>';
+ echo '</FORM>';
+ PopTable('footer');
+}
+
+if($_REQUEST['modfunc']=='list')
+{
+ $_REQUEST['balance_low'] = ereg_replace('[^0-9]','',$_REQUEST['balance_low']);
+ $_REQUEST['balance_high'] = ereg_replace('[^0-9]','',$_REQUEST['balance_high']);
+
+ if($_REQUEST['balance_low']>$_REQUEST['balance_high'])
+ {
+ $tmp = $_REQUEST['balance_high'];
+ $_REQUEST['balance_high'] = $_REQUEST['balance_low'];
+ $_REQUEST['balance_low'] = $tmp;
+ }
+}
+
+if($_REQUEST[modfunc]=='list' && ($_REQUEST[editor]=='stubilling' || $_REQUEST[editor]=='lunch'))
+{
+ if($_REQUEST[editor]=='stubilling')
+ {
+ $debits_table = 'STU_BILLING_FEES';
+ $credits_cond = " (LUNCH_PAYMENT!='Y' OR LUNCH_PAYMENT IS NULL) ";
+ $letter_title = 'Student Billing Notification';
+ }
+ else
+ {
+ $debits_table = 'STU_BILLING_ACT_LUNCH';
+ $credits_cond = " LUNCH_PAYMENT='Y' ";
+ $letter_title = 'Lunch Billing Notification';
+ }
+ $sql = "select school,ADDRESS1,zipcode,area_code,telephone,city,state from schools";
+ $address_RET = DBGet(DBQuery($sql),array(),array('SCHOOL'));
+ foreach($address_RET as $school=>$address)
+ {
+ $address = $address[1];
+ $school_address[$school] = '<font size=+1>'.GetTitle() . '</font><BR>' . $address['ADDRESS1'] . '<BR>' . $address['CITY'].', '.$address['STATE'].' '.$address['ZIPCODE'].'<BR>('.$address['AREA_CODE'].') '.substr($address['TELEPHONE'],0,3).'-'.substr($address['TELEPHONE'],3);
+ }
+
+
+ $sql = "SELECT ssm.STUDENT_ID,ssm.SCHOOL,s.FIRST_NAME,s.LAST_NAME,s.MIDDLE_NAME,rm.PERSON_ID ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= ",(SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.") as BALANCE ";
+ $sql .= "FROM STU_SCHOOL_MEETS ssm,STUDENTS s,RELATIONS_MEETS rm
+ WHERE
+ ssm.SYEAR='$_REQUEST[year]' AND s.STUDENT_ID=ssm.STUDENT_ID
+ AND rm.STUDENT_ID = ssm.STUDENT_ID AND rm.CUSTODY = 'Y'
+ ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ BETWEEN '$_REQUEST[balance_low]' AND '$_REQUEST[balance_high]' ";
+ if($_REQUEST[not_zero]=='Y')
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ != '0' ";
+ if($_REQUEST[sch])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND ssm.STUDENT_ID='$_REQUEST[stuid]' ";
+ if($_REQUEST[first])
+ $sql .= "AND s.FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[last])
+ $sql .= "AND s.LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ $sql .= "ORDER BY s.LAST_NAME,s.FIRST_NAME,s.MIDDLE_NAME ";
+
+ $QI = DBQuery($sql);
+ $RET = DBGet($QI,array('LAST_NAME'=>'GetCapWords','FIRST_NAME'=>'GetCapWords'),array('STUDENT_ID'));
+
+ if(count($RET))
+ {
+ $handle=PDFStart("Invoices.pdf", "Click Here to Download the Invoices","--webpage --quiet -t pdf12 --jpeg --no-links --portrait --footer t --header . --left 0.5in ");
+ $_REQUEST['PDF'] = true;
+
+ $f_year = $_REQUEST[f_year] = $_REQUEST['year'];
+ $modfunc = 'detail';
+
+ foreach($RET as $student_id=>$student_records)
+ {
+ unset($addresses);
+ foreach($student_records as $person)
+ {
+ $addr = GetAddrPer($person['PERSON_ID']);
+ $addr = $addr[1];
+ $parents = $addr['FIRST_NAME'].' '.$addr['LAST_NAME'];
+ if($addresses[$addr['ADDRESS_ID']]['PARENTS'])
+ $parents = $addresses[$addr['ADDRESS_ID']]['PARENTS'] . ' & ' . $parents;
+ if(is_array($addr))
+ $addresses[$addr['ADDRESS_ID']] = $addr + array('PARENTS'=>str_replace(' ',' ',$parents));
+ }
+
+ if(count($addresses))
+ {
+ foreach($addresses as $addr)
+ {
+ if(defined('PRINT_LETTER'))
+ printLetter($student_records[1],$letter_title);
+
+ echo '<CENTER>';
+ echo '<TABLE border=1 width=100%><TR><TD width=100% align=center><font size=+1><b>Student Financial Account<b></font></TD></TR></TABLE>';
+ echo '<B>'.$school_address[$student_records[1]['SCHOOL']].'</B>';
+ echo '</CENTER>';
+
+ echo '<TABLE><TR><TD width=35> </TD><TD nowrap><BR><BR><BR>';
+ echo $addr['PARENTS'].'<BR>';
+ echo $addr['HOUSE_NO']." ".$addr['LETTER']." ".$addr['DIRECTION']." ".$addr['STREET']." ";
+ if($addr['APT']){ echo "Apt. ".$addr['APT'];}
+ echo '<BR>'.$addr['CITY'].", ".$addr['STATE']." ".$addr['ZIPCODE'];
+ if($addr['PLUS4'])
+ echo '-'.$addr['PLUS4'];
+ echo '</TD></TR></TABLE><BR>';
+
+ echo '<TABLE width=100%><TR><TD align=left width=50%><b>'.$student_records[1][FIRST_NAME].' '.$student_records[1][LAST_NAME].' - '.$student_records[1][STUDENT_ID].'</b></TD>';
+ echo '<TD align=right>'.ProperDate(DBDate()).'</TD></TR></TABLE>';
+ $f_stuid = $_REQUEST[f_stuid] = $student_records[1][STUDENT_ID];
+ $f_school = $_REQUEST[f_school] = $student_records[1][SCHOOL];
+ include('modules/StudentInfo/StuBilling.inc.php');
+ echo '<!-- NEW PAGE -->';
+ }
+ }
+ }
+
+ PDFStop($handle);
+ }
+ else
+ echo '<CENTER><H4>No Students were Found.</H4></CENTER>';
+}
+elseif($_REQUEST[modfunc]=='list' && $_REQUEST[editor]=='both')
+{
+ $debits_table = 'STU_BILLING_FEES';
+ $credits_cond = " (LUNCH_PAYMENT!='Y' OR LUNCH_PAYMENT IS NULL) ";
+ $stubilling_title = '<B>Student Fees and Payments</B><BR>School Year: '.DispYear($_REQUEST[year]).'<BR>as of '.ProperDate(DBDate());
+
+ $sql = "SELECT ssm.STUDENT_ID,ssm.SCHOOL,s.FIRST_NAME,s.LAST_NAME,s.MIDDLE_NAME ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= ",(SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.") as BALANCE ";
+ $sql .= "FROM STU_SCHOOL_MEETS ssm,STUDENTS s
+ WHERE ssm.SYEAR='$_REQUEST[year]' AND s.STUDENT_ID=ssm.STUDENT_ID ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ BETWEEN '$_REQUEST[balance_low]' AND '$_REQUEST[balance_high]' ";
+ if($_REQUEST[not_zero]=='Y')
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ != '0' ";
+ if($_REQUEST[sch])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND ssm.STUDENT_ID='$_REQUEST[stuid]' ";
+ if($_REQUEST[first])
+ $sql .= "AND s.FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[last])
+ $sql .= "AND s.LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ $sql .= "ORDER BY s.LAST_NAME,s.FIRST_NAME,s.MIDDLE_NAME ";
+
+ $QI = DBQuery($sql);
+ $stubilling_RET = DBGet($QI,array('LAST_NAME'=>'GetCapWords','FIRST_NAME'=>'GetCapWords'));
+
+ $debits_table = 'STU_BILLING_ACT_LUNCH';
+ $credits_cond = " LUNCH_PAYMENT='Y' ";
+ $lunch_title = '<B>Lunch Purchases and Payments</B><BR>School Year: '.DispYear($_REQUEST[year]).'<BR>as of '.ProperDate(DBDate());
+
+ $sql = "SELECT ssm.STUDENT_ID,ssm.SCHOOL,s.FIRST_NAME,s.LAST_NAME,s.MIDDLE_NAME ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= ",(SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.") as BALANCE ";
+ $sql .= "FROM STU_SCHOOL_MEETS ssm,STUDENTS s
+ WHERE ssm.SYEAR='$_REQUEST[year]' AND s.STUDENT_ID=ssm.STUDENT_ID ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ BETWEEN '$_REQUEST[balance_low]' AND '$_REQUEST[balance_high]' ";
+ if($_REQUEST[not_zero]=='Y')
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ != '0' ";
+ if($_REQUEST[sch])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND ssm.STUDENT_ID='$_REQUEST[stuid]' ";
+ if($_REQUEST[first])
+ $sql .= "AND s.FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[last])
+ $sql .= "AND s.LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ $sql .= "ORDER BY s.LAST_NAME,s.FIRST_NAME,s.MIDDLE_NAME ";
+
+ $QI = DBQuery($sql);
+ $lunch_RET = DBGet($QI,array('LAST_NAME'=>'GetCapWords','FIRST_NAME'=>'GetCapWords'),array('STUDENT_ID'));
+
+ if(count($stubilling_RET) || count($lunch_RET))
+ {
+ $handle=PDFStart("Invoices.pdf", "Click Here to Download the Invoices","--webpage --quiet -t pdf12 --jpeg --no-links --portrait --footer t --header . --left 0.5in ");
+
+ $f_year = $_REQUEST[f_year] = $_REQUEST['year'];
+ $modfunc = 'detail';
+
+ if(count($stubilling_RET))
+ {
+ foreach($stubilling_RET as $student)
+ {
+ $_REQUEST[editor] = 'stubilling';
+ if(defined('PRINT_LETTER'))
+ printLetter($student,'Student Billing Notification');
+ echo '<H4>'.$student[FIRST_NAME].' '.$student[LAST_NAME].' - '.$student[STUDENT_ID].'</H4>';
+ echo $stubilling_title;
+ $f_stuid = $_REQUEST[f_stuid] = $student[STUDENT_ID];
+ $f_school = $_REQUEST[f_school] = $student[SCHOOL];
+ include('modules/StudentInfo/StuBilling.inc.php');
+ echo '<!-- NEW PAGE -->';
+
+ if($lunch_RET[$student[STUDENT_ID]])
+ {
+ if(defined('PRINT_LETTER'))
+ printLetter($lunch_RET[$student[STUDENT_ID]][1],'Lunch Billing Notification');
+
+ $_REQUEST[editor] = 'lunch';
+ echo '<H4>'.$lunch_RET[$student[STUDENT_ID]][1][FIRST_NAME].' '.$lunch_RET[$student[STUDENT_ID]][1][LAST_NAME].' - '.$lunch_RET[$student[STUDENT_ID]][1][STUDENT_ID].'</H4>';
+ echo $lunch_title;
+ $f_stuid = $_REQUEST[f_stuid] = $lunch_RET[$student[STUDENT_ID]][1][STUDENT_ID];
+ $f_school = $_REQUEST[f_school] = $lunch_RET[$student[STUDENT_ID]][1][SCHOOL];
+ include('modules/StudentInfo/StuBilling.inc.php');
+ echo '<!-- NEW PAGE -->';
+ unset($lunch_RET[$student[STUDENT_ID]]);
+ }
+ }
+ }
+
+ if(count($lunch_RET))
+ {
+ foreach($lunch_RET as $student_id=>$student)
+ {
+ if(defined('PRINT_LETTER'))
+ printLetter($student[1],'Lunch Billing Notification');
+
+ $student = $student[1];
+ $_REQUEST[editor] = 'lunch';
+ echo '<H4>'.$student[FIRST_NAME].' '.$student[LAST_NAME].' - '.$student[STUDENT_ID].'</H4>';
+ echo $lunch_title;
+ $f_stuid = $_REQUEST[f_stuid] = $student[STUDENT_ID];
+ $f_school = $_REQUEST[f_school] = $student[SCHOOL];
+ include('modules/StudentInfo/StuBilling.inc.php');
+ echo '<!-- NEW PAGE -->';
+ }
+ }
+ PDFStop($handle);
+ }
+ else
+ echo '<CENTER><H4>No Students were Found.</H4></CENTER>';
+}
+elseif($_REQUEST[modfunc]=='list' && $_REQUEST[editor]=='none')
+{
+ $debits_table = 'STU_BILLING_FEES';
+ $credits_cond = " (LUNCH_PAYMENT!='Y' OR LUNCH_PAYMENT IS NULL) ";
+ $stubilling_title = '<B>Student Fees and Payments</B><BR>School Year: '.DispYear($_REQUEST[year]).'<BR>as of '.ProperDate(DBDate());
+
+ $sql = "SELECT ssm.STUDENT_ID,ssm.SCHOOL,s.FIRST_NAME,s.LAST_NAME,s.MIDDLE_NAME ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= ",(SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.") as BALANCE ";
+ $sql .= "FROM STU_SCHOOL_MEETS ssm,STUDENTS s
+ WHERE ssm.SYEAR='$_REQUEST[year]' AND s.STUDENT_ID=ssm.STUDENT_ID ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ BETWEEN '$_REQUEST[balance_low]' AND '$_REQUEST[balance_high]' ";
+ if($_REQUEST[not_zero]=='Y')
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ != '0' ";
+ if($_REQUEST[sch])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND ssm.STUDENT_ID='$_REQUEST[stuid]' ";
+ if($_REQUEST[first])
+ $sql .= "AND s.FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[last])
+ $sql .= "AND s.LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ $sql .= "ORDER BY s.LAST_NAME,s.FIRST_NAME,s.MIDDLE_NAME ";
+
+ $QI = DBQuery($sql);
+ $stubilling_RET = DBGet($QI,array('FIRST_NAME'=>'GetCapWords','LAST_NAME'=>'GetCapWords'));
+
+ $debits_table = 'STU_BILLING_ACT_LUNCH';
+ $credits_cond = " LUNCH_PAYMENT='Y' ";
+ $lunch_title = '<B>Lunch Purchases and Payments</B><BR>School Year: '.DispYear($_REQUEST[year]).'<BR>as of '.ProperDate(DBDate());
+
+ $sql = "SELECT ssm.STUDENT_ID,ssm.SCHOOL,s.FIRST_NAME,s.LAST_NAME,s.MIDDLE_NAME ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= ",(SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.") as BALANCE ";
+ $sql .= "FROM STU_SCHOOL_MEETS ssm,STUDENTS s
+ WHERE ssm.SYEAR='$_REQUEST[year]' AND s.STUDENT_ID=ssm.STUDENT_ID ";
+ if(($_REQUEST[balance_low] || $_REQUEST[balance_low]==='0') && ($_REQUEST[balance_high] || $_REQUEST[balance_high]==='0'))
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ BETWEEN '$_REQUEST[balance_low]' AND '$_REQUEST[balance_high]' ";
+ if($_REQUEST[not_zero]=='Y')
+ $sql .= "AND (SELECT COALESCE((SELECT sum(AMOUNT) FROM STU_BILLING_ACT WHERE STUDENT_ID=ssm.STUDENT_ID AND $credits_cond),0) -
+ COALESCE((SELECT sum(AMOUNT) FROM $debits_table WHERE STUDENT_ID=ssm.STUDENT_ID),0) ".FROM_DUAL.")
+ != '0' ";
+ if($_REQUEST[sch])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND ssm.STUDENT_ID='$_REQUEST[stuid]' ";
+ if($_REQUEST[first])
+ $sql .= "AND s.FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[last])
+ $sql .= "AND s.LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ $sql .= "ORDER BY s.LAST_NAME,s.FIRST_NAME,s.MIDDLE_NAME ";
+
+ $QI = DBQuery($sql);
+ $lunch_RET = DBGet($QI,array('FIRST_NAME'=>'GetCapWords','LAST_NAME'=>'GetCapWords'),array('STUDENT_ID'));
+
+ if(count($stubilling_RET) || count($lunch_RET))
+ {
+ $handle=PDFStart("Letters.pdf", "Click Here to Download the Letters","--webpage --quiet -t pdf12 --jpeg --no-links --portrait --footer t --header . --left 0.5in ");
+
+ if(count($stubilling_RET))
+ {
+ foreach($stubilling_RET as $student)
+ {
+ if(defined('PRINT_LETTER'))
+ printLetter($student,'Student Billing Notification');
+
+ if($lunch_RET[$student[STUDENT_ID]])
+ {
+ if(defined('PRINT_LETTER'))
+ printLetter($lunch_RET[$student[STUDENT_ID]][1],'Lunch Billing Notification');
+ }
+ }
+ }
+
+ if(count($lunch_RET))
+ {
+ foreach($lunch_RET as $student_id=>$student)
+ {
+ if(defined('PRINT_LETTER'))
+ {
+ $student[1][BALANCE] = $student[1][LUNCH_BALANCE];
+ printLetter($student[1],'Lunch Billing Notification');
+ }
+ }
+ }
+ PDFStop($handle);
+ }
+ else
+ echo '<CENTER><H4>No Students were Found.</H4></CENTER>';
+}
+
+function printLetter($student,$title)
+{ global $LETTER;
+
+ echo '<B>'.$title.'</B><BR>';
+ $letter = $_REQUEST[letter];
+ if($LETTER[student])
+ $letter = str_replace('__STUDENT__',$student[FIRST_NAME].' '.$student[LAST_NAME],$letter);
+ if($LETTER[student_id])
+ $letter = str_replace('__STUDENT_ID__',$student[STUDENT_ID],$letter);
+ if($LETTER[parents])
+ $letter = str_replace('__PARENTS__',GetRelNames($student[STUDENT_ID]),$letter);
+ if($LETTER[balance])
+ $letter = str_replace('__BALANCE__',Currency($student[BALANCE]),$letter);
+
+ echo $letter;
+ echo '<!-- NEW PAGE -->';
+}
+
+?>
\ No newline at end of file
Property changes on: trunk/lang/es_mx_utf8/Billing/Invoices.php
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/lang/es_mx_utf8/Billing/Letters.php
===================================================================
--- trunk/lang/es_mx_utf8/Billing/Letters.php (rev 0)
+++ trunk/lang/es_mx_utf8/Billing/Letters.php 2010-04-14 18:09:01 UTC (rev 421)
@@ -0,0 +1,22 @@
+<?php
+define('PRINT_LETTER',true);
+
+if($_REQUEST[modfunc]=='list')
+{
+ $_REQUEST[letter] = str_replace("\n",'<BR>',$_REQUEST[letter]);
+ //$_REQUEST[letter] = str_replace("\r",'<BR>',$_REQUEST[letter]);
+ $_REQUEST[letter] = str_replace("\t",' ',$_REQUEST[letter]);
+
+ if(strpos($_REQUEST[letter],'__STUDENT__')!==false)
+ $LETTER[student] = true;
+ if(strpos($_REQUEST[letter],'__STUDENT_ID__')!==false)
+ $LETTER[student_id] = true;
+ if(strpos($_REQUEST[letter],'__PARENTS__')!==false)
+ $LETTER[parents] = true;
+ if(strpos($_REQUEST[letter],'__BALANCE__')!==false)
+ $LETTER[balance] = true;
+}
+
+include('modules/StuBilling/Invoices.php');
+
+?>
\ No newline at end of file
Property changes on: trunk/lang/es_mx_utf8/Billing/Letters.php
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/lang/es_mx_utf8/Billing/LunchAdmin.php
===================================================================
--- trunk/lang/es_mx_utf8/Billing/LunchAdmin.php (rev 0)
+++ trunk/lang/es_mx_utf8/Billing/LunchAdmin.php 2010-04-14 18:09:01 UTC (rev 421)
@@ -0,0 +1,246 @@
+<?php
+// UPDATE AND ADD ITEMS TO THE LUNCH MENU
+if($_REQUEST['modfunc']=='update')
+{
+ DBQuery("UPDATE LUNCH_CONFIG SET NEGATIVE_BALANCE='".str_replace('$','',$_REQUEST[negative_balance])."',WARNING_BALANCE='".str_replace('$','',$_REQUEST[warning_balance])."' WHERE SCHOOL='".UserSchool()."'");
+
+ if(count($_REQUEST[title]))
+ {
+ foreach($_REQUEST[title] as $id=>$title)
+ DBQuery("UPDATE LUNCH_MENU SET TITLE='$title' WHERE ID='$id'");
+ }
+ if(count($_REQUEST[price]))
+ {
+ foreach($_REQUEST[price] as $id=>$price)
+ {
+ $price = str_replace('$','',$price);
+ DBQuery("UPDATE LUNCH_MENU SET PRICE='$price' WHERE ID='$id'");
+ }
+ }
+ if(count($_REQUEST[fprice]))
+ {
+ foreach($_REQUEST[fprice] as $id=>$price)
+ {
+ $price = str_replace('$','',$price);
+ DBQuery("UPDATE LUNCH_MENU SET FREE_PRICE='$price' WHERE ID='$id'");
+ }
+ }
+ if(count($_REQUEST[rprice]))
+ {
+ foreach($_REQUEST[rprice] as $id=>$price)
+ {
+ $price = str_replace('$','',$price);
+ DBQuery("UPDATE LUNCH_MENU SET REDUCED_PRICE='$price' WHERE ID='$id'");
+ }
+ }
+
+ if(count($_REQUEST[button]))
+ {
+ foreach($_REQUEST[button] as $id=>$button)
+ {
+ DBQuery("UPDATE LUNCH_MENU SET BUTTON='$button' WHERE ID='$id'");
+ }
+ }
+
+ if(count($_REQUEST[new_title]))
+ {
+ foreach($_REQUEST[new_title] as $category_id=>$title)
+ {
+ if($title)
+ {
+ $price = str_replace('$','',$_REQUEST[new_price][$category_id]);
+ $fprice = str_replace('$','',$_REQUEST[new_fprice][$category_id]);
+ $rprice = str_replace('$','',$_REQUEST[new_rprice][$category_id]);
+
+ DBQuery("INSERT INTO LUNCH_MENU (SCHOOL,ID,TITLE,PRICE,FREE_PRICE,REDUCED_PRICE,CATEGORY_ID,BUTTON) values('".UserSchool()."',".db_seq_nextval('LUNCH_MENU_SEQ').",'$title','$price','$fprice','$rprice','$category_id','".$_REQUEST[new_button][$category_id]."')");
+ unset($_REQUEST[new_price][$category_id]);
+ }
+ }
+ }
+
+ if($_REQUEST[category_title])
+ {
+ foreach($_REQUEST[category_title] as $category_id=>$title)
+ DBQuery("UPDATE LUNCH_CATEGORIES SET TITLE='$title' WHERE CATEGORY_ID='$category_id'");
+ }
+
+ if($_REQUEST[new_category_title] && $_REQUEST[new_category_title]!='New Category')
+ DBQuery("INSERT INTO LUNCH_CATEGORIES (SCHOOL,CATEGORY_ID,TITLE) values('".UserSchool()."',".db_seq_nextval('LUNCH_CATEGORY_SEQ').",'$_REQUEST[new_category_title]')");
+
+ unset($_REQUEST['modfunc']);
+}
+
+// DELETE AN ITEM
+if($_REQUEST['modfunc']=='delete')
+{
+ if(DeletePrompt('lunch item'))
+ {
+ if($_REQUEST[id])
+ DBQuery("DELETE FROM LUNCH_MENU WHERE ID='$_REQUEST[id]'");
+ unset($_REQUEST['modfunc']);
+ }
+}
+
+if($_REQUEST['modfunc']=='delete_category')
+{
+ if(DeletePrompt('category'))
+ {
+ DBQuery("DELETE FROM LUNCH_CATEGORIES WHERE CATEGORY_ID='$_REQUEST[id]'");
+ DBQuery("DELETE FROM LUNCH_MENU WHERE CATEGORY_ID='$_REQUEST[id]'");
+ unset($_REQUEST['modfunc']);
+ }
+}
+
+
+// DISPLAY THE LUNCH MENU
+if(!isset($_REQUEST['modfunc']))
+{
+ echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=update METHOD=POST>";
+ DrawHeader(ProgramTitle());
+ DrawHeader('Click on any title or price to modify the menu.',SubmitButton('Save','','class=btn_medium'));
+
+ $QI = DBQuery("SELECT NEGATIVE_BALANCE,WARNING_BALANCE FROM LUNCH_CONFIG WHERE SCHOOL='".UserSchool()."'");
+ $config = DBGet($QI);
+ $config = $config[1];
+
+ echo '<CENTER><TABLE><TR><TD><b><small>Lowest Allowed Balance</small></B></TD><TD><INPUT type=text name=negative_balance value='.Currency($config[NEGATIVE_BALANCE]).' size=8> </TD><TD><b><small>Warning Balance</small></B></TD><TD><INPUT type=text name=warning_balance value='.Currency($config[WARNING_BALANCE]).' size=8></TD></TR></TABLE><BR>';
+
+ echo '<TABLE><TR><TD align=center>';
+ $QI = DBQuery("SELECT CATEGORY_ID,TITLE FROM LUNCH_CATEGORIES WHERE SCHOOL='".UserSchool()."' ORDER BY CATEGORY_ID");
+ $categories_RET = DBGet($QI,array(),array('CATEGORY_ID'));
+
+ $QI = DBQuery("SELECT ID,CATEGORY_ID,TITLE,PRICE,FREE_PRICE,REDUCED_PRICE,BUTTON FROM LUNCH_MENU WHERE SCHOOL='".UserSchool()."' ORDER BY CATEGORY_ID");
+ $foods_RET = DBGet($QI,array('TITLE'=>'makeTitleInput','PRICE'=>'makePriceInput','FREE_PRICE'=>'makeFPriceInput','REDUCED_PRICE'=>'makeRPriceInput','BUTTON'=>'makeButtonInput'),array('CATEGORY_ID'));
+
+ if(count($foods_RET))
+ {
+ echo '<TABLE border=0><TR>';
+ foreach($foods_RET as $category_id => $food)
+ {
+ echo '<TD valign=top>';
+ echo '<center><table><tr><td>'.
+ "<A HREF=Modules.php?modname=$_REQUEST[modname]&modfunc=delete_category&id=$category_id&user_school=".UserSchool().">
+ <IMG SRC=assets/remove_button.gif></A></td>
+ <td><b>".makeCategoryInput($categories_RET[$category_id][1]['TITLE'],$category_id).'</b></td></tr></table></center>';
+ $link['remove']['link'] = "Modules.php?modname=$_REQUEST[modname]&modfunc=delete&user_school=".UserSchool();
+ $link['remove']['variables'] = array('id'=>'ID');
+ $link['add']['html'] = array('TITLE'=>makeTitleInput('',$category_id),'PRICE'=>makePriceInput('',$category_id),'FREE_PRICE'=>makeFPriceInput('',$category_id),'REDUCED_PRICE'=>makeRPriceInput('',$category_id),'BUTTON'=>makeButtonInput('',$category_id));
+ ListOutput($food,array('TITLE'=>'Name','BUTTON'=>'Key','PRICE'=>'Price','REDUCED_PRICE'=>'Reduced Price','FREE_PRICE'=>'Free Price'),'','',$link,array(),array('save'=>false));
+ echo '</TD>';
+ }
+ }
+
+ if(count($categories_RET))
+ {
+ foreach($categories_RET as $category_id=>$value)
+ {
+ if(!count($foods_RET[$category_id]))
+ {
+ echo '<TD valign=top>';
+ echo '<center><table><tr><td>'.
+ "<A HREF=Modules.php?modname=$_REQUEST[modname]&modfunc=delete_category&id=$category_id&user_school=".UserSchool().">
+ <IMG SRC=assets/remove_button.gif></A></td>
+ <td><b>".makeCategoryInput($categories_RET[$category_id][1]['TITLE'],$category_id).'</b></td></tr></table></center>';
+ $link[add][html] = array('TITLE'=>makeTitleInput('',$category_id),'PRICE'=>makePriceInput('',$category_id),'FREE_PRICE'=>makeFPriceInput('',$category_id),'REDUCED_PRICE'=>makeRPriceInput('',$category_id),'BUTTON'=>makeButtonInput('',$category_id));
+ ListOutput(array(),array('TITLE'=>'Name','BUTTON'=>'Key','PRICE'=>'Price','REDUCED_PRICE'=>'Reduced Price','FREE_PRICE'=>'Free Price'),'','',$link,array(),array('save'=>false));
+ echo '</TD>';
+ }
+ }
+ }
+
+ echo '<TD valign=top>';
+ echo '<table><TR><TD><IMG SRC=assets/add_button.gif></TD><TD><INPUT type=text size=20 name=new_category_title value="New Category"></TD></TR></TABLE>';
+ echo '</TD>';
+
+ echo '</TR>';
+ echo '<TR><TD colspan='.(count($categories_RET)*2 + 1).' align=center>';
+ echo '<INPUT type=submit value="Save the Menu">';
+ echo '</TD></TR>';
+ echo '</TABLE>';
+ echo '</FORM>';
+
+ echo "</TD></TR></TABLE></CENTER>";
+}
+
+
+function makeCategoryInput($value,$category='')
+{
+ return "<DIV id='c$category'><div onclick='javascript:addHTML(\"<INPUT type=text name=category_title[$category] value=\\\"$value\\\" size=10>\",\"c$category\",true)'>$value</div></DIV>";
+}
+
+function makeTitleInput($value='',$category='')
+{ global $THIS_RET;
+
+ if($value!='')
+ return "<DIV id='t$THIS_RET[ID]'><div onclick='javascript:addHTML(\"<INPUT type=text name=title[$THIS_RET[ID]] value=\\\"$value\\\" size=10>\",\"t$THIS_RET[ID]\",true)'>$value</div></DIV>";
+ elseif($THIS_RET[PRICE])
+ return "<INPUT TYPE=TEXT NAME=title[$THIS_RET[ID]] size=10>";
+ else
+ return "<INPUT TYPE=TEXT NAME=new_title[$category] size=10>";
+ //return "<INPUT TYPE=TEXT NAME=title[$THIS_RET[ID]] VALUE=$value size=10>";
+}
+
+function makePriceInput($value='',$category='')
+{ global $THIS_RET;
+
+ if($value!='')
+ {
+ $value = Currency($value);
+ return "<DIV id='p$THIS_RET[ID]'><div onclick='javascript:addHTML(\"<INPUT type=text name=price[$THIS_RET[ID]] value=$value size=5>\",\"p$THIS_RET[ID]\",true)'>$value</div></DIV>";
+ }
+ elseif($THIS_RET[TITLE])
+ {
+ return "<INPUT TYPE=TEXT NAME=price[$THIS_RET[ID]] size=5>";
+ }
+ else
+ return "<INPUT TYPE=TEXT NAME=new_price[$category] size=5>";
+ //return "<INPUT TYPE=TEXT NAME=price[$THIS_RET[ID]] VALUE=$value size=5>";
+}
+
+function makeFPriceInput($value='',$category='')
+{ global $THIS_RET;
+
+ if($value!='')
+ {
+ $value = Currency($value);
+ return "<DIV id='fp$THIS_RET[ID]'><div onclick='javascript:addHTML(\"<INPUT type=text name=fprice[$THIS_RET[ID]] value=$value size=5>\",\"fp$THIS_RET[ID]\",true)'>$value</div></DIV>";
+ }
+ elseif($THIS_RET[TITLE])
+ {
+ return "<INPUT TYPE=TEXT NAME=fprice[$THIS_RET[ID]] size=5>";
+ }
+ else
+ return "<INPUT TYPE=TEXT NAME=new_fprice[$category] size=5>";
+ //return "<INPUT TYPE=TEXT NAME=fprice[$THIS_RET[ID]] VALUE=$value size=5>";
+}
+
+function makeRPriceInput($value='',$category='')
+{ global $THIS_RET;
+
+ if($value!='')
+ {
+ $value = Currency($value);
+ return "<DIV id='rp$THIS_RET[ID]'><div onclick='javascript:addHTML(\"<INPUT type=text name=rprice[$THIS_RET[ID]] value=$value size=5>\",\"rp$THIS_RET[ID]\",true)'>$value</div></DIV>";
+ }
+ elseif($THIS_RET[TITLE])
+ {
+ return "<INPUT TYPE=TEXT NAME=rprice[$THIS_RET[ID]] size=5>";
+ }
+ else
+ return "<INPUT TYPE=TEXT NAME=new_rprice[$category] size=5>";
+ //return "<INPUT TYPE=TEXT NAME=rprice[$THIS_RET[ID]] VALUE=$value size=5>";
+}
+
+function makeButtonInput($value='',$category='')
+{ global $THIS_RET;
+
+ if($value!='')
+ return "<DIV id='b$THIS_RET[ID]'><div onclick='javascript:addHTML(\"<INPUT type=text name=button[$THIS_RET[ID]] value=$value size=5>\",\"b$THIS_RET[ID]\",true)'>$value</div></DIV>";
+ elseif($THIS_RET[TITLE])
+ return "<INPUT TYPE=TEXT NAME=button[$THIS_RET[ID]] size=5>";
+ else
+ return "<INPUT TYPE=TEXT NAME=new_button[$category] size=5>";
+ //return "<INPUT TYPE=TEXT NAME=price[$THIS_RET[ID]] VALUE=$value size=5>";
+}
+
+?>
\ No newline at end of file
Property changes on: trunk/lang/es_mx_utf8/Billing/LunchAdmin.php
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/lang/es_mx_utf8/Billing/LunchTotals.php
===================================================================
--- trunk/lang/es_mx_utf8/Billing/LunchTotals.php (rev 0)
+++ trunk/lang/es_mx_utf8/Billing/LunchTotals.php 2010-04-14 18:09:01 UTC (rev 421)
@@ -0,0 +1,35 @@
+<?php
+DrawHeader(ProgramTitle());
+
+$begin_date = $_REQUEST['day_begin'].'-'.$_REQUEST[month_begin].'-'.$_REQUEST[year_begin];
+$end_date = $_REQUEST[day_end].'-'.$_REQUEST[month_end].'-'.$_REQUEST[year_end];
+DrawHeader(ProperDate($begin_date).' - '.ProperDate($end_date).' : '.GetSchool($_REQUEST[sch]));
+
+// LUNCH DEBITS
+$sql = "SELECT MENU_ID,".db_case(array('FSC',"''","'REG'","'1'","'FREE'","'2'","'REDUCED'"))." as FSC,
+ count(*) as COUNT
+ FROM STU_BILLING_ACT_LUNCH sba,STUDENT_ENROLLMENT se
+ WHERE se.SYEAR=sba.SYEAR AND se.STUDENT_ID=sba.STUDENT_ID AND se.SCHOOL_ID='".UserSchool()."' AND ";
+$sql .= "PAYMENT_DATE BETWEEN '$begin_date' AND '$end_date'
+ GROUP BY MENU_ID,FSC";
+$QI = DBQuery($sql);
+$counts_RET = DBGet($QI,array(),array('MENU_ID','FSC'));
+
+$sql = "SELECT ID,SCHOOL_ID,TITLE FROM LUNCH_MENU WHERE SCHOOL_ID='".UserSchool()."' ";
+$QI = DBQuery($sql);
+$menu_RET = DBGet($QI,array(),array('SCHOOL_ID'));
+
+$columns = array('TITLE'=>'Lunch Item','REG_COUNT'=>'Regular Purchases','FREE_COUNT'=>'Free Purchases','REDUCED_COUNT'=>'Reduced Purchases','TOTAL'=>'Total');
+foreach($menu_RET as $school=>$items)
+{
+ unset($RET);
+ $RET[] = '';
+ foreach($items as $item)
+ {
+ $total = $counts_RET[$item[ID]]['REG'][1]['COUNT'] + $counts_RET[$item[ID]]['FREE'][1]['COUNT'] + $counts_RET[$item[ID]]['REDUCED'][1]['COUNT'];
+ $RET[] = array('TITLE'=>$item[TITLE],'REG_COUNT'=>$counts_RET[$item[ID]]['REG'][1]['COUNT'],'FREE_COUNT'=>$counts_RET[$item[ID]]['FREE'][1]['COUNT'],'REDUCED_COUNT'=>$counts_RET[$item[ID]]['REDUCED'][1]['COUNT'],'TOTAL'=>$total);
+ }
+ unset($RET[0]);
+ ListOutput($RET,$columns,'','','',array(),array('save'=>false));
+}
+?>
\ No newline at end of file
Property changes on: trunk/lang/es_mx_utf8/Billing/LunchTotals.php
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/lang/es_mx_utf8/Billing/MassAdd.php
===================================================================
--- trunk/lang/es_mx_utf8/Billing/MassAdd.php (rev 0)
+++ trunk/lang/es_mx_utf8/Billing/MassAdd.php 2010-04-14 18:09:01 UTC (rev 421)
@@ -0,0 +1,203 @@
+<?php
+DrawHeader('Mass Add Student Billing Fees');
+
+if($_REQUEST[modfunc]=='update')
+{
+ if(DeletePrompt('fee to all students '.(($_REQUEST[grade])?'in '.GetGrade($_REQUEST[grade]):'').' '.(($_REQUEST[school])?'at '.GetSchool($_REQUEST[school]):''),'apply'))
+ {
+ $_REQUEST['date'] = $_REQUEST['day'] . '-' . $_REQUEST['month'] . '-' . $_REQUEST['year'];
+ if($_REQUEST['date']=='--')
+ $_REQUEST['date']='';
+ $effective_date = DBDate();
+ $global_id = DBGet(DBQuery("SELECT ".db_seq_nextval('STU_BILLING_GLOABL_SEQ').' AS GLOBAL_ID'.FROM_DUAL));
+ if($_REQUEST['defined'])
+ {
+ $sql = "SELECT SYEAR,TITLE,AMOUNT,DUE_DATE,ACCOUNT_ID FROM STU_BILLING_DEFINED_FEES WHERE ID='$_REQUEST[defined]'";
+ $defined = DBGet(DBQuery($sql));
+ $defined = $defined[1];
+ $_REQUEST['syear'] = $defined[SYEAR];
+ $_REQUEST['title'] = $defined[TITLE];
+ $_REQUEST['account_id'] = $defined[ACCOUNT_ID];
+ $_REQUEST['amount'] = $defined[AMOUNT];
+ $_REQUEST['date'] = $defined[DUE_DATE];
+ }
+
+ $sql = "INSERT INTO STU_BILLING_FEES
+ (ID,GLOBAL_ID,ACCOUNT_ID,STUDENT_ID,TITLE,AMOUNT,EFFECTIVE_DATE,DUE_DATE,SYEAR,SCHOOL,GRADE)
+ (SELECT ".db_seq_nextval('STU_BILLING_FEES_SEQ').",".$global_id[1][GLOBAL_ID].",'".$_REQUEST['account_id']."',ssm.STUDENT_ID,
+ '".$_REQUEST['title']."','".$_REQUEST['amount']."','$effective_date',
+ '".$_REQUEST['date']."','".$_REQUEST['syear']."',
+ '".$_REQUEST['school']."','".$_REQUEST['grade']."'
+ FROM STU_SCHOOL_MEETS ssm
+ WHERE
+ ssm.SYEAR='$_REQUEST[syear]' AND ssm.ACTIVE='A' ";
+ if($_REQUEST[grade])
+ $sql .= "AND ssm.GRADE='$_REQUEST[grade]' ";
+ if($_REQUEST[school])
+ $sql .= "AND ssm.SCHOOL='$_REQUEST[school]' ";
+ $sql .= ')';
+
+ DBQuery($sql);
+
+ $note[] = 'The Student Billing Fee '.$title.' has been Applied to all students '.(($_REQUEST[grade])?'in '.GetGrade($_REQUEST[grade]):'').' '.(($_REQUEST[school])?'at '.GetSchool($_REQUEST[school]):'');
+ unset($_REQUEST[modfunc]);
+ }
+}
+
+if($_REQUEST[modfunc]=='delete')
+{
+ if(DeletePrompt('fee for all applicable students'))
+ {
+ DBQuery("DELETE FROM STU_BILLING_FEES WHERE GLOBAL_ID=$_REQUEST[id]");
+ $note[] = "That Fee has been Deleted for All Applicable Students";
+ unset($_REQUEST[modfunc]);
+ }
+}
+
+if(!$_REQUEST[modfunc])
+{
+ // LIST
+ if($note)
+ {
+ echo '<TABLE width=100%><TR><TD bgcolor=#E8E8E9><font size=-1>';
+ ErrorMessage($note,'note');
+ echo '</font></TD></TR></TABLE>';
+ }
+ echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=update METHOD=POST>";
+
+ $functions = array('ACCOUNT_ID'=>'getAccount','DUE_DATE'=>'ProperDate','SYEAR'=>'DispYear','SCHOOL'=>'GetSchool','GRADE'=>'GetGrade');
+ $RET = DBGet(DBQuery('SELECT DISTINCT sb.GLOBAL_ID,sb.TITLE,sb.AMOUNT,sb.ACCOUNT_ID,
+ to_char(sb.DUE_DATE,\'dd-MON-yy\') as DUE_DATE,sb.SYEAR,sb.SCHOOL,sb.GRADE
+ FROM STU_BILLING_FEES sb WHERE GLOBAL_ID IS NOT NULL ORDER BY sb.GLOBAL_ID'),$functions);
+
+ $columns = array('TITLE'=>'Title','AMOUNT'=>'Amount','ACCOUNT_ID'=>'Account','DUE_DATE'=>'Due Date','SYEAR'=>'School Year','SCHOOL'=>'School','GRADE'=>'Grade');
+ $link[add][html] = array('TITLE'=>makeTitleInput(),'AMOUNT'=>makeAmountInput(),'ACCOUNT_ID'=>makeAccountInput(),'DUE_DATE'=>makeDateInput(),'SYEAR'=>makeSyearInput(),'SCHOOL'=>makeSchoolInput(),'GRADE'=>makeGradeInput(),'remove'=>button('add'));
+ $link[remove] = array('link'=>"Modules.php?modname=$_REQUEST[modname]&modfunc=delete",
+ 'variables'=>array('id'=>'GLOBAL_ID'));
+ $_REQUEST[modfunc] = 'list';
+ unset($_REQUEST[modfunc]);
+ ListOutput($RET,$columns,'Student Billing Fee','Student Billing Fees',$link);
+ echo '<center><input type=submit class=btn_medium value=Save></center>';
+}
+// -- END LIST
+
+function makeTitleInput($value='')
+{
+ $sql = "SELECT ID,TITLE,AMOUNT,SCHOOL,GRADE FROM STU_BILLING_DEFINED_FEES WHERE SYEAR='".GetSysYear()."'";
+ $QI = DBQuery($sql);
+ $defined_RET = DBGet($QI,array('SCHOOL'=>'GetSchool','Grade'=>'GetGrade'));
+ if(count($defined_RET))
+ {
+ $return .= "<BR><SELECT name=defined><OPTION value=''>Not Specified</OPTION>";
+ foreach($defined_RET as $defined)
+ $return .= "<OPTION value=$defined[ID]>$defined[TITLE] - $defined[AMOUNT] - $defined[SCHOOL] $defined[GRADE]</OPTION>";
+ $return .= "</SELECT>";
+ }
+
+ return "<INPUT type=text name=title maxlength=30 size=10 value='$value'>$return";
+}
+
+function makeAmountInput($value='')
+{
+ return "<INPUT type=text name=amount maxlength=10 size=6 ".(($value)?"value=".Currency($value):'').'>';
+}
+
+function makeDateInput($value='00-000-00')
+{
+
+ return PrepareDate("",$value);
+}
+
+function makeYesInput($value='')
+{
+ if($value=='Y')
+ return 'Yes';
+ else
+ return 'No';
+}
+
+function makeSchoolInput($value='')
+{
+
+ $QI = DBQuery("SELECT NAME,SCHOOL,SCHOOL_TYPE FROM SCHOOLS WHERE SCHOOL > '00' AND DISPLAY_FORMS='Y' ORDER BY ".db_case(array("SCHOOL","'ALL'","'2'","'1'")).",".db_case(array("SCHOOL_TYPE","'ELM'","'1'","'MID'","'2'","'HIGH'","'3'","'4'")).",NAME ");
+ $RET = DBReturn($QI,$count);
+ $return .= "<SELECT name=school>";
+ $return .= "<OPTION value=''>Not Specified</OPTION>";
+ foreach($RET as $key=>$school)
+ {
+ $return .= "<OPTION value=$school[SCHOOL]";
+ if($school[SCHOOL]==$value)
+ $return .= " SELECTED";
+ $return .= ">$school[NAME]</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function makeSyearInput($value='')
+{
+
+ $syear = '20'.GetSysYear();
+
+ if($value<50)
+ $default = '20'.$value;
+ else
+ $default = '19'.$value;
+
+ if(!$value)
+ $default = $syear;
+ $return .= "<SELECT name=syear>";
+ for($i=$syear-3;$i<$syear+3;$i++)
+ {
+ $year = substr($i,2);
+ $return .= "<OPTION value=$year".(($default==$i)?' SELECTED':'').">".ProperYear($year)."</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function makeGradeInput($value='')
+{
+ $QI = DBQuery("SELECT DISTINCT GRADE FROM SCHOOL_GRADELEVELS WHERE DISPLAY = '1' ORDER BY GRADE");
+ $RET = DBReturnNoWord($QI,$count);
+ $return .= "<SELECT name=grade>";
+ $return .= "<OPTION value=''>N/A</OPTION>";
+ foreach($RET as $grade)
+ {
+ $return .= "<OPTION value=$grade[GRADE]";
+ if($grade[GRADE]==$value)
+ $return .= " SELECTED";
+ $return .= ">$grade[GRADE]</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function makeAccountInput($value='')
+{
+ $QI = DBQuery("SELECT TITLE,ID FROM STU_BILLING_ACCOUNTS WHERE SYEAR='".GetSysYear()."' ORDER BY TITLE");
+ $RET = DBReturnNoWord($QI,$count);
+ $return .= "<SELECT name=account_id>";
+ foreach($RET as $account)
+ {
+ $return .= "<OPTION value=$account[ID]";
+ if($account[ID]==$value)
+ $return .= " SELECTED";
+ $return .= ">$account[TITLE]</OPTION>";
+ }
+ $return .= "</SELECT>";
+ return $return;
+}
+
+function getAccount($account_id)
+{ global $_OSIS;
+
+ if(!$_OSIS['GetAccount'])
+ {
+ $QI=DBQuery("SELECT ID,TITLE FROM STU_BILLING_ACCOUNTS");
+ $_OSIS['GetAccount'] = DBGet($QI,array(),array('ID'));
+ }
+
+ return $_OSIS['GetAccount'][$account_id][1]['TITLE'];
+}
+?>
\ No newline at end of file
Property changes on: trunk/lang/es_mx_utf8/Billing/MassAdd.php
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/lang/es_mx_utf8/Billing/StaffBilling.php
===================================================================
--- trunk/lang/es_mx_utf8/Billing/StaffBilling.php (rev 0)
+++ trunk/lang/es_mx_utf8/Billing/StaffBilling.php 2010-04-14 18:09:01 UTC (rev 421)
@@ -0,0 +1,87 @@
+<?php
+DrawHeader('Staff Billing Administration');
+
+if($_REQUEST[modfunc]=='')
+{
+ PopTable('header','Find a Staff Member');
+ echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=list method=POST>";
+ echo '<TABLE>';
+ echo '<TR><TD>Last Name</TD><TD><INPUT type=text name=last></TD></TR>';
+ echo '<TR><TD>First Name</TD><TD><INPUT type=text name=first></TD></TR>';
+ echo '<TR><TD>ID</TD><TD><INPUT type=text name=stuid></TD></TR>';
+ PrepareSchool(SessionSchool(),'',SessionCurSchool());
+ Warehouse('searchyear');
+ echo '<TR><TD align=center colspan=2>';
+ Buttons('Submit','Reset');
+ echo '</TD></TR>';
+ echo '</TABLE>';
+ echo '</FORM>';
+ PopTable('footer');
+}
+
+
+if($_REQUEST[modfunc]=='list')
+{
+ $sql = "SELECT LAST_NAME||', '||FIRST_NAME as FULL_NAME,TEACHER_ID AS STAFF_ID,SCHOOL,SCHOOL AS DISP_SCHOOL,'T' AS TYPE
+ FROM TEACHERS WHERE SYEAR='$_REQUEST[year]' ";
+ if($_REQUEST[sch])
+ $sql .= "AND SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[last])
+ $sql .= "AND LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ if($_REQUEST[first])
+ $sql .= "AND FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND TEACHER_ID='".strtoupper($_REQUEST[stuid])."' ";
+
+ $sql .= "UNION ";
+
+ $sql .= "SELECT LAST_NAME||', '||FIRST_NAME as FULL_NAME,STAFF_ID AS STAFF_ID,SCHOOL,SCHOOL AS DISP_SCHOOL,'S' AS TYPE
+ FROM STAFF WHERE SYEAR='$_REQUEST[year]' ";
+ if($_REQUEST[sch])
+ $sql .= "AND SCHOOL='$_REQUEST[sch]' ";
+ if($_REQUEST[last])
+ $sql .= "AND LAST_NAME LIKE '".strtoupper($_REQUEST[last])."%' ";
+ if($_REQUEST[first])
+ $sql .= "AND FIRST_NAME LIKE '".strtoupper($_REQUEST[first])."%' ";
+ if($_REQUEST[stuid])
+ $sql .= "AND STAFF_ID='".strtoupper($_REQUEST[stuid])."' ";
+ $sql .= "ORDER BY 1 ";
+
+ $QI = DBQuery($sql);
+ $RET = DBGet($QI,array('FULL_NAME'=>'GetCapWords','DISP_SCHOOL'=>'GetSchool'));
+
+ $columns = array('FULL_NAME'=>'Staff Member','STAFF_ID'=>'Staff ID','DISP_SCHOOL'=>'School');
+ $link['FULL_NAME']['link'] = "Modules.php?modname=$_REQUEST[modname]&modfunc=detail&editor=stubilling&f_year=$_REQUEST[year]";
+ $link['FULL_NAME']['variables'] = array('f_stuid'=>'STAFF_ID','f_school'=>'SCHOOL','type'=>'TYPE');
+ ListOutput($RET,$columns,'Staff Member','Staff Members',$link);
+}
+
+
+if($_REQUEST[modfunc]=='detail')
+{
+ $header = "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]&f_school=$_REQUEST[f_school]&f_year=$_REQUEST[f_year]&f_stuid=$_REQUEST[f_stuid]&editor=$_REQUEST[editor]&type=$_REQUEST[type] method=POST>";
+ $header .= "<SELECT name=editor onChange='document.forms[0].submit();'>";
+ $header .= '<OPTION value=stubilling>Billing</OPTION>';
+ $header .= "<OPTION value=lunch ".(($_REQUEST[editor]=='lunch')?' SELECTED':'').'>Lunch Billing</OPTION>';
+ $header .= "</SELECT>";
+ $header .= '</FORM>';
+
+ if($_REQUEST[type]=='S')
+ {
+ define('STU_SCHOOL_MEETS','STAFF');
+ define('SSMSTUDENT_ID','ssm.STAFF_ID');
+ }
+ elseif($_REQUEST[type]=='T')
+ {
+ define('STU_SCHOOL_MEETS','TEACHERS');
+ define('SSMSTUDENT_ID','ssm.TEACHER_ID');
+ }
+
+ $QI = DBQuery('SELECT FIRST_NAME||\' \'||LAST_NAME AS FULL_NAME FROM '.STU_SCHOOL_MEETS.' ssm WHERE '.SSMSTUDENT_ID."='".$_REQUEST[f_stuid]."'");
+ $name = DBGet($QI,array('FULL_NAME'=>'GetCapWords'));
+
+ DrawHeader($name[1][FULL_NAME],$header);
+
+ include('modules/StudentInfo/StuBilling.inc.php');
+}
+?>
\ No newline at end of file
Property changes on: trunk/lang/es_mx_utf8/Billing/StaffBilling.php
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/lang/es_mx_utf8/Common.php
===================================================================
--- trunk/lang/es_mx_utf8/Common.php (rev 0)
+++ trunk/lang/es_mx_utf8/Common.php 2010-04-14 18:09:01 UTC (rev 421)
@@ -0,0 +1,38 @@
+<?php
+#*********************...
[truncated message content] |
|
From: <nev...@us...> - 2010-04-14 14:55:36
|
Revision: 420
http://opensis.svn.sourceforge.net/opensis/?rev=420&view=rev
Author: neverabe
Date: 2010-04-14 14:55:29 +0000 (Wed, 14 Apr 2010)
Log Message:
-----------
Adding Directory es_mx_utf8, /ajax.php
Added Paths:
-----------
trunk/lang/es_mx_utf8/
trunk/lang/es_mx_utf8/ajax.php
Added: trunk/lang/es_mx_utf8/ajax.php
===================================================================
--- trunk/lang/es_mx_utf8/ajax.php (rev 0)
+++ trunk/lang/es_mx_utf8/ajax.php 2010-04-14 14:55:29 UTC (rev 420)
@@ -0,0 +1,10 @@
+<?php
+ /*This are messages on ajax.php, in Spanish-Mexico*/
+
+ $string['selectedStudent'] = 'Estudiante Seleccionado';
+ $string['remove'] = 'Remover';
+ $string['backToStudentList'] = 'Volver a la lista de Estudiantes';
+ $string['selectedUser'] = 'Usuario Seleccionado';
+ $string['securityAlert'] = "No está permitido hacer esto! Este intento de violación se ha registrado y su dirección IP fue capturada.";
+ $string['hackingAttempt'] = 'INTENTO DE INTRUSIÓN';
+?>
Property changes on: trunk/lang/es_mx_utf8/ajax.php
___________________________________________________________________
Added: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rg...@us...> - 2010-03-22 20:03:28
|
Revision: 419
http://opensis.svn.sourceforge.net/opensis/?rev=419&view=rev
Author: rgval
Date: 2010-03-22 20:03:22 +0000 (Mon, 22 Mar 2010)
Log Message:
-----------
Removed text from Login button in Step 5. Replace with get_string text.
Modified Paths:
--------------
trunk/install/images/login.png
trunk/install/step5.php
trunk/lang/en_utf8/install.php
Modified: trunk/install/images/login.png
===================================================================
(Binary files differ)
Modified: trunk/install/step5.php
===================================================================
--- trunk/install/step5.php 2010-02-14 13:51:24 UTC (rev 418)
+++ trunk/install/step5.php 2010-03-22 20:03:22 UTC (rev 419)
@@ -66,16 +66,16 @@
}
fclose($fh);
-
+//<td valign="middle" align="center"><a href="step1.php"><div class="step0_install">'.get_string('newinstall', 'install').'</div></a></td>';
echo "<html><head><link rel='stylesheet' type='text/css' href='../styles/installer.css'></head><body>
<div class=\"heading\">".get_string('step5installheader', 'install')."
<div style=\"background-image:url(images/step5.gif); background-repeat:no-repeat; background-position:50% 20px; height:270px;\">
<table border=\"0\" cellspacing=\"6\" cellpadding=\"3\" align=\"center\">
<tr>
- <td align=\"center\" style=\"padding-top:36px; padding-bottom:16px\">".get_string('installstep5', 'install')."</td>
+ <td align=\"center\" style=\"padding-top:36px; padding-bottom:16px\">".get_string('installstep5', 'install')."</td>
</tr>
<tr>
- <td align=\"center\"><a href='../index.php?modfunc=logout' target=\"_parent\"><img src='images/login.png' border=0 /></a></td>
+ <td align=\"center\" class=\"step5_text\"><a href='../index.php?modfunc=logout' target=\"_parent\"><div class=\"step5_login\">".get_string('login', 'install')."</div></a></td>
</tr>
</td>
</tr>
@@ -93,7 +93,7 @@
<td align=\"center\" style=\"padding-top:36px; padding-bottom:16px\">".get_string('upgradestep3', 'install')."</td>
</tr>
<tr>
- <td align=\"center\"><a href='../index.php?modfunc=logout'><img src='images/login.png' border=0 /></a></td>
+ <td align=\"center\" class=\"step5_text\"><a href='../index.php?modfunc=logout' target=\"_parent\"><div class=\"step5_login\">".get_string('login', 'install')."</div></a></td>
</tr>
</td>
</tr>
Modified: trunk/lang/en_utf8/install.php
===================================================================
--- trunk/lang/en_utf8/install.php 2010-02-14 13:51:24 UTC (rev 418)
+++ trunk/lang/en_utf8/install.php 2010-03-22 20:03:22 UTC (rev 419)
@@ -1,21 +1,5 @@
<?php
/**
- * @version $Id: 0.1 install.php 09/21/2009 14:38:21 rgval $
- * @package OpenSIS
- * @subpackage Install Language File
- * @copyright Copyright (C) 2005 - 2009 Open Source Matters. All rights reserved.
- * @license GNU/GPL, see LICENSE.php
- * OpenSIS is free software. This version may have been modified pursuant
- * to the GNU General Public License, and as distributed it includes or
- * is derivative of works licensed under the GNU General Public License or
- * other free or open source software licenses.
- * See COPYRIGHT.php for copyright notices and details.
- */
-// ----------------------------------------------------------------------
-// Purpose of file: This are the install strings, in English
-// NOTES: Work In Progress
-
-/**
* This file provides the English versions of the internationalization
* strings for use with multi-languages.
* Strings are formatted as: $string['<STRINGNAME>']='<STRING>'
@@ -30,6 +14,13 @@
* get_string(identifier, module) (most common)
* print_string(identifier, module) (direct print of the translation using echo )
*
+ * @author Raymond Val
+ * @version $Id: 0.1 install.php 09/21/2009 14:38:21 rgval $
+ * @package OpenSIS
+ * @subpackage Install Language File
+ * @copyright Copyright (C) 2005 - 2009 Open Source Matters. All rights reserved.
+ * @license GNU/GPL, see LICENSE.php
+
*/
/************************/
@@ -139,6 +130,9 @@
$string['validateyearlen'] = 'Maximum length of year is 4 numbers';
$string['validateyearnum'] = 'Use only numeric values for the year';
+/* Step5 */
+$string['login'] = 'Login';
+
/* Ins1 */
$string['databaseconnecterror'] = 'Couldn\'t connect to database server';
$string['possiblecauses'] = 'Possible causes are';
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <aec...@us...> - 2010-02-14 13:51:30
|
Revision: 418
http://opensis.svn.sourceforge.net/opensis/?rev=418&view=rev
Author: aecioneto
Date: 2010-02-14 13:51:24 +0000 (Sun, 14 Feb 2010)
Log Message:
-----------
English terms for user module completed. Files sent by Kusum Kumar.
Added Paths:
-----------
trunk/lang/en_utf8/Users/AddStudents.php
trunk/lang/en_utf8/Users/Exceptions.php
trunk/lang/en_utf8/Users/Menu.php
trunk/lang/en_utf8/Users/Preferences.php
trunk/lang/en_utf8/Users/Profiles.php
trunk/lang/en_utf8/Users/Search.inc.php
trunk/lang/en_utf8/Users/Search.php
trunk/lang/en_utf8/Users/Search_Miss_Attn.inc.php
trunk/lang/en_utf8/Users/User.php
trunk/lang/en_utf8/Users/UserFields.php
Added: trunk/lang/en_utf8/Users/AddStudents.php
===================================================================
--- trunk/lang/en_utf8/Users/AddStudents.php (rev 0)
+++ trunk/lang/en_utf8/Users/AddStudents.php 2010-02-14 13:51:24 UTC (rev 418)
@@ -0,0 +1,33 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on AddStudents file of Users Module, in English*/
+
+ $string['associate'] = 'Associate tr';
+ $string['students'] = 'Students tr';
+ $string['addSelectedStudents'] = 'Add Selected Students tr';
+ $string['theSelectedUser...'] = "The selected user's profile now includes access to the selected students. tr";
+?>
\ No newline at end of file
Added: trunk/lang/en_utf8/Users/Exceptions.php
===================================================================
--- trunk/lang/en_utf8/Users/Exceptions.php (rev 0)
+++ trunk/lang/en_utf8/Users/Exceptions.php 2010-02-14 13:51:24 UTC (rev 418)
@@ -0,0 +1,30 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on Exeptions file of Users Module, in English*/
+
+ $string['selectThePrograms...'] = 'Select the programs with which this user can use and save information. tr';
+?>
\ No newline at end of file
Added: trunk/lang/en_utf8/Users/Menu.php
===================================================================
--- trunk/lang/en_utf8/Users/Menu.php (rev 0)
+++ trunk/lang/en_utf8/Users/Menu.php 2010-02-14 13:51:24 UTC (rev 418)
@@ -0,0 +1,39 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on Menu file of Users Module, in English*/
+
+ $string['userInfo'] = 'User Info tr';
+ $string['addUser'] = 'Add a User tr';
+ $string['associateStudentsWithParents'] = 'Associate Students with Parents tr';
+ $string['preferences'] = 'Preferences tr';
+ $string['setup'] = 'Setup tr';
+ $string['profiles'] = 'Profiles tr';
+ $string['userPermissions'] = 'User Permissions tr';
+ $string['userFields'] = 'User Fields tr';
+ $string['teacherPrograms'] = 'Teacher Programs tr';
+ $string['generalInfo'] = 'General Info tr';
+?>
Added: trunk/lang/en_utf8/Users/Preferences.php
===================================================================
--- trunk/lang/en_utf8/Users/Preferences.php (rev 0)
+++ trunk/lang/en_utf8/Users/Preferences.php 2010-02-14 13:51:24 UTC (rev 418)
@@ -0,0 +1,87 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on Preferences file of Users Module, in English*/
+
+ $string['yourNewPasswordsDidNotMatch'] = 'Your new passwords did not match. tr';
+ $string['yourCurrentPasswordWasIncorrect'] = 'Your current password was incorrect. tr';
+ $string['yourNewPasswordWasSaved'] = 'Your new password was saved. tr';
+ $string['displayOptions'] = 'Display Options tr';
+ $string['studentListing'] = 'Student Listing tr';
+ $string['password'] = 'Password tr';
+ $string['studentFields'] = 'Student Fields tr';
+ $string['studentName'] = 'Student Name tr';
+ $string['studentSorting'] = 'Student Sorting tr';
+ $string['fileExportType'] = 'File Export Type tr';
+ $string['commonName'] = 'Common Name tr';
+ $string['name'] = 'Name tr';
+ $string['tabDelimitedExcel'] = 'Tab-Delimited (Excel) tr';
+ $string['givenName'] = 'Given Name tr';
+ $string['gradeName'] = 'Grade, Name tr';
+ $string['cvsOpenOffice'] = 'CSV (OpenOffice) tr';
+ $string['displayStudentSearchScreen'] = 'Display student search screen tr';
+ $string['groupByFamilyByDefault'] = 'Group by family by default tr';
+ $string['searchAllSchoolsByDefault'] = 'Search all schools by default tr';
+ $string['theme'] = 'Theme tr';
+ $string['Black'] = 'Black tr';
+ $string['Gray'] = 'Gray tr';
+ $string['Blue'] = 'Blue tr';
+ $string['Green'] = 'Green tr';
+ $string['highlightColor'] = 'Highlight Color tr';
+ $string['language'] = 'Language tr';
+ $string['en'] = 'English tr';
+ $string['es_cl'] = 'Spanish-Chile tr';
+ $string['es_ar'] = 'Spanish-Argentina tr';
+ $string['currency'] = 'Currency tr';
+ $string['dateFormat'] = 'Date Format tr';
+ $string['usDollar'] = 'US Dollar tr';
+ $string['britishPound'] = 'British Pound tr';
+ $string['euro'] = 'Euro tr';
+ $string['canadianDollar'] = 'Canadian Dollar tr';
+ $string['australianDollar'] = 'Australian Dollar tr';
+ $string['japaneseYen'] = 'Japanese Yen tr';
+ $string['brazillianReal'] = 'Brazillian Real tr';
+ $string['disableLoginAlerts'] = 'Disable login alerts tr';
+ $string['displayDataUsingHiddenFields'] = 'Display data using hidden fields tr';
+ $string['currentPassword'] = 'Current Password tr';
+ $string['newPassword'] = 'New Password tr';
+ $string['verifyNewPassword'] = 'Verify New Password tr';
+ $string['save'] = 'Save tr';
+ $string['contactInformation'] = 'Contact Information tr';
+ $string['contactInfoRollover'] = 'Contact Info Rollover tr';
+ $string['homePhoneNumber'] = 'Home Phone Number tr';
+ $string['guardians'] = 'Guardians tr';
+ $string['allContacts'] = 'All Contacts tr';
+ $string['addresses'] = 'Addresses tr';
+ $string['none'] = 'None tr';
+ $string['residence'] = 'Residence tr';
+ $string['mailing'] = 'Mailing tr';
+ $string['busPickup'] = 'Bus Pickup tr';
+ $string['busDropoff'] = 'Bus Dropoff tr';
+ $string['field'] = 'Field tr';
+ $string['search'] = 'Search tr';
+ $string['expandedView'] = 'Expanded View tr';
+?>
\ No newline at end of file
Added: trunk/lang/en_utf8/Users/Profiles.php
===================================================================
--- trunk/lang/en_utf8/Users/Profiles.php (rev 0)
+++ trunk/lang/en_utf8/Users/Profiles.php 2010-02-14 13:51:24 UTC (rev 418)
@@ -0,0 +1,49 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on Users Module, in English*/
+ $string['permissions'] = 'Permissions tr';
+ $string['selectTheProgramsThatUsers...'] = 'Select the programs that users of this profile can use and which programs those users can use to save information. tr';
+ $string['profiles'] = 'Profiles tr';
+ $string['Administrator'] = 'Administrator tr';
+ $string['Teacher'] = 'Teacher tr';
+ $string['Parent'] = 'Parent tr';
+ $string['Student'] = 'Student tr';
+ $string['profiles'] = 'Profiles tr';
+ $string['addUserProfile'] = 'Add a User Profile tr';
+ $string['permissions'] = 'Permissions tr';
+ $string['canUse'] = 'Can Use tr';
+ $string['canEdit'] = 'Can Edit tr';
+ $string['save'] = 'Save tr';
+ $string['General Info'] = 'General Info tr';
+ $string['Addresses & Contacts'] = 'Addresses & Contacts tr';
+ $string['Medical'] = 'Medical tr';
+ $string['Comments'] = 'Comments tr';
+ $string['Food Service'] = 'Food Service tr';
+ $string['Schedule'] = 'Schedule tr';
+ $string['title'] = 'Title tr';
+ $string['type'] = 'Type tr';
+?>
Added: trunk/lang/en_utf8/Users/Search.inc.php
===================================================================
--- trunk/lang/en_utf8/Users/Search.inc.php (rev 0)
+++ trunk/lang/en_utf8/Users/Search.inc.php 2010-02-14 13:51:24 UTC (rev 418)
@@ -0,0 +1,45 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on Search.inc of Users Module, in English*/
+
+ $string['findUser'] = 'Find User tr';
+ $string['lastName'] = 'Last Name tr';
+ $string['firstName'] = 'First Name tr';
+ $string['userName'] = 'User Name tr';
+ $string['profile'] = 'Profile tr';
+ $string['searchAllSchools'] = 'Search All Schools tr';
+ $string['N/A'] = 'N/A tr';
+ $string['Administrator'] = 'Administrator tr';
+ $string['Teacher'] = 'Teacher tr';
+ $string['Parent'] = 'Parent tr';
+ $string['No Access'] = 'No Access tr';
+ $string['submit'] = 'Submit tr';
+ $string['reset'] = 'Reset tr';
+ $string['pleaseSelectUser'] = 'Please select a user tr';
+ $string['staffMember'] = 'Staff Member tr';
+ $string['staffId'] = 'Staff ID tr';
+?>
Added: trunk/lang/en_utf8/Users/Search.php
===================================================================
--- trunk/lang/en_utf8/Users/Search.php (rev 0)
+++ trunk/lang/en_utf8/Users/Search.php 2010-02-14 13:51:24 UTC (rev 418)
@@ -0,0 +1,33 @@
+<?
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+$FindUser = "Find User" ;
+$LastName = "Last Name";
+$FirstName = "First Name";
+$UserName = "Username" ;
+$Profile = "Profile" ;
+$SearchAllSchools = "Search All Schools" ;
+?>
Added: trunk/lang/en_utf8/Users/Search_Miss_Attn.inc.php
===================================================================
--- trunk/lang/en_utf8/Users/Search_Miss_Attn.inc.php (rev 0)
+++ trunk/lang/en_utf8/Users/Search_Miss_Attn.inc.php 2010-02-14 13:51:24 UTC (rev 418)
@@ -0,0 +1,33 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on Search_Miss_Attn.inc file of Users Module, in English*/
+
+ $string['staffMember'] = 'Staff Member tr';
+ $string['profile'] = 'Profile tr';
+ $string['staffId'] = 'Staff ID tr';
+ $string['followingTeachersHaveMissingAttendance'] = 'Following teachers have missing attendance! tr';
+?>
Added: trunk/lang/en_utf8/Users/User.php
===================================================================
--- trunk/lang/en_utf8/Users/User.php (rev 0)
+++ trunk/lang/en_utf8/Users/User.php 2010-02-14 13:51:24 UTC (rev 418)
@@ -0,0 +1,38 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on User file of Users Module, in English*/
+
+ $string['hackingAttempt'] = 'HACKING ATTEMPT tr';
+ $string['triedToAccessUser'] = 'tried to access user tr';
+ $string['usernameAlreadyExists'] = 'A user with that username already exists for the $a school year. Choose a different username and try again. tr';
+ $string['delete'] = 'Delete tr';
+ $string['lastLogin'] = 'Last Login tr';
+ $string['users'] = 'Users tr';
+ $string['addUser'] = 'Add a User tr';
+ $string['createAccount'] = 'Create Account tr';
+ $string['save'] = 'Save tr';
+?>
\ No newline at end of file
Added: trunk/lang/en_utf8/Users/UserFields.php
===================================================================
--- trunk/lang/en_utf8/Users/UserFields.php (rev 0)
+++ trunk/lang/en_utf8/Users/UserFields.php 2010-02-14 13:51:24 UTC (rev 418)
@@ -0,0 +1,64 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on UserFields file of Users Module, in English*/
+
+ $string['delete'] = 'Delete tr';
+ $string['newUserField'] = 'New User Field tr';
+ $string['newUserFieldCategory'] = 'New User FieldCategory tr';
+ $string['save'] = 'Save tr';
+ $string['pullDown'] = 'Pull-Down tr';
+ $string['autoPullDown'] = 'Auto Pull-down tr';
+ $string['editPullDown'] = 'Edit Pull-Down tr';
+ $string['text'] = 'Text tr';
+ $string['checkbox'] = 'Checkbox tr';
+ $string['codedPullDown'] = 'Coded Pull-Down tr';
+ $string['number'] = 'Number tr';
+ $string['selectMultipleFromOptions'] = 'Select Multiple from Options tr';
+ $string['selectMultiple'] = 'Select Multiple tr';
+ $string['date'] = 'Date tr';
+ $string['longText'] = 'Long Text tr';
+ $string['onePerLine'] = 'one per line tr';
+ $string['forDates'] = 'for dates tr';
+ $string['forCheckboxes'] = 'for checkboxes tr';
+ $string['title'] = 'Title tr';
+ $string['fieldName'] = 'Field Name tr';
+ $string['dataType'] = 'Data Type tr';
+ $string['sortOrder'] = 'Sort Order tr';
+ $string['default'] = 'Default tr';
+ $string['required'] = 'Required tr';
+ $string['includeShouldBeLeftBlankForMostCategories'] = 'Include (should be left blank for most categories) tr';
+ $string['category'] = 'Category tr';
+ $string['order'] = 'Order tr';
+ $string['userFieldCategory'] = 'User Field Category tr';
+ $string['userFieldCategories'] = 'User Field Categories tr';
+ $string['userField'] = 'User Field tr';
+ $string['userFields'] = 'User Fields tr';
+ $string['userFieldCategoryAndAll...'] = 'user field category and all fields in the category tr';
+ $string['General Info'] = 'General Info tr';
+ $string['Schedule'] = 'Schedule tr';
+ $string['Food Service'] = 'Food Service tr';
+?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <aec...@us...> - 2010-02-13 12:49:02
|
Revision: 417
http://opensis.svn.sourceforge.net/opensis/?rev=417&view=rev
Author: aecioneto
Date: 2010-02-13 12:36:27 +0000 (Sat, 13 Feb 2010)
Log Message:
-----------
English terms for student modules completed.
Modified Paths:
--------------
trunk/lang/en_utf8/Students/Menu.php
trunk/modules/Students/includes/Address.inc.php
trunk/modules/Students/includes/Comments.inc.php
trunk/modules/Students/includes/Enrollment.inc.php
trunk/modules/Students/includes/Food_Service.inc.php
trunk/modules/Students/includes/General_Info.inc.php
trunk/modules/Students/includes/Medical.inc.php
trunk/modules/Students/includes/Other_Fields.inc.php
trunk/modules/Students/includes/Other_Info.inc.php
trunk/modules/Students/includes/functions.php
Added Paths:
-----------
trunk/lang/en_utf8/Students/includes.php
Removed Paths:
-------------
trunk/lang/en_utf8/Students/General_Info.inc.php
Deleted: trunk/lang/en_utf8/Students/General_Info.inc.php
===================================================================
--- trunk/lang/en_utf8/Students/General_Info.inc.php 2010-02-10 02:52:46 UTC (rev 416)
+++ trunk/lang/en_utf8/Students/General_Info.inc.php 2010-02-13 12:36:27 UTC (rev 417)
@@ -1,39 +0,0 @@
-<?php
-$string['demographic']="Demographic Information tr";
-$string['White']="White tr";
-$string['NonHispanic']= "Non-Hispanic tr";
-$string['BlackNonHispanic']="Black, Non-Hispanic tr";
-$string['AmerIndianorAlaskanNative']="Amer. Indian or Alaskan Native tr";
-$string['AsianorPacificIslander']="Asian or Pacific Islander tr";
-$string['Hispanic']="Hispanic tr";
-$string['Other']="Other tr";
-$string['Ethnicity']="Ethnicity tr";
-$string['Commonname']="Common name: tr";
-$string['Gender']="Gender tr";
-$string['Name']="Name tr";
-$string['First']="First tr";
-$string['Middle']="Middle tr";
-$string['Last']="Last tr";
-#
-#
-$string['Female']="Female tr";
-$string['Male']="Male tr";
-$string['Language']="Language: tr";
-$string['SchoolInformation']="School Information tr";
-$string['StudentID']="Student ID tr";
-$string['automaticallyassigned']="Will automatically be assigned tr";
-$string['AlternateID']="Alternate ID tr";
-$string['Grade']="Grade tr";
-$string['Rolling/RetentionOptions']="Rolling/Retention Options tr";
-$string['Calendar']="Calendar tr";
-$string['AccessInformation']="Access Information tr";
-$string['Username']="Username tr";
-$string['Password']="Password tr";
-$string['LastLogin']="Last Login tr";
-$string['EnrollmentInformation']="Enrollment Information tr";
-$string['AttendanceStartDate']="Attendance Start Date this School Year tr";
-$string['Dropped']="Dropped tr";
-$string['School']="School tr";
-
-
-?>
\ No newline at end of file
Modified: trunk/lang/en_utf8/Students/Menu.php
===================================================================
--- trunk/lang/en_utf8/Students/Menu.php 2010-02-10 02:52:46 UTC (rev 416)
+++ trunk/lang/en_utf8/Students/Menu.php 2010-02-13 12:36:27 UTC (rev 417)
@@ -60,5 +60,4 @@
/* duplicated
$string['studentinfo'] = "Student Info";
*/
-
?>
Copied: trunk/lang/en_utf8/Students/includes.php (from rev 416, trunk/lang/en_utf8/Students/General_Info.inc.php)
===================================================================
--- trunk/lang/en_utf8/Students/includes.php (rev 0)
+++ trunk/lang/en_utf8/Students/includes.php 2010-02-13 12:36:27 UTC (rev 417)
@@ -0,0 +1,150 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+$string['warning']="warning tr";
+$string['studentAddress'] = 'Student\'s Address tr';
+$string['remove'] = 'remove tr';
+$string['otherStudentsAssociatedWithThisPerson'] = 'Other students associated with this person tr';
+$string['addNewContact'] = 'Add New Contact tr';
+$string['studentHomeAddress'] = 'Student\'s Home Address tr';
+$string['addressLine1'] = 'Address Line 1 tr';
+$string['addressLine2'] = 'Address Line 2 tr';
+$string['city'] = 'city tr';
+$string['state'] = 'State tr';
+$string['zipcode'] = 'Zip/Postal Code tr';
+$string['schoolBusPickUp'] = 'School Bus Pick-up tr';
+$string['schoolBusDropOff'] = 'School Bus Drop-off tr';
+$string['bussNo'] = 'Bus No tr';
+$string['studentMailingAddress'] = 'Student\'s Mailing Address tr';
+$string['sameAsHomeAddress'] = 'Same as Home Address tr';
+$string['addNewAddress'] = 'Add New Address tr';
+$string['primaryEmergencyContact'] = 'Primary Emergency Contact tr';
+$string['relationshipToStudent'] = 'Relationship to Student tr';
+$string['firstName'] = 'First Name tr';
+$string['lastName'] = 'Last Name tr';
+$string['homePhone'] = 'Home Phone tr';
+$string['workPhone'] = 'Work Phone tr';
+$string['cellPhone'] = 'Cell/Mobile Phone tr';
+$string['email'] = 'Email tr';
+$string['custodyOfStudent'] = 'Custody of Student tr';
+$string['sameAsStudentHomeAddress'] = 'Same as Student\'s Home Address tr';
+$string['secondaryEmergencyContact'] = 'Secondary Emergency Contact tr';
+$string['additionalContact'] = 'Additional Contact tr';
+$string['custody'] = 'Custody tr';
+$string['description'] = 'Description tr';
+$string['value'] = 'Value tr';
+$string['thisIsAnEmergencyContact'] = 'This is an Emergency Contact tr';
+#
+#
+$string['charactersRemaining'] = 'characters remaining tr';
+$string['ifMoreThan...'] = 'If more than one teacher will be adding comments for this student tr';
+$string['typeYourName...'] = 'Type your name above the comments you enter tr';
+$string['leaveSpace...'] = 'Leave space for other teachers to enter their comments tr';
+#
+#
+$string['enrollmentRecord'] = 'Enrollment Record tr';
+$string['enrollmentRecords'] = 'Enrollment Records tr';
+$string['calendar'] = 'Calendar tr';
+$string['rollingRetentionOptions'] = 'Rolling / Retention Options tr';
+#
+#
+$string['balance'] = 'Balance tr';
+$string['accountId'] = 'Account ID tr';
+$string['OtherStudentsAssociatedSameAccount'] = 'Other students associated with same account tr';
+$string['nonExistentAccount'] = 'Non-existent account tr';
+$string['warning'] = 'warning tr';
+$string['inactive'] = 'Inactive tr';
+$string['disabled'] = 'Disabled tr';
+$string['closed'] = 'Closed tr';
+$string['status'] = 'Status tr';
+$string['active'] = 'Active tr';
+$string['reduced'] = 'Reduced tr';
+$string['free'] = 'Free tr';
+$string['discount'] = 'Discount ;tr';
+$string['full'] = 'Full tr';
+$string['barcode'] = 'Barcode tr';
+#
+#
+$string['female'] = 'Female tr';
+$string['male'] = 'Male tr';
+$string['language'] = 'Language: tr';
+$string['schoolInformation'] = 'School Information tr';
+$string['studentID'] = 'Student ID tr';
+$string['automaticallyAssigned'] = 'Will automatically be assigned tr';
+$string['alternateID'] = 'Alternate ID tr';
+$string['grade'] = 'Grade tr';
+$string['rollingRetentionOptions'] = 'Rolling/Retention Options tr';
+$string['calendar'] = 'Calendar tr';
+$string['accessInformation'] = 'Access Information tr';
+$string['username'] = 'Username tr';
+$string['password'] = 'Password tr';
+$string['lastLogin'] = 'Last Login tr';
+$string['enrollmentInformation'] = 'Enrollment Information tr';
+$string['attendanceStartDate'] = 'Attendance Start Date this School Year tr';
+$string['dropped'] = 'Dropped tr';
+$string['school'] = 'School tr';
+#
+#
+$string['medicalInformation'] = 'Medical Information tr';
+$string['date'] = 'Date tr';
+$string['comments'] = 'Comments tr';
+$string['immuniztionsOrPhysicals'] = 'Immunizations or Physicals tr';
+$string['immunizationsAndPhysicals'] = 'Immunizations and Physicals tr';
+$string['immunizationPhysicalRecord'] = 'Immunization/Physical Record tr';
+$string['immunizationOrPhysical'] = 'Immunization or Physical tr';
+$string['medicalAlert'] = 'Medical Alert tr';
+$string['medicalAlerts'] = 'Medical Alerts tr';
+$string['timeIn'] = 'Time In tr';
+$string['timeOut'] = 'Time Out tr';
+$string['reason'] = 'Reason tr';
+$string['result'] = 'Result tr';
+$string['comments'] = 'Comments tr';
+$string['nurseVisitRecord'] = 'Nurse Visit Record tr';
+$string['nurseVisit'] = 'Nurse Visit tr';
+$string['nurseVisits'] = 'Nurse Visits tr';
+#
+#
+$string['immunization'] = 'Immunization tr';
+$string['physical'] = 'Physical tr';
+#
+#
+$string['demographic']="Demographic Information tr";
+$string['white']="White tr";
+$string['nonHispanic']= "Non-Hispanic tr";
+$string['blackNonHispanic']="Black, Non-Hispanic tr";
+$string['amerIndianorAlaskanNative']="Amer. Indian or Alaskan Native tr";
+$string['asianPacificIslander']="Asian or Pacific Islander tr";
+$string['hispanic']="Hispanic tr";
+$string['other']="Other tr";
+$string['ethnicity']="Ethnicity tr";
+$string['commonname']="Common name: tr";
+$string['gender']="Gender tr";
+$string['name']="Name tr";
+$string['first']="First tr";
+$string['middle']="Middle tr";
+$string['last']="Last tr";
+#
+?>
\ No newline at end of file
Modified: trunk/modules/Students/includes/Address.inc.php
===================================================================
--- trunk/modules/Students/includes/Address.inc.php 2010-02-10 02:52:46 UTC (rev 416)
+++ trunk/modules/Students/includes/Address.inc.php 2010-02-13 12:36:27 UTC (rev 417)
@@ -25,880 +25,772 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
include 'modules/Students/config.inc.php';
-if($_REQUEST['values'] && ($_POST['values'] || $_REQUEST['ajax']))
-{
- if($_REQUEST['values']['EXISTING'])
- {
- if($_REQUEST['values']['EXISTING']['address_id'] && $_REQUEST['address_id']=='old')
- {
- $_REQUEST['address_id'] = $_REQUEST['values']['EXISTING']['address_id'];
- $address_RET = DBGet(DBQuery("SELECT '' FROM STUDENTS_JOIN_ADDRESS WHERE ADDRESS_ID='$_REQUEST[address_id]' AND STUDENT_ID='".UserStudentID()."'"));
- if(count($address_RET)==0)
- {
- DBQuery("INSERT INTO STUDENTS_JOIN_ADDRESS (ID,STUDENT_ID,ADDRESS_ID) values(".db_seq_nextval('STUDENTS_JOIN_ADDRESS_SEQ').",'".UserStudentID()."','$_REQUEST[address_id]')");
- DBQuery("INSERT INTO STUDENTS_JOIN_PEOPLE (ID,STUDENT_ID,PERSON_ID,ADDRESS_ID) SELECT DISTINCT ON (PERSON_ID) ".db_seq_nextval('STUDENTS_JOIN_PEOPLE_SEQ').",'".UserStudentID()."',PERSON_ID,ADDRESS_ID FROM STUDENTS_JOIN_PEOPLE WHERE ADDRESS_ID='$_REQUEST[address_id]'");
- }
- }
- elseif($_REQUEST['values']['EXISTING']['person_id'] && $_REQUEST['person_id']=='old')
- {
- $_REQUEST['person_id'] = $_REQUEST['values']['EXISTING']['person_id'];
- $people_RET = DBGet(DBQuery("SELECT '' FROM STUDENTS_JOIN_PEOPLE WHERE PERSON_ID='$_REQUEST[person_id]' AND STUDENT_ID='".UserStudentID()."'"));
- if(count($people_RET)==0)
- {
- DBQuery("INSERT INTO STUDENTS_JOIN_PEOPLE (ID,STUDENT_ID,ADDRESS_ID,PERSON_ID) values(".db_seq_nextval('STUDENTS_JOIN_PEOPLE_SEQ').",'".UserStudentID()."','$_REQUEST[address_id]','$_REQUEST[person_id]')");
- }
- }
- }
- if($_REQUEST['values']['ADDRESS'])
- {
- if($_REQUEST['address_id']!='new')
- {
- $sql = "UPDATE ADDRESS SET ";
+if($_REQUEST['values'] && ($_POST['values'] || $_REQUEST['ajax'])) {
+ if($_REQUEST['values']['EXISTING']) {
+ if($_REQUEST['values']['EXISTING']['address_id'] && $_REQUEST['address_id']=='old') {
+ $_REQUEST['address_id'] = $_REQUEST['values']['EXISTING']['address_id'];
+ $address_RET = DBGet(DBQuery("SELECT '' FROM STUDENTS_JOIN_ADDRESS WHERE ADDRESS_ID='$_REQUEST[address_id]' AND STUDENT_ID='".UserStudentID()."'"));
+ if(count($address_RET)==0) {
+ DBQuery("INSERT INTO STUDENTS_JOIN_ADDRESS (ID,STUDENT_ID,ADDRESS_ID) values(".db_seq_nextval('STUDENTS_JOIN_ADDRESS_SEQ').",'".UserStudentID()."','$_REQUEST[address_id]')");
+ DBQuery("INSERT INTO STUDENTS_JOIN_PEOPLE (ID,STUDENT_ID,PERSON_ID,ADDRESS_ID) SELECT DISTINCT ON (PERSON_ID) ".db_seq_nextval('STUDENTS_JOIN_PEOPLE_SEQ').",'".UserStudentID()."',PERSON_ID,ADDRESS_ID FROM STUDENTS_JOIN_PEOPLE WHERE ADDRESS_ID='$_REQUEST[address_id]'");
+ }
+ }
+ elseif($_REQUEST['values']['EXISTING']['person_id'] && $_REQUEST['person_id']=='old') {
+ $_REQUEST['person_id'] = $_REQUEST['values']['EXISTING']['person_id'];
+ $people_RET = DBGet(DBQuery("SELECT '' FROM STUDENTS_JOIN_PEOPLE WHERE PERSON_ID='$_REQUEST[person_id]' AND STUDENT_ID='".UserStudentID()."'"));
+ if(count($people_RET)==0) {
+ DBQuery("INSERT INTO STUDENTS_JOIN_PEOPLE (ID,STUDENT_ID,ADDRESS_ID,PERSON_ID) values(".db_seq_nextval('STUDENTS_JOIN_PEOPLE_SEQ').",'".UserStudentID()."','$_REQUEST[address_id]','$_REQUEST[person_id]')");
+ }
+ }
+ }
- foreach($_REQUEST['values']['ADDRESS'] as $column=>$value)
- {
- if(!is_array($value))
- $sql .= $column."='".str_replace("\'","''",$value)."',";
- else
- {
- $sql .= $column."='||";
- foreach($value as $val)
- {
- if($val)
- $sql .= str_replace('"','"',$val).'||';
- }
- $sql .= "',";
- }
- }
- $sql = substr($sql,0,-1) . " WHERE ADDRESS_ID='$_REQUEST[address_id]'";
- DBQuery($sql);
- }
- else
- {
- $id = DBGet(DBQuery('SELECT '.db_seq_nextval('ADDRESS_SEQ').' as SEQ_ID '.FROM_DUAL));
- $id = $id[1]['SEQ_ID'];
+ if($_REQUEST['values']['ADDRESS']) {
+ if($_REQUEST['address_id']!='new') {
+ $sql = "UPDATE ADDRESS SET ";
- $sql = "INSERT INTO ADDRESS ";
+ foreach($_REQUEST['values']['ADDRESS'] as $column=>$value) {
+ if(!is_array($value))
+ $sql .= $column."='".str_replace("\'","''",$value)."',";
+ else {
+ $sql .= $column."='||";
+ foreach($value as $val) {
+ if($val)
+ $sql .= str_replace('"','"',$val).'||';
+ }
+ $sql .= "',";
+ }
+ }
+ $sql = substr($sql,0,-1) . " WHERE ADDRESS_ID='$_REQUEST[address_id]'";
+ DBQuery($sql);
+ }
+ else {
+ $id = DBGet(DBQuery('SELECT '.db_seq_nextval('ADDRESS_SEQ').' as SEQ_ID '.FROM_DUAL));
+ $id = $id[1]['SEQ_ID'];
- $fields = 'ADDRESS_ID,STUDENT_ID,';
- $values = "'".$id."','".UserStudentID()."',";
+ $sql = "INSERT INTO ADDRESS ";
+ $fields = 'ADDRESS_ID,STUDENT_ID,';
+ $values = "'".$id."','".UserStudentID()."',";
######################################## For Same Mailing Address ###################################
- if($_REQUEST['r4']=='Y' && $_REQUEST['r4']!='N')
- {
- $fields .= 'MAIL_ADDRESS,MAIL_STREET,MAIL_CITY,MAIL_STATE,MAIL_ZIPCODE,';
- $values .= "'".$_REQUEST['values']['ADDRESS']['ADDRESS']."','".$_REQUEST['values']['ADDRESS']['STREET']."','".$_REQUEST['values']['ADDRESS']['CITY']."','".$_REQUEST['values']['ADDRESS']['STATE']."','".$_REQUEST['values']['ADDRESS']['ZIPCODE']."',";
- }
+ if($_REQUEST['r4']=='Y' && $_REQUEST['r4']!='N') {
+ $fields .= 'MAIL_ADDRESS,MAIL_STREET,MAIL_CITY,MAIL_STATE,MAIL_ZIPCODE,';
+ $values .= "'".$_REQUEST['values']['ADDRESS']['ADDRESS']."','".$_REQUEST['values']['ADDRESS']['STREET']."','".$_REQUEST['values']['ADDRESS']['CITY']."','".$_REQUEST['values']['ADDRESS']['STATE']."','".$_REQUEST['values']['ADDRESS']['ZIPCODE']."',";
+ }
######################################## For Same Mailing Address ###################################
################################ For Same Primary Emergency Contact ###################################
- if($_REQUEST['r5']=='Y' && $_REQUEST['r5']!='N')
- {
- $fields .= 'PRIM_ADDRESS,PRIM_STREET,PRIM_CITY,PRIM_STATE,PRIM_ZIPCODE,';
- $values .= "'".$_REQUEST['values']['ADDRESS']['ADDRESS']."','".$_REQUEST['values']['ADDRESS']['STREET']."','".$_REQUEST['values']['ADDRESS']['CITY']."','".$_REQUEST['values']['ADDRESS']['STATE']."','".$_REQUEST['values']['ADDRESS']['ZIPCODE']."',";
- }
+ if($_REQUEST['r5']=='Y' && $_REQUEST['r5']!='N') {
+ $fields .= 'PRIM_ADDRESS,PRIM_STREET,PRIM_CITY,PRIM_STATE,PRIM_ZIPCODE,';
+ $values .= "'".$_REQUEST['values']['ADDRESS']['ADDRESS']."','".$_REQUEST['values']['ADDRESS']['STREET']."','".$_REQUEST['values']['ADDRESS']['CITY']."','".$_REQUEST['values']['ADDRESS']['STATE']."','".$_REQUEST['values']['ADDRESS']['ZIPCODE']."',";
+ }
############################### For Same Primary Emergency Contact ####################################
############################# For Same Secondary Emergency Contact ####################################
- if($_REQUEST['r6']=='Y' && $_REQUEST['r6']!='N')
- {
- $fields .= 'SEC_ADDRESS,SEC_STREET,SEC_CITY,SEC_STATE,SEC_ZIPCODE,';
- $values .= "'".$_REQUEST['values']['ADDRESS']['ADDRESS']."','".$_REQUEST['values']['ADDRESS']['STREET']."','".$_REQUEST['values']['ADDRESS']['CITY']."','".$_REQUEST['values']['ADDRESS']['STATE']."','".$_REQUEST['values']['ADDRESS']['ZIPCODE']."',";
- }
+ if($_REQUEST['r6']=='Y' && $_REQUEST['r6']!='N') {
+ $fields .= 'SEC_ADDRESS,SEC_STREET,SEC_CITY,SEC_STATE,SEC_ZIPCODE,';
+ $values .= "'".$_REQUEST['values']['ADDRESS']['ADDRESS']."','".$_REQUEST['values']['ADDRESS']['STREET']."','".$_REQUEST['values']['ADDRESS']['CITY']."','".$_REQUEST['values']['ADDRESS']['STATE']."','".$_REQUEST['values']['ADDRESS']['ZIPCODE']."',";
+ }
###############################For Same Secondary Emergency Contact ###################################
- $go = 0;
- foreach($_REQUEST['values']['ADDRESS'] as $column=>$value)
- {
- if($value)
- {
- $fields .= $column.',';
- $values .= "'".str_replace("\'","''",$value)."',";
- $go = true;
- }
- }
- $sql .= '(' . substr($fields,0,-1) . ') values(' . substr($values,0,-1) . ')';
- if($go)
- {
- DBQuery($sql);
- DBQuery("INSERT INTO STUDENTS_JOIN_ADDRESS (ID,STUDENT_ID,ADDRESS_ID,RESIDENCE,MAILING,BUS_PICKUP,BUS_DROPOFF) values(".db_seq_nextval('STUDENTS_JOIN_ADDRESS_SEQ').",'".UserStudentID()."','".$id."','".$_REQUEST['values']['STUDENTS_JOIN_ADDRESS']['RESIDENCE']."','".$_REQUEST['values']['STUDENTS_JOIN_ADDRESS']['MAILING']."','".$_REQUEST['values']['STUDENTS_JOIN_ADDRESS']['BUS_PICKUP']."','".$_REQUEST['values']['STUDENTS_JOIN_ADDRESS']['BUS_DROPOFF']."')");
- $_REQUEST['address_id'] = $id;
- }
- }
- }
+ $go = 0;
+ foreach($_REQUEST['values']['ADDRESS'] as $column=>$value) {
+ if($value) {
+ $fields .= $column.',';
+ $values .= "'".str_replace("\'","''",$value)."',";
+ $go = true;
+ }
+ }
+ $sql .= '(' . substr($fields,0,-1) . ') values(' . substr($values,0,-1) . ')';
+ if($go) {
+ DBQuery($sql);
+ DBQuery("INSERT INTO STUDENTS_JOIN_ADDRESS (ID,STUDENT_ID,ADDRESS_ID,RESIDENCE,MAILING,BUS_PICKUP,BUS_DROPOFF) values(".db_seq_nextval('STUDENTS_JOIN_ADDRESS_SEQ').",'".UserStudentID()."','".$id."','".$_REQUEST['values']['STUDENTS_JOIN_ADDRESS']['RESIDENCE']."','".$_REQUEST['values']['STUDENTS_JOIN_ADDRESS']['MAILING']."','".$_REQUEST['values']['STUDENTS_JOIN_ADDRESS']['BUS_PICKUP']."','".$_REQUEST['values']['STUDENTS_JOIN_ADDRESS']['BUS_DROPOFF']."')");
+ $_REQUEST['address_id'] = $id;
+ }
+ }
+ }
- if($_REQUEST['values']['PEOPLE'])
- {
- if($_REQUEST['person_id']!='new')
- {
- $sql = "UPDATE PEOPLE SET ";
+ if($_REQUEST['values']['PEOPLE']) {
+ if($_REQUEST['person_id']!='new') {
+ $sql = "UPDATE PEOPLE SET ";
- foreach($_REQUEST['values']['PEOPLE'] as $column=>$value)
- {
- $sql .= $column."='".str_replace("\'","''",$value)."',";
- }
- $sql = substr($sql,0,-1) . " WHERE PERSON_ID='$_REQUEST[person_id]'";
- DBQuery($sql);
- }
- else
- {
- $id = DBGet(DBQuery('SELECT '.db_seq_nextval('PEOPLE_SEQ').' as SEQ_ID '.FROM_DUAL));
- $id = $id[1]['SEQ_ID'];
+ foreach($_REQUEST['values']['PEOPLE'] as $column=>$value) {
+ $sql .= $column."='".str_replace("\'","''",$value)."',";
+ }
+ $sql = substr($sql,0,-1) . " WHERE PERSON_ID='$_REQUEST[person_id]'";
+ DBQuery($sql);
+ }
+ else {
+ $id = DBGet(DBQuery('SELECT '.db_seq_nextval('PEOPLE_SEQ').' as SEQ_ID '.FROM_DUAL));
+ $id = $id[1]['SEQ_ID'];
- $sql = "INSERT INTO PEOPLE ";
+ $sql = "INSERT INTO PEOPLE ";
- $fields = 'PERSON_ID,';
- $values = "'".$id."',";
+ $fields = 'PERSON_ID,';
+ $values = "'".$id."',";
- $go = 0;
- foreach($_REQUEST['values']['PEOPLE'] as $column=>$value)
- {
- if($value)
- {
- $fields .= $column.',';
- $values .= "'".str_replace("\'","''",$value)."',";
- $go = true;
- }
- }
- $sql .= '(' . substr($fields,0,-1) . ') values(' . substr($values,0,-1) . ')';
- if($go)
- {
- DBQuery($sql);
- DBQuery("INSERT INTO STUDENTS_JOIN_PEOPLE (ID,PERSON_ID,STUDENT_ID,ADDRESS_ID,CUSTODY,EMERGENCY) values(".db_seq_nextval('STUDENTS_JOIN_PEOPLE_SEQ').",'$id','".UserStudentID()."','".$get_data['ADDRESS_ID']."','".$_REQUEST['values']['STUDENTS_JOIN_PEOPLE']['CUSTODY']."','".$_REQUEST['values']['STUDENTS_JOIN_PEOPLE']['EMERGENCY']."')");
- $_REQUEST['person_id'] = $id;
- }
- }
- }
+ $go = 0;
+ foreach($_REQUEST['values']['PEOPLE'] as $column=>$value) {
+ if($value) {
+ $fields .= $column.',';
+ $values .= "'".str_replace("\'","''",$value)."',";
+ $go = true;
+ }
+ }
+ $sql .= '(' . substr($fields,0,-1) . ') values(' . substr($values,0,-1) . ')';
+ if($go) {
+ DBQuery($sql);
+ DBQuery("INSERT INTO STUDENTS_JOIN_PEOPLE (ID,PERSON_ID,STUDENT_ID,ADDRESS_ID,CUSTODY,EMERGENCY) values(".db_seq_nextval('STUDENTS_JOIN_PEOPLE_SEQ').",'$id','".UserStudentID()."','".$get_data['ADDRESS_ID']."','".$_REQUEST['values']['STUDENTS_JOIN_PEOPLE']['CUSTODY']."','".$_REQUEST['values']['STUDENTS_JOIN_PEOPLE']['EMERGENCY']."')");
+ $_REQUEST['person_id'] = $id;
+ }
+ }
+ }
- if($_REQUEST['values']['PEOPLE_JOIN_CONTACTS'])
- {
- foreach($_REQUEST['values']['PEOPLE_JOIN_CONTACTS'] as $id=>$values)
- {
- if($id!='new')
- {
- $sql = "UPDATE PEOPLE_JOIN_CONTACTS SET ";
+ if($_REQUEST['values']['PEOPLE_JOIN_CONTACTS']) {
+ foreach($_REQUEST['values']['PEOPLE_JOIN_CONTACTS'] as $id=>$values) {
+ if($id!='new') {
+ $sql = "UPDATE PEOPLE_JOIN_CONTACTS SET ";
- foreach($values as $column=>$value)
- {
- $sql .= $column."='".str_replace("\'","''",$value)."',";
- }
- $sql = substr($sql,0,-1) . " WHERE ID='$id'";
- DBQuery($sql);
- }
- else
- {
- if($info_apd || $values['TITLE'] && $values['TITLE']!='Example Phone' && $values['VALUE'] && $values['VALUE']!='(xxx) xxx-xxxx')
- {
- $sql = "INSERT INTO PEOPLE_JOIN_CONTACTS ";
+ foreach($values as $column=>$value) {
+ $sql .= $column."='".str_replace("\'","''",$value)."',";
+ }
+ $sql = substr($sql,0,-1) . " WHERE ID='$id'";
+ DBQuery($sql);
+ }
+ else {
+ if($info_apd || $values['TITLE'] && $values['TITLE']!='Example Phone' && $values['VALUE'] && $values['VALUE']!='(xxx) xxx-xxxx') {
+ $sql = "INSERT INTO PEOPLE_JOIN_CONTACTS ";
- $fields = 'ID,PERSON_ID,';
- $vals = db_seq_nextval('PEOPLE_JOIN_CONTACTS_SEQ').",'$_REQUEST[person_id]',";
+ $fields = 'ID,PERSON_ID,';
+ $vals = db_seq_nextval('PEOPLE_JOIN_CONTACTS_SEQ').",'$_REQUEST[person_id]',";
- $go = 0;
- foreach($values as $column=>$value)
- {
- if($value)
- {
- $fields .= $column.',';
- $vals .= "'".str_replace("\'","''",$value)."',";
- $go = true;
- }
- }
- $sql .= '(' . substr($fields,0,-1) . ') values(' . substr($vals,0,-1) . ')';
- if($go)
- DBQuery($sql);
- }
- }
- }
- }
+ $go = 0;
+ foreach($values as $column=>$value) {
+ if($value) {
+ $fields .= $column.',';
+ $vals .= "'".str_replace("\'","''",$value)."',";
+ $go = true;
+ }
+ }
+ $sql .= '(' . substr($fields,0,-1) . ') values(' . substr($vals,0,-1) . ')';
+ if($go)
+ DBQuery($sql);
+ }
+ }
+ }
+ }
- if($_REQUEST['values']['STUDENTS_JOIN_PEOPLE'] && $_REQUEST['person_id']!='new')
- {
- $sql = "UPDATE STUDENTS_JOIN_PEOPLE SET ";
+ if($_REQUEST['values']['STUDENTS_JOIN_PEOPLE'] && $_REQUEST['person_id']!='new') {
+ $sql = "UPDATE STUDENTS_JOIN_PEOPLE SET ";
- foreach($_REQUEST['values']['STUDENTS_JOIN_PEOPLE'] as $column=>$value)
- {
- $sql .= $column."='".str_replace("\'","''",$value)."',";
- }
- $sql = substr($sql,0,-1) . " WHERE PERSON_ID='$_REQUEST[person_id]' AND STUDENT_ID='".UserStudentID()."'";
- DBQuery($sql);
- }
+ foreach($_REQUEST['values']['STUDENTS_JOIN_PEOPLE'] as $column=>$value) {
+ $sql .= $column."='".str_replace("\'","''",$value)."',";
+ }
+ $sql = substr($sql,0,-1) . " WHERE PERSON_ID='$_REQUEST[person_id]' AND STUDENT_ID='".UserStudentID()."'";
+ DBQuery($sql);
+ }
- if($_REQUEST['values']['STUDENTS_JOIN_ADDRESS'] && $_REQUEST['address_id']!='new')
- {
- $sql = "UPDATE STUDENTS_JOIN_ADDRESS SET ";
+ if($_REQUEST['values']['STUDENTS_JOIN_ADDRESS'] && $_REQUEST['address_id']!='new') {
+ $sql = "UPDATE STUDENTS_JOIN_ADDRESS SET ";
- foreach($_REQUEST['values']['STUDENTS_JOIN_ADDRESS'] as $column=>$value)
- {
- $sql .= $column."='".str_replace("\'","''",$value)."',";
- }
- $sql = substr($sql,0,-1) . " WHERE ADDRESS_ID='$_REQUEST[address_id]' AND STUDENT_ID='".UserStudentID()."'";
- DBQuery($sql);
- }
+ foreach($_REQUEST['values']['STUDENTS_JOIN_ADDRESS'] as $column=>$value) {
+ $sql .= $column."='".str_replace("\'","''",$value)."',";
+ }
+ $sql = substr($sql,0,-1) . " WHERE ADDRESS_ID='$_REQUEST[address_id]' AND STUDENT_ID='".UserStudentID()."'";
+ DBQuery($sql);
+ }
############################Student Join People Address Same as ########################################
-if($_REQUEST['r7']=='Y' && $_REQUEST['r7']!='N' && isset($_REQUEST['person_id']))
- {
- $get_data = DBGet(DBQuery("SELECT ADDRESS_ID,ADDRESS,STREET,CITY,STATE,ZIPCODE,BUS_NO,BUS_PICKUP,BUS_DROPOFF FROM ADDRESS WHERE STUDENT_ID='".UserStudentID()."'"));
- $get_data = $get_data[1];
- DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_ADDRESS='".$get_data['ADDRESS']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
- DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_STREET='".$get_data['STREET']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
- DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_CITY='".$get_data['CITY']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
- DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_STATE='".$get_data['STATE']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
- DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_ZIPCODE='".$get_data['ZIPCODE']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
- DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_BUS_PICKUP='".$get_data['BUS_PICKUP']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
- DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_BUS_DROPOFF='".$get_data['BUS_DROPOFF']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
- DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_BUSNO='".$get_data['BUS_NO']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
- }
+ if($_REQUEST['r7']=='Y' && $_REQUEST['r7']!='N' && isset($_REQUEST['person_id'])) {
+ $get_data = DBGet(DBQuery("SELECT ADDRESS_ID,ADDRESS,STREET,CITY,STATE,ZIPCODE,BUS_NO,BUS_PICKUP,BUS_DROPOFF FROM ADDRESS WHERE STUDENT_ID='".UserStudentID()."'"));
+ $get_data = $get_data[1];
+ DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_ADDRESS='".$get_data['ADDRESS']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
+ DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_STREET='".$get_data['STREET']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
+ DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_CITY='".$get_data['CITY']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
+ DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_STATE='".$get_data['STATE']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
+ DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_ZIPCODE='".$get_data['ZIPCODE']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
+ DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_BUS_PICKUP='".$get_data['BUS_PICKUP']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
+ DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_BUS_DROPOFF='".$get_data['BUS_DROPOFF']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
+ DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDN_BUSNO='".$get_data['BUS_NO']."' WHERE PERSON_ID='".$_REQUEST['person_id']."'");
+ }
############################Student Join People Address Same as ########################################
- unset($_REQUEST['modfunc']);
- unset($_REQUEST['values']);
+ unset($_REQUEST['modfunc']);
+ unset($_REQUEST['values']);
}
-if($_REQUEST['modfunc']=='delete')
-{
- if($_REQUEST['contact_id'])
- {
- if(DeletePrompt('contact information'))
- {
- DBQuery("DELETE FROM PEOPLE_JOIN_CONTACTS WHERE ID='$_REQUEST[contact_id]'");
- unset($_REQUEST['modfunc']);
- }
- }
- elseif($_REQUEST['person_id'])
- {
- if(DeletePrompt('contact'))
- {
- DBQuery("DELETE FROM STUDENTS_JOIN_PEOPLE WHERE PERSON_ID='$_REQUEST[person_id]' AND STUDENT_ID='".UserStudentID()."'");
- if(count(DBGet(DBQuery("SELECT STUDENT_ID FROM STUDENTS_JOIN_PEOPLE WHERE PERSON_ID='$_REQUEST[person_id]'")))==0)
- {
- DBQuery("DELETE FROM PEOPLE WHERE PERSON_ID='$_REQUEST[person_id]'");
- DBQuery("DELETE FROM PEOPLE_JOIN_CONTACTS WHERE PERSON_ID='$_REQUEST[person_id]'");
- }
- unset($_REQUEST['modfunc']);
- unset($_REQUEST['person_id']);
- if(!isset($_REQUEST['address_id']))
- {
- $stu_ad_id = DBGet(DBQuery("SELECT ADDRESS_ID FROM ADDRESS WHERE STUDENT_ID='".UserStudentID()."'"));
- $stu_ad_id = $stu_ad_id[1]['ADDRESS_ID'];
- if(count($stu_ad_id))
- $_REQUEST['address_id']=$stu_ad_id;
- else
- $_REQUEST['address_id']='new';
- }
- }
- }
- elseif($_REQUEST['address_id'])
- {
- if(DeletePrompt('address'))
- {
- DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDRESS_ID='0' WHERE STUDENT_ID='".UserStudentID()."' AND ADDRESS_ID='$_REQUEST[address_id]'");
- DBQuery("DELETE FROM STUDENTS_JOIN_ADDRESS WHERE STUDENT_ID='".UserStudentID()."' AND ADDRESS_ID='".$_REQUEST['address_id']."'");
- if(count(DBGet(DBQuery("SELECT STUDENT_ID FROM STUDENTS_JOIN_ADDRESS WHERE ADDRESS_ID='".$_REQUEST['address_id']."'")))==0)
- DBQuery("DELETE FROM ADDRESS WHERE ADDRESS_ID='".$_REQUEST['address_id']."'");
- unset($_REQUEST['modfunc']);
- $_REQUEST['address_id']='new';
- }
- }
+if($_REQUEST['modfunc']=='delete') {
+ if($_REQUEST['contact_id']) {
+ if(DeletePrompt('contact information')) {
+ DBQuery("DELETE FROM PEOPLE_JOIN_CONTACTS WHERE ID='$_REQUEST[contact_id]'");
+ unset($_REQUEST['modfunc']);
+ }
+ }
+ elseif($_REQUEST['person_id']) {
+ if(DeletePrompt('contact')) {
+ DBQuery("DELETE FROM STUDENTS_JOIN_PEOPLE WHERE PERSON_ID='$_REQUEST[person_id]' AND STUDENT_ID='".UserStudentID()."'");
+ if(count(DBGet(DBQuery("SELECT STUDENT_ID FROM STUDENTS_JOIN_PEOPLE WHERE PERSON_ID='$_REQUEST[person_id]'")))==0) {
+ DBQuery("DELETE FROM PEOPLE WHERE PERSON_ID='$_REQUEST[person_id]'");
+ DBQuery("DELETE FROM PEOPLE_JOIN_CONTACTS WHERE PERSON_ID='$_REQUEST[person_id]'");
+ }
+ unset($_REQUEST['modfunc']);
+ unset($_REQUEST['person_id']);
+ if(!isset($_REQUEST['address_id'])) {
+ $stu_ad_id = DBGet(DBQuery("SELECT ADDRESS_ID FROM ADDRESS WHERE STUDENT_ID='".UserStudentID()."'"));
+ $stu_ad_id = $stu_ad_id[1]['ADDRESS_ID'];
+ if(count($stu_ad_id))
+ $_REQUEST['address_id']=$stu_ad_id;
+ else
+ $_REQUEST['address_id']='new';
+ }
+ }
+ }
+ elseif($_REQUEST['address_id']) {
+ if(DeletePrompt('address')) {
+ DBQuery("UPDATE STUDENTS_JOIN_PEOPLE SET ADDRESS_ID='0' WHERE STUDENT_ID='".UserStudentID()."' AND ADDRESS_ID='$_REQUEST[address_id]'");
+ DBQuery("DELETE FROM STUDENTS_JOIN_ADDRESS WHERE STUDENT_ID='".UserStudentID()."' AND ADDRESS_ID='".$_REQUEST['address_id']."'");
+ if(count(DBGet(DBQuery("SELECT STUDENT_ID FROM STUDENTS_JOIN_ADDRESS WHERE ADDRESS_ID='".$_REQUEST['address_id']."'")))==0)
+ DBQuery("DELETE FROM ADDRESS WHERE ADDRESS_ID='".$_REQUEST['address_id']."'");
+ unset($_REQUEST['modfunc']);
+ $_REQUEST['address_id']='new';
+ }
+ }
}
-if(!$_REQUEST['modfunc'])
-{
- $addresses_RET = DBGet(DBQuery("SELECT a.ADDRESS_ID, sjp.STUDENT_RELATION,a.ADDRESS,a.STREET,a.CITY,a.STATE,a.ZIPCODE,a.BUS_NO,a.BUS_PICKUP,a.BUS_DROPOFF,a.MAIL_ADDRESS,a.MAIL_STREET,a.MAIL_CITY,a.MAIL_STATE,a.MAIL_ZIPCODE,a.PRIM_STUDENT_RELATION,a.PRI_FIRST_NAME,a.PRI_LAST_NAME,a.HOME_PHONE,a.WORK_PHONE,a.MOBILE_PHONE,a.EMAIL,a.PRIM_CUSTODY,a.PRIM_ADDRESS,a.PRIM_STREET,a.PRIM_CITY,a.PRIM_STATE,a.PRIM_ZIPCODE,a.SEC_STUDENT_RELATION,a.SEC_FIRST_NAME,a.SEC_LAST_NAME,a.SEC_HOME_PHONE,a.SEC_WORK_PHONE,a.SEC_MOBILE_PHONE,a.SEC_EMAIL,a.SEC_CUSTODY,a.SEC_ADDRESS,a.SEC_STREET,a.SEC_CITY,a.SEC_STATE,a.SEC_ZIPCODE, sjp.CUSTODY,sja.MAILING,sja.RESIDENCE FROM ADDRESS a,STUDENTS_JOIN_ADDRESS sja,STUDENTS_JOIN_PEOPLE sjp WHERE a.ADDRESS_ID=sja.ADDRESS_ID AND sja.STUDENT_ID='".UserStudentID()."' AND a.ADDRESS_ID=sjp.ADDRESS_ID AND sjp.STUDENT_ID=sja.STUDENT_ID" .
- " UNION SELECT a.ADDRESS_ID,'' AS STUDENT_RELATION,a.ADDRESS,a.STREET,a.CITY,a.STATE,a.ZIPCODE,a.BUS_NO,a.BUS_PICKUP,a.BUS_DROPOFF,a.MAIL_ADDRESS,a.MAIL_STREET,a.MAIL_CITY,a.MAIL_STATE,a.MAIL_ZIPCODE,a.PRIM_STUDENT_RELATION,a.PRI_FIRST_NAME,a.PRI_LAST_NAME,a.HOME_PHONE,a.WORK_PHONE,a.MOBILE_PHONE,a.EMAIL,a.PRIM_CUSTODY,a.PRIM_ADDRESS,a.PRIM_STREET,a.PRIM_CITY,a.PRIM_STATE,a.PRIM_ZIPCODE,a.SEC_STUDENT_RELATION,a.SEC_FIRST_NAME,a.SEC_LAST_NAME,a.SEC_HOME_PHONE,a.SEC_WORK_PHONE,a.SEC_MOBILE_PHONE,a.SEC_EMAIL,a.SEC_CUSTODY,a.SEC_ADDRESS,a.SEC_STREET,a.SEC_CITY,a.SEC_STATE,a.SEC_ZIPCODE,a.PRIM_CUSTODY AS CUSTODY,sja.MAILING,sja.RESIDENCE FROM ADDRESS a,STUDENTS_JOIN_ADDRESS sja WHERE a.ADDRESS_ID=sja.ADDRESS_ID AND sja.STUDENT_ID='".UserStudentID()."' AND NOT EXISTS (SELECT '' FROM STUDENTS_JOIN_PEOPLE sjp WHERE sjp.STUDENT_ID=sja.STUDENT_ID AND sjp.ADDRESS_ID=a.ADDRESS_ID) ORDER BY CUSTODY ASC,STUDENT_RELATION"),array(),array('ADDRESS_ID'));
+if(!$_REQUEST['modfunc']) {
+ $addresses_RET = DBGet(DBQuery("SELECT a.ADDRESS_ID, sjp.STUDENT_RELATION,a.ADDRESS,a.STREET,a.CITY,a.STATE,a.ZIPCODE,a.BUS_NO,a.BUS_PICKUP,a.BUS_DROPOFF,a.MAIL_ADDRESS,a.MAIL_STREET,a.MAIL_CITY,a.MAIL_STATE,a.MAIL_ZIPCODE,a.PRIM_STUDENT_RELATION,a.PRI_FIRST_NAME,a.PRI_LAST_NAME,a.HOME_PHONE,a.WORK_PHONE,a.MOBILE_PHONE,a.EMAIL,a.PRIM_CUSTODY,a.PRIM_ADDRESS,a.PRIM_STREET,a.PRIM_CITY,a.PRIM_STATE,a.PRIM_ZIPCODE,a.SEC_STUDENT_RELATION,a.SEC_FIRST_NAME,a.SEC_LAST_NAME,a.SEC_HOME_PHONE,a.SEC_WORK_PHONE,a.SEC_MOBILE_PHONE,a.SEC_EMAIL,a.SEC_CUSTODY,a.SEC_ADDRESS,a.SEC_STREET,a.SEC_CITY,a.SEC_STATE,a.SEC_ZIPCODE, sjp.CUSTODY,sja.MAILING,sja.RESIDENCE FROM ADDRESS a,STUDENTS_JOIN_ADDRESS sja,STUDENTS_JOIN_PEOPLE sjp WHERE a.ADDRESS_ID=sja.ADDRESS_ID AND sja.STUDENT_ID='".UserStudentID()."' AND a.ADDRESS_ID=sjp.ADDRESS_ID AND sjp.STUDENT_ID=sja.STUDENT_ID" .
+ " UNION SELECT a.ADDRESS_ID,'' AS STUDENT_RELATION,a.ADDRESS,a.STREET,a.CITY,a.STATE,a.ZIPCODE,a.BUS_NO,a.BUS_PICKUP,a.BUS_DROPOFF,a.MAIL_ADDRESS,a.MAIL_STREET,a.MAIL_CITY,a.MAIL_STATE,a.MAIL_ZIPCODE,a.PRIM_STUDENT_RELATION,a.PRI_FIRST_NAME,a.PRI_LAST_NAME,a.HOME_PHONE,a.WORK_PHONE,a.MOBILE_PHONE,a.EMAIL,a.PRIM_CUSTODY,a.PRIM_ADDRESS,a.PRIM_STREET,a.PRIM_CITY,a.PRIM_STATE,a.PRIM_ZIPCODE,a.SEC_STUDENT_RELATION,a.SEC_FIRST_NAME,a.SEC_LAST_NAME,a.SEC_HOME_PHONE,a.SEC_WORK_PHONE,a.SEC_MOBILE_PHONE,a.SEC_EMAIL,a.SEC_CUSTODY,a.SEC_ADDRESS,a.SEC_STREET,a.SEC_CITY,a.SEC_STATE,a.SEC_ZIPCODE,a.PRIM_CUSTODY AS CUSTODY,sja.MAILING,sja.RESIDENCE FROM ADDRESS a,STUDENTS_JOIN_ADDRESS sja WHERE a.ADDRESS_ID=sja.ADDRESS_ID AND sja.STUDENT_ID='".UserStudentID()."' AND NOT EXISTS (SELECT '' FROM STUDENTS_JOIN_PEOPLE sjp WHERE sjp.STUDENT_ID=sja.STUDENT_ID AND sjp.ADDRESS_ID=a.ADDRESS_ID) ORDER BY CUSTODY ASC,STUDENT_RELATION"),array(),array('ADDRESS_ID'));
- if(count($addresses_RET)==1 && $_REQUEST['address_id']!='new' && $_REQUEST['address_id']!='old' && $_REQUEST['address_id']!='0')
- $_REQUEST['address_id'] = key($addresses_RET);
+ if(count($addresses_RET)==1 && $_REQUEST['address_id']!='new' && $_REQUEST['address_id']!='old' && $_REQUEST['address_id']!='0')
+ $_REQUEST['address_id'] = key($addresses_RET);
- echo '<TABLE border=0><TR><TD valign=top>'; // table 1
- echo '<TABLE border=0><TR><TD valign=top>'; // table 2
- echo '<TABLE border=0 cellpadding=0 cellspacing=0>'; // table 3
- if(count($addresses_RET)>0 || $_REQUEST['address_id']=='new' || $_REQUEST['address_id']=='0')
- {
- $i = 1;
- if(!isset($_REQUEST['address_id']))
- $_REQUEST['address_id'] = key($addresses_RET);
+ echo '<TABLE border=0><TR><TD valign=top>'; // table 1
+ echo '<TABLE border=0><TR><TD valign=top>'; // table 2
+ echo '<TABLE border=0 cellpadding=0 cellspacing=0>'; // table 3
+ if(count($addresses_RET)>0 || $_REQUEST['address_id']=='new' || $_REQUEST['address_id']=='0') {
+ $i = 1;
+ if(!isset($_REQUEST['address_id']))
+ $_REQUEST['address_id'] = key($addresses_RET);
- if(count($addresses_RET))
- {
- foreach($addresses_RET as $address_id=>$addresses)
- {
- echo '<TR>';
+ if(count($addresses_RET)) {
+ foreach($addresses_RET as $address_id=>$addresses) {
+ echo '<TR>';
- // find other students associated with this address
- $xstudents = DBGet(DBQuery("SELECT s.STUDENT_ID,CONCAT(s.FIRST_NAME,' ',s.LAST_NAME) AS FULL_NAME,RESIDENCE,BUS_PICKUP,BUS_DROPOFF,MAILING FROM STUDENTS s,STUDENTS_JOIN_ADDRESS sja WHERE s.STUDENT_ID=sja.STUDENT_ID AND sja.ADDRESS_ID='$address_id' AND sja.STUDENT_ID!='".UserStudentID()."'"));
- if(count($xstudents))
- {
- $warning = 'Other students associated with this address:<BR>';
- foreach($xstudents as $xstudent)
- {
- $ximages = '';
- if($xstudent['RESIDENCE']=='Y')
- $ximages .= ' <IMG SRC=assets/house_button.gif>';
- if($xstudent['BUS_PICKUP']=='Y' || $xstudent['BUS_DROPOFF']=='Y')
- $ximages .= ' <IMG SRC=assets/bus_button.gif>';
- if($xstudent['MAILING']=='Y')
- $ximages .= ' <IMG SRC=assets/mailbox_button.gif>';
- $warning .= '<b>'.str_replace(array("'",'"'),array(''','”'),$xstudent['FULL_NAME']).'</b>'.$ximages.'<BR>';
- }
- echo '<TD>'.button('warning','','# onMouseOver=\'stm(["Warning","'.$warning.'"],["white","#006699","","","",,"black","#e8e8ff","","","",,,,2,"#006699",2,,,,,"",,,,]);\' onMouseOut=\'htm()\'').'</TD>';
- }
- else
- echo '<TD></TD>';
+ // find other students associated with this address
+ $xstudents = DBGet(DBQuery("SELECT s.STUDENT_ID,CONCAT(s.FIRST_NAME,' ',s.LAST_NAME) AS FULL_NAME,RESIDENCE,BUS_PICKUP,BUS_DROPOFF,MAILING FROM STUDENTS s,STUDENTS_JOIN_ADDRESS sja WHERE s.STUDENT_ID=sja.STUDENT_ID AND sja.ADDRESS_ID='$address_id' AND sja.STUDENT_ID!='".UserStudentID()."'"));
+ if(count($xstudents)) {
+ $warning = 'Other students associated with this address:<BR>';
+ foreach($xstudents as $xstudent) {
+ $ximages = '';
+ if($xstudent['RESIDENCE']=='Y')
+ $ximages .= ' <IMG SRC=assets/house_button.gif>';
+ if($xstudent['BUS_PICKUP']=='Y' || $xstudent['BUS_DROPOFF']=='Y')
+ $ximages .= ' <IMG SRC=assets/bus_button.gif>';
+ if($xstudent['MAILING']=='Y')
+ $ximages .= ' <IMG SRC=assets/mailbox_button.gif>';
+ $warning .= '<b>'.str_replace(array("'",'"'),array(''','”'),$xstudent['FULL_NAME']).'</b>'.$ximages.'<BR>';
+ }
+ echo '<TD>'.button(get_string('warning', 'Students/includes'),'','# onMouseOver=\'stm(["Warning","'.$warning.'"],["white","#006699","","","",,"black","#e8e8ff","","","",,,,2,"#006699",2,,,,,"",,,,]);\' onMouseOut=\'htm()\'').'</TD>';
+ }
+ else
+ echo '<TD></TD>';
- $relation_list = '';
- foreach($addresses as $address)
- $relation_list .= ($address['STUDENT_RELATION']&&strpos($address['STUDENT_RELATION'].', ',$relation_list)==false?$address['STUDENT_RELATION']:'---').', ';
- $address = $addresses[1];
- $relation_list = substr($relation_list,0,-2);
+ $relation_list = '';
+ foreach($addresses as $address)
+ $relation_list .= ($address['STUDENT_RELATION']&&strpos($address['STUDENT_RELATION'].', ',$relation_list)==false?$address['STUDENT_RELATION']:'---').', ';
+ $address = $addresses[1];
+ $relation_list = substr($relation_list,0,-2);
- $images = '';
- if($address['RESIDENCE']=='Y')
- #$images .= ' <IMG SRC=assets/house_button.gif>';
- if($address['BUS_PICKUP']=='Y' || $address['BUS_DROPOFF']=='Y')
- #$images .= ' <IMG SRC=assets/bus_button.gif>';
- if($address['MAILING']=='Y')
- #$images .= ' <IMG SRC=assets/mailbox_button.gif>';
- echo '<TD colspan=2 style="border:0; border-style: none none solid none;"><B>'.$relation_list.'</B>'.($relation_list&&$images?'<BR>':'').$images.'</TD>';
+ $images = '';
+ if($address['RESIDENCE']=='Y')
+ if($address['BUS_PICKUP']=='Y' || $address['BUS_DROPOFF']=='Y')
+ if($address['MAILING']=='Y')
+ echo '<TD colspan=2 style="border:0; border-style: none none solid none;"><B>'.$relation_list.'</B>'.($relation_list&&$images?'<BR>':'').$images.'</TD>';
- echo '</TR>';
+ echo '</TR>';
- $style = '';
- if($i!=count($addresses_RET))
- $style = ' style="border:1; border-style: none none dashed none;"';
- elseif($i!=1)
- $style = ' style="border:1; border-style: dashed none none none;"';
- $style .= ' ';
+ $style = '';
+ if($i!=count($addresses_RET))
+ $style = ' style="border:1; border-style: none none dashed none;"';
+ elseif($i!=1)
+ $style = ' style="border:1; border-style: dashed none none none;"';
+ $style .= ' ';
- if($address_id==$_REQUEST['address_id'] && $_REQUEST['address_id']!='0' && $_REQUEST['address_id']!='new')
- $this_address = $address;
+ if($address_id==$_REQUEST['address_id'] && $_REQUEST['address_id']!='0' && $_REQUEST['address_id']!='new')
+ $this_address = $address;
- $i++;
- $link = 'onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&include='.$_REQUEST['include'].'&address_id='.$address['ADDRESS_ID'].'\';"';
- echo '</TD>';
- echo '<TD></TD>';
- echo '</TR>';
- }
- echo '<TR><TD colspan=3 height=40></TD></TR>';
- }
- }
- else
- echo '';
-
- ############################################################################################
-
- $style = '';
- if($_REQUEST['person_id']=='new')
- {
- if($_REQUEST['address_id']!='new')
- echo '<TR onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&include='.$_REQUEST['include'].'&address_id='.$_REQUEST['address_id'].'\';" ><TD>';
- else
- echo '<TR onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&include='.$_REQUEST['include'].'&address_id=new\';" ><TD>';
- echo '<A style="cursor:pointer"><b>Student\'s Address </b></A>';
- }
- else
- {
- echo '<TR onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&include='.$_REQUEST['include'].'&address_id=$_REQUEST[address_id]\';" onmouseover=\'this.style.color="white";\'><TD>';
- if($_REQUEST['person_id']==$contact['PERSON_ID'])
- echo '<A style="cursor:pointer;color:#FF0000"><b>Student\'s Address </b></A>';
- elseif($_REQUEST['person_id']!=$contact['PERSON_ID'])
- echo '<A style="cursor:pointer"><b>Student\'s Address </b></A>';
- else
- echo '<A style="cursor:pointer;color:#FF0000"><b>Student\'s Address </b></A>';
- }
- echo '</TD>';
- echo '<TD><A><IMG SRC=assets/arrow_right.gif></A></TD>';
- echo '</TR><tr><td colspan=2 class=break></td></tr>';
-
-
- $contacts_RET = DBGet(DBQuery("SELECT p.PERSON_ID,p.FIRST_NAME,p.MIDDLE_NAME,p.LAST_NAME,sjp.ADDN_HOME_PHONE,sjp.ADDN_WORK_PHONE,sjp.ADDN_MOBILE_PHONE,sjp.ADDN_EMAIL,sjp.CUSTODY,sjp.ADDN_ADDRESS,sjp.ADDN_BUS_PICKUP,sjp.ADDN_BUS_DROPOFF,sjp.ADDN_BUSNO,sjp.ADDN_STREET,sjp.ADDN_CITY,sjp.ADDN_STATE,sjp.ADDN_ZIPCODE,sjp.EMERGENCY,sjp.STUDENT_RELATION FROM PEOPLE p,STUDENTS_JOIN_PEOPLE sjp WHERE p.PERSON_ID=sjp.PERSON_ID AND sjp.STUDENT_ID='".UserStudentID()."' ORDER BY sjp.STUDENT_RELATION"));
- $i = 1;
- if(count($contacts_RET))
- {
- foreach($contacts_RET as $contact)
- {
- $THIS_RET = $contact;
- if($contact['PERSON_ID']==$_REQUEST['person_id'])
- $this_contact = $contact;
- $style .= ' ';
+ $i++;
+ $link = 'onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&include='.$_REQUEST['include'].'&address_id='.$address['ADDRESS_ID'].'\';"';
+ echo '</TD>';
+ echo '<TD></TD>';
+ echo '</TR>';
+ }
+ echo '<TR><TD colspan=3 height=40></TD></TR>';
+ }
+ }
+ else
+ echo '';
- $i++;
- $link = 'onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&include='.$_REQUEST['include'].'&address_id='.$_REQUEST['address_id'].'&person_id='.$contact['PERSON_ID'].'&con_info=old\';"';
- if(AllowEdit())
- $remove_button = button('remove','',"Modules.php?modname=$_REQUEST[modname]&include=$_REQUEST[include]&modfunc=delete&address_id=$_REQUEST[address_id]&person_id=$contact[PERSON_ID]",20);
- else
- $remove_button = '';
- if($_REQUEST['person_id']==$contact['PERSON_ID'])
- echo '<TR><td><table border=0><TR><TD width=20 align=right'.$style.'>'.$remove_button.'</TD><TD '.$link.' '.$style.'>';
- else
- echo '<TR><td><table border=0><TR><TD width=20 align=right'.$style.'>'.$remove_button.'</TD><TD '.$link.' '.$style.' style=white-space:nowrap>';
+ ############################################################################################
- $images = '';
+ $style = '';
+ if($_REQUEST['person_id']=='new') {
+ if($_REQUEST['address_id']!='new')
+ echo '<TR onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&include='.$_REQUEST['include'].'&address_id='.$_REQUEST['address_id'].'\';" ><TD>';
+ else
+ echo '<TR onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&include='.$_REQUEST['include'].'&address_id=new\';" ><TD>';
+ echo '<A style="cursor:pointer"><b>Student\'s Address </b></A>';
+ }
+ else {
+ echo '<TR onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&include='.$_REQUEST['include'].'&address_id=$_REQUEST[address_id]\';" onmouseover=\'this.style.color="white";\'><TD>';
+ if($_REQUEST['person_id']==$contact['PERSON_ID'])
+ echo '<A style="cursor:pointer;color:#FF0000"><b>' . get_string('studentAddress', 'Students/includes') . '</b></A>';
+ elseif($_REQUEST['person_id']!=$contact['PERSON_ID'])
+ echo '<A style="cursor:pointer"><b>' . get_string('studentAddress', 'Students/includes') . '</b></A>';
+ else
+ echo '<A style="cursor:pointer;color:#FF0000"><b>' . get_string('studentAddress', 'Students/includes') . '</b></A>';
+ }
+ echo '</TD>';
+ echo '<TD><A><IMG SRC=assets/arrow_right.gif></A></TD>';
+ echo '</TR><tr><td colspan=2 class=break></td></tr>';
- // find other students associated with this person
- $xstudents = DBGet(DBQuery("SELECT s.STUDENT_ID,CONCAT(s.FIRST_NAME,' ',s.LAST_NAME) AS FULL_NAME,STUDENT_RELATION,CUSTODY,EMERGENCY FROM STUDENTS s,STUDENTS_JOIN_PEOPLE sjp WHERE s.STUDENT_ID=sjp.STUDENT_ID AND sjp.PERSON_ID='$contact[PERSON_ID]' AND sjp.STUDENT_ID!='".UserStudentID()."'"));
- if(count($xstudents))
- {
- $warning = 'Other students associated with this person:<BR>';
- foreach($xstudents as $xstudent)
- {
- $ximages = '';
- if($xstudent['CUSTODY']=='Y')
- $ximages .= ' <IMG SRC=assets/gavel_button.gif>';
- if($xstudent['EMERGENCY']=='Y')
- $ximages .= ' <IMG SRC=assets/emergency_button.gif>';
- $warning .= '<b>'.str_replace(array("'",'"'),array(''','”'),$xstudent['FULL_NAME']).'</b> ('.($xstudent['STUDENT_RELATION']?str_replace(array("'",'"'),array(''','”'),$xstudent['STUDENT_RELATION']):'---').')'.$ximages.'<BR>';
- }
- $images .= ' '.button('warning','','# onMouseOver=\'stm(["Warning","'.$warning.'"],["white","#006699","","","",,"black","#e8e8ff","","","",,,,2,"#006699",2,,,,,"",,,,]);\' onMouseOut=\'htm()\'');
- }
- if($contact['CUSTODY']=='Y')
- $images .= ' <IMG SRC=assets/gavel_button.gif>';
- if($contact['EMERGENCY']=='Y')
- $images .= ' <IMG SRC=assets/emergency_button.gif>';
-if ($_REQUEST['person_id']==$contact['PERSON_ID']) {
- echo '<A style="cursor:pointer; font-weight:bold;color:#ff0000" >'.($contact['STUDENT_RELATION']?$contact['STUDENT_RELATION']:'---').''.$images.'</A>';
- } else {
- echo '<A style="cursor:pointer; font-weight:bold;" >'.($contact['STUDENT_RELATION']?$contact['STUDENT_RELATION']:'---').''.$images.'</A>';
- }
- echo '</TD>';
- echo '<TD valign=middle align=right> <A style="cursor: pointer;"><IMG SRC=assets/arrow_right.gif></A></TD>';
- echo '</TR></table></td></tr>';
- }
- }
- ############################################################################################
-
- // New Address
- if(AllowEdit())
- {
- if($_REQUEST['address_id']!=='new' && $_REQUEST['address_id']!=='old')
- {
+ $contacts_RET = DBGet(DBQuery("SELECT p.PERSON_ID,p.FIRST_NAME,p.MIDDLE_NAME,p.LAST_NAME,sjp.ADDN_HOME_PHONE,sjp.ADDN_WORK_PHONE,sjp.ADDN_MOBILE_PHONE,sjp.ADDN_EMAIL,sjp.CUSTODY,sjp.ADDN_ADDRESS,sjp.ADDN_BUS_PICKUP,sjp.ADDN_BUS_DROPOFF,sjp.ADDN_BUSNO,sjp.ADDN_STREET,sjp.ADDN_CITY,sjp.ADDN_STATE,sjp.ADDN_ZIPCODE,sjp.EMERGENCY,sjp.STUDENT_RELATION FROM PEOPLE p,STUDENTS_JOIN_PEOPLE sjp WHERE p.PERSON_ID=sjp.PERSON_ID AND sjp.STUDENT_ID='".UserStudentID()."' ORDER BY sjp.STUDENT_RELATION"));
+ $i = 1;
+ if(count($contacts_RET)) {
+ foreach($contacts_RET as $contact) {
+ $THIS_RET = $contact;
+ if($contact['PERSON_ID']==$_REQUEST['person_id'])
+ $this_contact = $contact;
+ $style .= ' ';
- echo '<TABLE width=100%><TR><TD>';
- if($_REQUEST['address_id']==0)
- echo '<TABLE border=0 cellpadding=0 cellspacing=0 width=100%>';
- else
- echo '<TABLE border=0 cellpadding=0 cellspacing=0 width=100%>';
- // New Contact
- if(AllowEdit())
- {
- $style = 'class=break';
- }
+ $i++;
+ $link = 'onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&include='.$_REQUEST['include'].'&address_id='.$_REQUEST['address_id'].'&person_id='.$contact['PERSON_ID'].'&con_info=old\';"';
+ if(AllowEdit())
+ $remove_button = button(get_string('remove', 'Students/includes'),'',"Modules.php?modname=$_REQUEST[modname]&include=$_REQUEST[include]&modfunc=delete&address_id=$_REQUEST[address_id]&person_id=$contact[PERSON_ID]",20);
+ else
+ $remove_button = '';
+ if($_REQUEST['person_id']==$contact['PERSON_ID'])
+ echo '<TR><td><table border=0><TR><TD width=20 align=right'.$style.'>'.$remove_button.'</TD><TD '.$link.' '.$style.'>';
+ else
+ echo '<TR><td><table border=0><TR><TD width=20 align=right'.$style.'>'.$remove_button.'</TD><TD '.$link.' '.$style.' style=white-space:nowrap>';
- echo '</TABLE>';
- }
+ $images = '';
- if($_REQUEST['person_id']=='new')
- {
- echo '<TR onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&include='.$_REQUEST['include'].'&address_id='.$_REQUEST['address_id'].'&person_id=new&con_info=old\';" onmouseover=\'this.style.color="white";\' ><TD>';
- echo '<A style="cursor: pointer;color:#FF0000"><b>Add New Contact</b></A>';
- }
- else
- {
- echo '<TR onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&include='.$_REQUEST['include'].'&address_id='.$_REQUEST['address_id'].'&person_id=new&con_info=old\';" onmouseover=\'this.style.color="white";\' ><TD>';
- echo '<A style="cursor: pointer;"><b>Add New Contact</b></A>';
- }
- echo '</TD>';
- echo '<TD><IMG SRC=assets/arrow_right.gif></TD>';
- echo '</TR>';
+ // find other students associated with this person
+ $xstudents = DBGet(DBQuery("SELECT s.STUDENT_ID,CONCAT(s.FIRST_NAME,' ',s.LAST_NAME) AS FULL_NAME,STUDENT_RELATION,CUSTODY,EMERGENCY FROM STUDENTS s,STUDENTS_JOIN_PEOPLE sjp WHERE s.STUDENT_ID=sjp.STUDENT_ID AND sjp.PERSON_ID='$contact[PERSON_ID]' AND sjp.STUDENT_ID!='".UserStudentID()."'"));
+ if(count($xstudents)) {
+ $warning = get_string('otherStudentsAssociatedWithThisPerson', 'Students/includes') . ':<BR>';
+ foreach($xstudents as $xstudent) {
+ $ximages = '';
+ if($xstudent['CUSTODY']=='Y')
+ $ximages .= ' <IMG SRC=assets/gavel_button.gif>';
+ if($xstudent['EMERGENCY']=='Y')
+ $ximages .= ' <IMG SRC=assets/emergency_button.gif>';
+ $warning .= '<b>'.str_replace(array("'",'"'),array(''','”'),$xstudent['FULL_NAME']).'</b> ('.($xstudent['STUDENT_RELATION']?str_replace(array("'",'"'),array(''','”'),$xstudent['STUDENT_RELATION']):'---').')'.$ximages.'<BR>';
+ }
+ $images .= ' '.button(get_string('remove', 'Students/includes'),'','# onMouseOver=\'stm(["Warning","'.$warning.'"],["white","#006699","","","",,"black","#e8e8ff","","","",,,,2,"#006699",2,,,,,"",,,,]);\' onMouseOut=\'htm()\'');
+ }
- }
- echo '</TABLE>';
- echo '</TD>';
- echo '<TD class=vbreak> </TD><TD valign=top>';
+ if($contact['CUSTODY']=='Y')
+ $images .= ' <IMG SRC=assets/gavel_button.gif>';
+ if($contact['EMERGENCY']=='Y')
+ $images .= ' <IMG SRC=assets/emergency_button.gif>';
+ if ($_REQUEST['person_id']==$contact['PERSON_ID']) {
+ echo '<A style="cursor:pointer; font-weight:bold;color:#ff0000" >'.($contact['STUDENT_RELATION']?$contact['STUDENT_RELATION']:'---').''.$images.'</A>';
+ } else {
+ echo '<A style="cursor:pointer; font-weight:bold;" >'.($contact['STUDENT_RELATION']?$contact['STUDENT_RELATION']:'---').''.$images.'</A>';
+ }
+ echo '</TD>';
+ echo '<TD valign=middle align=right> <A style="cursor: pointer;"><IMG SRC=assets/arrow_right.gif></A></TD>';
+ echo '</TR></table></td></tr>';
+ }
+ }
+ ############################################################################################
- if(isset($_REQUEST['address_id']) && $_REQUEST['con_info']!='old')
- {
- echo "<INPUT type=hidden name=address_id value=$_REQUEST[address_id]>";
+ // New Address
+ if(AllowEdit()) {
+ if($_REQUEST['address_id']!=='new' && $_REQUEST['address_id']!=='old') {
- if($_REQUEST['address_id']!='0' && $_REQUEST['address_id']!=='old')
- {
- if($_REQUEST['address_id']=='new')
- $size = true;
- else
- $size = false;
+ echo '<TABLE width=100%><TR><TD>';
+ if($_REQUEST['address_id']==0)
+ echo '<TABLE border=0 cellpadding=0 cellspacing=0 width=100%>';
+ else
+ echo '<TABLE border=0 cellpadding=0 cellspacing=0 width=100%>';
+ // New Contact
+ if(AllowEdit()) {
+ $style = 'class=break';
+ }
- $city_options = _makeAutoSelect('CITY','ADDRESS',array(array('CITY'=>$this_address['CITY']),array('CITY'=>$this_address['MAIL_CITY'])),$city_options);
- $state_options = _makeAutoSelect('STATE','ADDRESS',array(array('STATE'=>$this_address['STATE']),array('STATE'=>$this_address['MAIL_STATE'])),$state_options);
- $zip_options = _makeAutoSelect('ZIPCODE','ADDRESS',array(array('ZIPCODE'=>$this_address['ZIPCODE']),array('ZIPCODE'=>$this_address['MAIL_ZIPCODE'])),$zip_options);
+ echo '</TABLE>';
+ }
- echo '<TABLE width=100%><TR><TD>'; // open 3a
- echo '<FIELDSET><LEGEND><FONT color=gray>Student\'s Home Address</FONT></LEGEND><TABLE width=100%>';
- echo '<TR><td><span class=red>*</span>Address Line 1</td><td>:</td><TD style=\"white-space:nowrap\"><table cellspacing=0 cellpadding=0 cellspacing=0 cellpadding=0 border=0><tr><td>'.TextInput($this_address['ADDRESS'],'values[ADDRESS][ADDRESS]','','class=cell_medium').'</td><td>';
- if($_REQUEST['address_id']!='new' && $_REQUEST['address_id']!='0')
- {
- $display_address = urlencode($this_address['ADDRESS'].', '.($this_address['CITY']?' '.$this_address['CITY'].', ':'').$this_address['STATE'].($this_address['ZIPCODE']?' '.$this_address['ZIPCODE']:''));
- $link = 'http://google.com/maps?q='.$display_address;
- echo ' <A class=red HREF=# onclick=\'window.open("'.$link.'","","scrollbars=yes,resizable=yes,width=800,height=700");\'>Map it</A>';
- }
- echo '</td></tr></table></TD></tr>';
- echo '<TR><td>Address Line 2</td><td>:</td><TD>'.TextInput($this_address['STREET'],'values[ADDRESS][STREET]','','class=cell_medium').'</TD></tr>';
- echo '<TR><td><span class=red>*</span>City</td><td>:</td><TD>'.TextInput($this_address['CITY'],'values[ADDRESS][CITY]','','class=cell_medium').'</TD></tr>';
- ...
[truncated message content] |
|
From: <aec...@us...> - 2010-02-10 02:52:53
|
Revision: 416
http://opensis.svn.sourceforge.net/opensis/?rev=416&view=rev
Author: aecioneto
Date: 2010-02-10 02:52:46 +0000 (Wed, 10 Feb 2010)
Log Message:
-----------
90% of student module with english terms. Pending files inside include subdir only.
Modified Paths:
--------------
trunk/lang/en_utf8/Students/General_Info.inc.php
trunk/modules/Students/AddDrop.php
trunk/modules/Students/AddUsers.php
trunk/modules/Students/AddressFields.php
trunk/modules/Students/AdvancedReport.php
trunk/modules/Students/AssignOtherInfo.php
trunk/modules/Students/EnrollmentCodes.php
trunk/modules/Students/Letters.php
trunk/modules/Students/MailingLabels.php
trunk/modules/Students/PeopleFields.php
trunk/modules/Students/PrintStudentInfo.php
trunk/modules/Students/Search.inc.php
trunk/modules/Students/Search.php
trunk/modules/Students/Student.php
trunk/modules/Students/StudentFields.php
trunk/modules/Students/StudentLabels.php
trunk/modules/Students/Upload.php
trunk/modules/Students/config.inc.php
trunk/modules/Students/includes/General_Info.inc.php
Added Paths:
-----------
trunk/lang/en_utf8/students.php
Removed Paths:
-------------
trunk/lang/en_utf8/Students/Letters.php
trunk/lang/en_utf8/Students/Search.php
trunk/lang/en_utf8/Students/StuBilling.inc.php
trunk/lang/en_utf8/Students/Student.php
trunk/lang/en_utf8/Students/StudentFields.php
Modified: trunk/lang/en_utf8/Students/General_Info.inc.php
===================================================================
--- trunk/lang/en_utf8/Students/General_Info.inc.php 2010-02-08 20:09:48 UTC (rev 415)
+++ trunk/lang/en_utf8/Students/General_Info.inc.php 2010-02-10 02:52:46 UTC (rev 416)
@@ -14,15 +14,8 @@
$string['First']="First tr";
$string['Middle']="Middle tr";
$string['Last']="Last tr";
-/*$string['']="";
-$string['']="";
-$string['']="";
-$string['']="";
-$string['']="";
-$string['']="";
-$string['']="";
-$string['']="";
-*/
+#
+#
$string['Female']="Female tr";
$string['Male']="Male tr";
$string['Language']="Language: tr";
Deleted: trunk/lang/en_utf8/Students/Letters.php
===================================================================
--- trunk/lang/en_utf8/Students/Letters.php 2010-02-08 20:09:48 UTC (rev 415)
+++ trunk/lang/en_utf8/Students/Letters.php 2010-02-10 02:52:46 UTC (rev 416)
@@ -1,9 +0,0 @@
-<?
-
-$string['nostudentswerefound'] = 'No Students were found.' ;
-$string['course'] = 'Course';
-
-
-
-
-?>
\ No newline at end of file
Deleted: trunk/lang/en_utf8/Students/Search.php
===================================================================
--- trunk/lang/en_utf8/Students/Search.php 2010-02-08 20:09:48 UTC (rev 415)
+++ trunk/lang/en_utf8/Students/Search.php 2010-02-10 02:52:46 UTC (rev 416)
@@ -1,19 +0,0 @@
-<?php
- /*This are messages on Search of Students Module, in English*/
-
- $string["groupbyfamily"] = "Group by Family tr" ;
- $string["searchallschools"] = "Search All School tr" ;
- $string["includeinactivestudents"] = "Include Inactive Students tr" ;
- $string["submit"] = "Submit tr" ;
- $string["reset"] = "Reset tr" ;
- $string["expandedview"] = "Expanded View tr" ;
- $string["originalview"] = "Original View tr" ;
- $string["nostudentswerefound"] = "No Students were found. tr" ;
- $string["findastudent"] = "Find a Student tr" ;
- $string["student"] = "Student tr" ;
- $string["students"] = "Students tr" ;
- $string["family"] = "Family tr" ;
- $string["families"] = "Families tr" ;
- $string["studentid"] = "Student ID tr" ;
- $string["grade"] = "Grade tr" ;
-?>
\ No newline at end of file
Deleted: trunk/lang/en_utf8/Students/StuBilling.inc.php
===================================================================
--- trunk/lang/en_utf8/Students/StuBilling.inc.php 2010-02-08 20:09:48 UTC (rev 415)
+++ trunk/lang/en_utf8/Students/StuBilling.inc.php 2010-02-10 02:52:46 UTC (rev 416)
@@ -1,359 +0,0 @@
-<?php
-include_once('modules/StudentInfo/StuBillingFunctions.php');
-if(!defined('SSMSTUDENT_ID'))
- define('SSMSTUDENT_ID','ssm.STUDENT_ID');
-if(!defined('STU_SCHOOL_MEETS'))
- define('STU_SCHOOL_MEETS','STU_SCHOOL_MEETS');
-
-$student_id = $_REQUEST[f_stuid];
-$editor = $_REQUEST[editor];
-
-if($_REQUEST[stumodfunc]=='add_fee')
-{
- $new_date = $_REQUEST[day_new_fee].'-'.$_REQUEST[month_new_fee].'-'.$_REQUEST[year_new_fee];
- if($new_date=='--')
- $new_date = '';
- if($_REQUEST['defined'])
- {
- $sql = "SELECT SYEAR,TITLE,AMOUNT,DUE_DATE,ACCOUNT_ID FROM STU_BILLING_DEFINED_FEES WHERE ID='$_REQUEST[defined]'";
- $defined = DBGet(DBQuery($sql));
- $defined = $defined[1];
- DBQuery("INSERT INTO STU_BILLING_FEES (ID,SYEAR,STUDENT_ID,TITLE,AMOUNT,DUE_DATE,EFFECTIVE_DATE,DEFINED_ID,ACCOUNT_ID) values(".db_seq_nextval('STU_BILLING_FEES_SEQ').",'$defined[SYEAR]','$student_id','$defined[TITLE]','$defined[AMOUNT]','$defined[DUE_DATE]','".DBDate()."','$_REQUEST[defined]','$defined[ACCOUNT_ID]')");
- }
- else
- DBQuery("INSERT INTO STU_BILLING_FEES (ID,SYEAR,STUDENT_ID,TITLE,AMOUNT,DUE_DATE,EFFECTIVE_DATE,ACCOUNT_ID) values(".db_seq_nextval('STU_BILLING_FEES_SEQ').",'$_REQUEST[f_year]','$student_id','$_REQUEST[new_fee_title]','".str_replace('$','',str_replace(',','',$_REQUEST[new_fee_amount]))."','$new_date','".DBDate()."','$_REQUEST[account_id]')");
- $note[] = 'That Fee has been Added';
- $_REQUEST[stumodfunc] = '';
-}
-
-if($_REQUEST[stumodfunc]=='add_payment')
-{
- $new_date = $_REQUEST[day_new_payment].'-'.$_REQUEST[month_new_payment].'-'.$_REQUEST[year_new_payment];
- if($new_date=='--')
- $new_date = '';
- $_REQUEST[payment]['new'] = str_replace('$','',str_replace(',','',$_REQUEST[payment]['new']));
- if($_REQUEST['payment']['new'])
- {
- if($editor=='lunch')
- $lunch = 'Y';
- DBQuery("INSERT INTO STU_BILLING_ACT (ID,SYEAR,STUDENT_ID,AMOUNT,PAYMENT_DATE,LUNCH_PAYMENT,ACT_COMMENT,ACCOUNT_ID) values(".db_seq_nextval('STU_BILLING_ACT_SEQ').",'$_REQUEST[f_year]','$student_id','{$_REQUEST[payment]['new']}','".$new_date."','$lunch','$_REQUEST[act_comment]','$_REQUEST[account_id]')");
- $note[] = 'That Payment has been Added';
- }
- $_REQUEST[stumodfunc] = '';
-}
-
-if($_REQUEST[stumodfunc]=='delete_payment')
-{
- if(DeletePrompt('payment'))
- {
- if($editor=='lunch')
- {
- $QI = DBQuery("SELECT AMOUNT FROM STU_BILLING_ACT WHERE ID='$_REQUEST[payment_id]' AND STUDENT_ID='$student_id'");
- $amount = DBGet($QI);
- $amount = $amount[1]['AMOUNT'];
- }
- DBQuery("DELETE FROM STU_BILLING_ACT WHERE ID='$_REQUEST[payment_id]'");
- if($_REQUEST[payment_id]!=0)
- $note[] = 'That Payment has been Deleted';
- else
- $note[] = 'That payment could not be deleted since it is a previous amount. Try deleting the previous transactions in the school year in which they were made.';
- $_REQUEST[stumodfunc] = '';
- }
-}
-
-if($_REQUEST[stumodfunc]=='delete_fee')
-{
- if(DeletePrompt('fee'))
- {
- if($editor=='lunch')
- {
- $QI = DBQuery("SELECT AMOUNT FROM STU_BILLING_ACT_LUNCH WHERE ID='$_REQUEST[fee_id]' AND STUDENT_ID='$student_id'");
- $amount = DBGet($QI);
- $amount = $amount[1]['AMOUNT'];
- DBQuery("DELETE FROM STU_BILLING_ACT_LUNCH WHERE ID='$_REQUEST[fee_id]' AND STUDENT_ID='$student_id'");
- }
- else
- {
- DBQuery("DELETE FROM STU_BILLING_FEES WHERE ID='$_REQUEST[fee_id]' AND STUDENT_ID='$student_id'");
- DBQuery("DELETE FROM STU_BILLING_FEES WHERE FORGIVEN_FEE_ID='$_REQUEST[fee_id]' AND STUDENT_ID='$student_id'");
- }
- if($_REQUEST[fee_id]!=0)
- $note[] = 'That Fee has been Deleted';
- else
- $note[] = 'That fee could not be deleted since it is a previous amount. Try deleting the previous transactions in the school year in which they were made.';
- $_REQUEST[stumodfunc] = '';
- }
-}
-
-if($_REQUEST[stumodfunc]=='forgive_fee')
-{
- $sql = "SELECT FORGIVEN_FEE_ID FROM STU_BILLING_FEES WHERE STUDENT_ID='$student_id' AND FORGIVEN_FEE_ID='$_REQUEST[fee_id]'";
- $QI = DBQuery($sql);
- $forgiven_RET = DBGet($QI);
- if(!$forgiven_RET[1])
- {
- $sql = "SELECT TITLE,AMOUNT,ACCOUNT_ID FROM STU_BILLING_FEES WHERE ID='$_REQUEST[fee_id]'";
- $QI = DBQuery($sql);
- $RET = DBGet($QI);
-
- DBQuery("INSERT INTO STU_BILLING_FEES (ID,SYEAR,STUDENT_ID,EFFECTIVE_DATE,TITLE,AMOUNT,FORGIVEN_FEE_ID,ACCOUNT_ID) values(".db_seq_nextval('STU_BILLING_FEES_SEQ').",'$_REQUEST[f_year]','$student_id','".DBDate()."','Waived Fee: ".$RET[1][TITLE]." (".SessionUserID().")','".(0-$RET[1][AMOUNT])."','$_REQUEST[fee_id]','".$RET[1][ACCOUNT_ID]."')");
- $note[] = 'That Fee has been Waived';
- }
- else
- $note[] = 'That Fee has Already been Waived';
- $_REQUEST[stumodfunc] = '';
-}
-
-if($_REQUEST[stumodfunc]=='')
-{
- if(!isset($_REQUEST['PDF']))
- echo '<CENTER>';
- if($note)
- ErrorMessage($note,'note');
- echo '<TABLE border=0 width=100%>';
- echo '<TR>';
- echo '<TD width=50% valign=top>';
-
- if($editor!='lunch' && !isset($_REQUEST['PDF']))
- {
- echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]&type=$_REQUEST[type]&f_school=$_REQUEST[f_school]&f_year=$_REQUEST[f_year]&f_stuid=$_REQUEST[f_stuid]&editor=$_REQUEST[editor]&stumodfunc=add_fee METHOD=POST>";
-
- $link[add][html][TITLE] = '<INPUT type=text name=new_fee_title size=12>';
- $grade = DBGet(DBQuery("SELECT GRADE FROM STU_SCHOOL_MEETS WHERE STUDENT_ID='$student_id' AND SYEAR='$_REQUEST[f_year]'"));
- $grade = $grade[1]['GRADE'];
- $sql = "SELECT ID,TITLE,AMOUNT FROM STU_BILLING_DEFINED_FEES WHERE (SCHOOL='$_REQUEST[f_school]' OR SCHOOL IS NULL) AND (GRADE='$grade' OR GRADE IS NULL) AND (SYEAR='$_REQUEST[f_year]')";
- $QI = DBQuery($sql);
- $defined_RET = DBGet($QI);
- if(count($defined_RET))
- {
- $link[add][html][TITLE] .= "<BR><SELECT name=defined><OPTION value=''>Not Specified</OPTION>";
- foreach($defined_RET as $value)
- $link[add][html][TITLE] .= "<OPTION value=$value[ID]>$value[TITLE] - $value[AMOUNT]</OPTION>";
- $link[add][html][TITLE] .= "</SELECT>";
- }
- $link[add][html][AMOUNT] = '<INPUT type=text name=new_fee_amount size=12 value=$>';
- $link[add][html][SB_DATE] = PrepareDate('_new_fee');
- $sql = "SELECT ID,TITLE FROM STU_BILLING_ACCOUNTS WHERE (SCHOOL='$_REQUEST[f_school]' OR SCHOOL IS NULL) AND (SYEAR='$_REQUEST[f_year]')";
- $QI = DBQuery($sql);
- $accounts_RET = DBGet($QI);
- if(count($accounts_RET))
- {
- $link[add][html][ACCOUNT_ID] .= "<BR><SELECT name=account_id><OPTION value=''>Not Specified</OPTION>";
- foreach($accounts_RET as $value)
- $link[add][html][ACCOUNT_ID] .= "<OPTION value=$value[ID]>$value[TITLE]</OPTION>";
- $link[add][html][ACCOUNT_ID] .= "</SELECT>";
- }
-
- $link[add][html][REMOVE] = button('add');
- }
-
- // PREVIOUS BALANCE
- if($editor=='lunch')
- {
- $sql = "SELECT
- (
- SELECT ".db_case(array('sum(sbf.AMOUNT)',"''","'0'",'sum(sbf.AMOUNT)'))."
- FROM STU_BILLING_ACT_LUNCH sbf
- WHERE
- (
- (sbf.SYEAR<'$_REQUEST[f_year]' OR sbf.SYEAR>'50') AND sbf.STUDENT_ID = '$student_id'
- )
- )
- -
- (SELECT ".db_case(array('sum(AMOUNT)',"''","'0'",'sum(AMOUNT)'))." FROM STU_BILLING_ACT WHERE LUNCH_PAYMENT='Y' AND (SYEAR<'$_REQUEST[f_year]' OR SYEAR>'50') AND STUDENT_ID='$student_id') AS PREVIOUS_BALANCE
- ".FROM_DUAL;
-
- $QI = DBQuery($sql);
- $previous_balance = DBGet($QI);
- if($previous_balance[1][PREVIOUS_BALANCE]>0)
- {
- $previous_debit = "SELECT 'Previous Amount' as TITLE,0 AS ID,".($previous_balance[1][PREVIOUS_BALANCE])." as AMOUNT,'','' as PAYMENT_DATE ".FROM_DUAL." UNION ";
- $previous_credit = '';
- }
- elseif($previous_balance[1][PREVIOUS_BALANCE]<0)
- {
- $previous_credit = "SELECT 0 AS ID,'' AS PAYMENT_DATE,".(0-$previous_balance[1][PREVIOUS_BALANCE])." as AMOUNT,'Previous Amount' AS ACT_COMMENT ".FROM_DUAL." UNION ";
- $previous_debit = '';
- }
- else
- {
- $previous_credit = '';
- $previous_debit = '';
- }
- }
- else
- {
- $sql = "SELECT
- (
- SELECT ".db_case(array('sum(sbf.AMOUNT)',"''","'0'",'sum(sbf.AMOUNT)'))."
- FROM STU_BILLING_FEES sbf,".STU_SCHOOL_MEETS." ssm
- WHERE
- ssm.SYEAR<'$_REQUEST[f_year]' AND ".SSMSTUDENT_ID." = '$student_id'
- AND ssm.SYEAR=sbf.SYEAR
- AND ".SSMSTUDENT_ID."=sbf.STUDENT_ID
- )
- -
- (SELECT ".db_case(array('sum(AMOUNT)',"''","'0'",'sum(AMOUNT)'))." FROM STU_BILLING_ACT
- WHERE (SYEAR<'$_REQUEST[f_year]' OR SYEAR>'50') AND STUDENT_ID='$student_id') AS PREVIOUS_BALANCE
- ".FROM_DUAL;
-
- $QI = DBQuery($sql);
- $previous_balance = DBGet($QI);
- if($previous_balance[1][PREVIOUS_BALANCE]>0)
- {
- $previous_debit = "SELECT 0 AS FORGIVEN_FEE_ID,0 AS ACCOUNT_ID,'Previous Amount' as TITLE,0 AS ID,".$previous_balance[1][PREVIOUS_BALANCE]." as AMOUNT,'' AS SB_DATE,'' AS STUDENT_ID,'' AS REMOVE ".FROM_DUAL." UNION ";
- $previous_credit = '';
- }
- elseif($previous_balance[1][PREVIOUS_BALANCE]<0)
- {
- $previous_credit = "SELECT 0 AS ACCOUNT_ID,0 AS ID,'' AS PAYMENT_DATE,".(0-$previous_balance[1][PREVIOUS_BALANCE])." as AMOUNT,'Previous Amount' AS ACT_COMMENT ".FROM_DUAL." UNION ";
- $previous_debit = '';
- }
- else
- {
- $previous_credit = '';
- $previous_debit = '';
- }
- }
-
- // DEBITS
- if($editor=='lunch')
- {
- $sql = "$previous_debit
- SELECT sbf.TITLE,sbf.ID,sbf.AMOUNT,cast('' as varchar(1)) as REMOVE,to_char(PAYMENT_DATE,'dd-MON-yy') as SB_DATE
- FROM STU_BILLING_ACT_LUNCH sbf
- WHERE sbf.SYEAR='$_REQUEST[f_year]' AND sbf.STUDENT_ID = '$student_id'
- ORDER BY PAYMENT_DATE ASC";
- }
- else
- {
- $sql = "$previous_debit
- SELECT sbf.FORGIVEN_FEE_ID,sbf.ACCOUNT_ID,sbf.TITLE,sbf.ID,sbf.AMOUNT,to_char(sbf.DUE_DATE,'dd-MON-yy') as SB_DATE,sbf.STUDENT_ID,
- cast('' as varchar(1)) as REMOVE
- FROM STU_BILLING_FEES sbf,".STU_SCHOOL_MEETS." ssm
- WHERE
- ssm.SYEAR='$_REQUEST[f_year]' AND ".SSMSTUDENT_ID." = '$student_id'
- AND ssm.SYEAR=sbf.SYEAR
- AND ".SSMSTUDENT_ID."=sbf.STUDENT_ID
- ORDER BY SB_DATE DESC
- ";
- }
-
- $QI = DBQuery($sql);
- $functions = array('REMOVE'=>'makeRemoveInput','AMOUNT'=>'countFeesCurrency','SB_DATE'=>'ProperDate');
- if($editor!='lunch')
- $functions['ACCOUNT_ID'] = 'getAccount';
- $fees_RET = DBGet($QI,$functions);
-
- if($editor=='lunch')
- {
- $singular = 'Lunch Purchase';
- $plural = 'Lunch Purchases';
- $columns = array('REMOVE'=>'','TITLE'=>'Fee','AMOUNT'=>'Amount','SB_DATE'=>'Payment Date');
- if(isset($_REQUEST['PDF']))
- unset($columns['REMOVE']);
- }
- else
- {
- $singular = 'Fee';
- $plural = 'Fees';
- $columns = array('REMOVE'=>'','TITLE'=>'Description','AMOUNT'=>'Amount','SB_DATE'=>'Due Date','ACCOUNT_ID'=>'Account');
- if(isset($_REQUEST['PDF']))
- unset($columns['REMOVE']);
- }
- $options = array('print'=>false);
- if(isset($_REQUEST['PDF']))
- $options['center'] = false;
-
- ListOutput($fees_RET,$columns,$singular,$plural,$link,array(),$options);
- unset($link);
- if($editor!='lunch' && !isset($_REQUEST['PDF']))
- echo '<center><INPUT type=submit value="Add Fee"></center>';
-
- if(!isset($_REQUEST['PDF']))
- echo '</FORM>';
-
- echo '<BR>';
-
- // CREDITS
- $functions = array('PAYMENT_DATE'=>'ProperDate','AMOUNT'=>'countPaymentsCurrency');
- if($editor!='lunch')
- $functions['ACCOUNT_ID'] = 'getAccount';
-
- $sql = "$previous_credit
- SELECT sba.ACCOUNT_ID,sba.ID,to_char(sba.PAYMENT_DATE,'dd-MON-yy') as PAYMENT_DATE,sba.AMOUNT,
- sba.ACT_COMMENT
- FROM STU_BILLING_ACT sba
- WHERE sba.STUDENT_ID = '$student_id' AND sba.SYEAR='$_REQUEST[f_year]'";
- if($editor=='lunch')
- $sql .= " AND sba.LUNCH_PAYMENT='Y'";
- else
- $sql .= " AND (sba.LUNCH_PAYMENT!='Y' OR sba.LUNCH_PAYMENT IS NULL)";
- $QI = DBQuery($sql);
- $payments_RET = DBGet($QI,$functions);
-
- $columns = array('ACT_COMMENT'=>'Reference','AMOUNT'=>'Amount','PAYMENT_DATE'=>'Date','ACCOUNT_ID'=>'Account');
-
- if(!isset($_REQUEST['PDF']))
- {
- $link[remove] = array('link'=>"Modules.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]&type=$_REQUEST[type]&f_stuid=$_REQUEST[f_stuid]&f_school=$_REQUEST[f_school]&f_year=$_REQUEST[f_year]&editor=$_REQUEST[editor]&stumodfunc=delete_payment",'variables'=>array('payment_id'=>'ID'));
- $link[add][html][PAYMENT_DATE] = PrepareDate('_new_payment');
- $link[add][html][AMOUNT] = '<INPUT type=text name=payment[new] value=$ size=12>';
- $link[add][html][ACT_COMMENT] = '<INPUT type=text name=act_comment size=12 maxlength=255>';
- $link[add][html][remove] = button('add');
-
- if($editor!='lunch')
- {
- $sql = "SELECT ID,TITLE FROM STU_BILLING_ACCOUNTS WHERE (SCHOOL='$_REQUEST[f_school]' OR SCHOOL IS NULL) AND (SYEAR='$_REQUEST[f_year]')";
- $QI = DBQuery($sql);
- $accounts_RET = DBGet($QI);
- if(count($accounts_RET))
- {
- $link[add][html][ACCOUNT_ID] .= "<BR><SELECT name=account_id><OPTION value=''>Not Specified</OPTION>";
- foreach($accounts_RET as $value)
- $link[add][html][ACCOUNT_ID] .= "<OPTION value=$value[ID]>$value[TITLE]</OPTION>";
- $link[add][html][ACCOUNT_ID] .= "</SELECT>";
- }
- }
-
- echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]&type=$_REQUEST[type]&f_stuid=$_REQUEST[f_stuid]&f_school=$_REQUEST[f_school]&f_year=$_REQUEST[f_year]&editor=$_REQUEST[editor]&stumodfunc=add_payment METHOD=POST>";
- }
- if($editor=='lunch')
- {
- $singular = 'Lunch Payment';
- $plural = 'Lunch Payments';
- }
- else
- {
- $singular = 'Payment';
- $plural = 'Payments';
- }
-
- $options = array('print'=>false);
- if(isset($_REQUEST['PDF']))
- $options['center'] = false;
-
- ListOutput($payments_RET,$columns,$singular,$plural,$link,array(),$options);
- if(!isset($_REQUEST['PDF']))
- {
- echo '<center><INPUT type=submit value="Add Payment"></center>';
- echo '</FORM>';
- }
-
- echo '</TD>';
- echo '</TR>';
- echo '</TABLE>';
-
- echo '<BR><B>Balance:</B> ';
- if($balance>0)
- echo '<font color=red>';
- echo Currency(0-$balance);
- if($balance>0)
- echo '</font>';
- $balance = 0;
-
- if(!isset($_REQUEST['PDF']))
- echo '</CENTER>';
-}
-
-?>
Deleted: trunk/lang/en_utf8/Students/Student.php
===================================================================
--- trunk/lang/en_utf8/Students/Student.php 2010-02-08 20:09:48 UTC (rev 415)
+++ trunk/lang/en_utf8/Students/Student.php 2010-02-10 02:52:46 UTC (rev 416)
@@ -1,7 +0,0 @@
-<?
-
-$string['note'] = "The invalid date could not be saved.";
-$string['backprompt'] = "That Student ID is already taken. Please select a different one.";
-$string['save'] = "Save";
-
-?>
\ No newline at end of file
Deleted: trunk/lang/en_utf8/Students/StudentFields.php
===================================================================
--- trunk/lang/en_utf8/Students/StudentFields.php 2010-02-08 20:09:48 UTC (rev 415)
+++ trunk/lang/en_utf8/Students/StudentFields.php 2010-02-10 02:52:46 UTC (rev 416)
@@ -1,44 +0,0 @@
-<?
-#**************************************************************************
-# openSIS Community Edition is a free student information system for
-# public and non-public schools. It is web-based, open source, and comes
-# packed with features that include student demographic info, scheduling,
-# grade book, attendance, report cards, eligibility, transcripts,
-# parent portal, student portal and more.
-#
-# openSIS Communnity Edition is a derivitive work.
-# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
-# Portions Copyright (C) 2004-2007 The Miller Group
-# Portions Copyright (C) 2004-2007 Andrew Schmadeke
-# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
-# *************************************************************************
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, version 2 of the License. See license.txt.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#**************************************************************************
-$string['deleteprompt'] = 'student field category and all fields in the category';
-$string['newstudentfield'] = 'New Student Field' ;
-$string['newstudentfieldcategory'] = 'New Student Field Category' ;
-$string['fieldname'] = "Field Name";
-$string['studentfieldcategory'] = "Student Field Category";
-$string['save'] = "Save";
-$string['studentfield'] = "Student Field";
-$string['datatype'] = "Data Type";
-$string['category'] = "Category";
-$string['order'] = "Order";
-$string['Include']='Include (should be left blank for most categories) tr';
-$string['Title']="Title tr";
-$string['SortOrder']="Sort Order tr";
-$string['NewStudentFieldCategory']="New Student Field Category tr";
-$string['NewStudentField']="New Student Field tr";
-$string['StudentField']="Student Field tr" ;
-$string['DataType']="Data Type tr";
-?>
\ No newline at end of file
Added: trunk/lang/en_utf8/students.php
===================================================================
--- trunk/lang/en_utf8/students.php (rev 0)
+++ trunk/lang/en_utf8/students.php 2010-02-10 02:52:46 UTC (rev 416)
@@ -0,0 +1,238 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+$string['students'] = 'Students tr';
+$string['student'] = 'Student tr';
+$string['studentID'] = 'Student ID tr';
+$string['school'] = 'School tr';
+$string['enrolled'] = 'Enrolled tr';
+$string['dropped'] = 'Dropped tr';
+$string['enrollmentRecord'] = 'Enrollment Record tr';
+$string['enrollmentRecords'] = 'Enrollment Records tr';
+#
+#
+$string['studentFromThatUser'] = 'student from that user tr';
+$string['removeAccessTo'] = 'remove access to tr';
+$string['numberAssociated'] = '# Associated tr';
+$string['parents'] = 'Parents tr';
+$string['lastLogin'] = 'Last Login tr';
+$string['addSelectedParents'] = 'Add Selected Parents tr';
+$string['addressFieldCategory...'] = 'address field category and all fields in the category tr';
+$string['newAddressField'] = 'New Address Field tr';
+$string['newAddressFieldCategory'] = 'New Address Field Category tr';
+$string['save'] = 'Save tr';
+$string['fieldName'] = 'Field Name tr';
+$string['pullDown'] = 'Pull-Down tr';
+$string['autoPullDown'] = 'Auto Pull-Down tr';
+$string['editPullDown'] = 'Edit Pull-Down tr';
+$string['text'] = 'Text tr';
+$string['checkbox'] = 'Checkbox tr';
+$string['codedPullDown'] = 'Coded Pull-Down tr';
+$string['number'] = 'Number tr';
+$string['selectMultipeFromOptions'] = 'Select Multiple from Options tr';
+$string['date'] = 'Date tr';
+$string['longText'] = 'Long Text tr';
+$string['addressFieldCategory'] = 'Address Field Category tr';
+$string['sortOrder'] = 'Sort Order tr';
+$string['pullDownsList'] = 'Pull-Down/Auto Pull-Down/Coded Pull-Down/Select Multiple Choices tr';
+$string['onePerLine'] = 'one per line tr';
+$string['default'] = 'Default tr';
+$string['forDatesYMD'] = 'for dates: YYYY-MM-DD, tr';
+$string['forCheckboxes'] = 'for checkboxes tr';
+$string['yearSymbol'] = 'Y tr';
+$string['required'] = 'Required tr';
+$string['title'] = 'Title tr';
+$string['residense'] = 'Residence tr';
+$string['mailing'] = 'Mailing tr';
+$string['bus'] = 'Bus tr';
+$string['allUncheckedMeans...'] = 'Note: All unchecked means applies to all addresses tr';
+$string['other'] = 'Other tr';
+$string['addressFieldCategory'] = 'Address Field Category tr';
+$string['addressFieldCategories'] = 'Address Field Categories tr';
+$string['addressField'] = 'Address Field tr';
+$string['order'] = 'Order tr';
+$string['dataType'] = 'Data Type tr';
+$string['addressFields'] = 'Address Fields tr';
+$string['family'] = 'Family tr';
+$string['families'] = 'Families tr';
+$string['studentAdvancedReport'] = 'Student Advanced Report tr';
+$string['poweredByOpensis'] = 'Powered by openSIS tr';
+$string['groupByFamily'] = 'Group by Family tr';
+$string['includeCoursesActiveAsOf'] = 'Include courses active as of tr';
+#
+#
+$string['dateNotValidNotUsed'] = 'The date you specified is not valid, so was not used. The other data was saved. tr';
+$string['noDataWasEntered'] = 'No data was entered. tr';
+$string['specifiedInformationAppliedSelectedStudents'] = 'The specified information was applied to the selected students. tr';
+$string['mustChooseOneFieldOneStudent'] = 'You must choose at least one field and one student tr';
+$string['allCategories'] = 'All Categories tr';
+$string['rollingRetentionOptions'] = 'Rolling Retention / Options tr';
+$string['nextGradeCurrentSchool'] = 'Next grade at current school tr';
+$string['retain'] = 'Retain tr';
+$string['doNotEnrollAfterSchoolYear'] = 'Do not enroll after this school year tr';
+$string['calendar'] = 'Calendar tr';
+$string['na'] = 'N/A tr';
+#
+#
+$string['enrollmentCode'] = 'Enrollment Code tr';
+$string['enrollmentCodes'] = 'Enrollment Codes tr';
+$string['add'] = 'Add tr';
+$string['drop'] = 'Drop tr';
+$string['studentLetter'] = 'Student Letter tr';
+$string['course'] = 'Course tr';
+$string['courses'] = 'Courses tr';
+$string['noStudentsFound'] = 'No Students were found. tr';
+$string['toParentsOf'] = 'To the parents of tr';
+$string['toContacts'] = 'To Contacts tr';
+$string['toStudent'] = 'To Student tr';
+$string['toFamily'] = 'To Family tr';
+$string['startingRow'] = 'Starting row tr';
+$string['startingColumn'] = 'Starting column tr';
+#
+#
+$string['contactFieldCategoryAnd...'] = 'contact field category and all fields in the category tr';
+$string['contactFieldCategory'] = 'Contact Field Category tr';
+$string['sortOrder'] = 'Sort Order tr';
+$string['custody'] = 'Custody tr';
+$string['emergency'] = 'Emergency tr';
+$string['allUnchecked...'] = 'Note: All unchecked means applies to all contacts tr';
+$string['contactField'] = 'Contact Field';
+$string['contactFields'] = 'Contact Fields';
+#
+#
+$string['studentInformationReport'] = 'Student Information Report tr';
+$string['personalInformation'] = 'Personal Information tr';
+$string['id'] = 'ID tr';
+$string['grade'] = 'Grade tr';
+$string['gender'] = 'Gender tr';
+$string['ethnicity'] = 'Ethnicity tr';
+$string['commonNmae'] = 'Common Name tr';
+$string['birthDate'] = 'BirthDate tr';
+$string['languageSpoken'] = 'Language Spoken tr';
+$string['homeAddress'] = 'Home Address tr';
+$string['address1'] = 'Address1 tr';
+$string['address2'] = 'Address2 tr';
+$string['city'] = 'City tr';
+$string['state'] = 'State tr';
+$string['zipcode'] = 'Zipcode tr';
+$string['mailingAddress'] = 'Mailing Address tr';
+$string['primaryEmergencyContact'] = 'Primary Emergency Contact tr';
+$string['relation'] = 'Relation tr';
+$string['firstName'] = 'First Name tr';
+$string['lastName'] = 'Last Name tr';
+$string['homePhone'] = 'Home Phone tr';
+$string['workPhone'] = 'Work Phone tr';
+$string['mobilePhone'] = 'Mobile Phone tr';
+$string['email'] = 'Email tr';
+$string['secondaryEmergencyContact'] = 'Secondary Emergency Contact tr';
+$string['additionalContact'] = 'Additional Contact tr';
+$string['middleName'] = 'Middle Name tr';
+$string['medicalInformation'] = 'Medical Information tr';
+$string['generalInformation'] = 'General Information tr';
+$string['physicianName'] = 'Physician Name tr';
+$string['physicianPhone'] = 'Physician Phone tr';
+$string['hospitalName'] = 'Hospital Name tr';
+$string['doctorNoteComments'] = 'Doctor\'s Note Comments';
+$string['immunizationPhysicalRecord'] = 'Immunization / Physical Record tr';
+$string['type'] = 'Type tr';
+$string['date'] = 'Date tr';
+$string['medicalAlert'] = 'Medical Alert tr';
+$string['nurseVisitRecord'] = 'Nurse Visit Record tr';
+$string['timeIn'] = 'Time In tr';
+$string['timeOut'] = 'Time Out tr';
+$string['reason'] = 'Reason tr';
+$string['result'] = 'Result tr';
+$string['chooseAtLeastOneStudent'] = 'You must choose at least one student. tr';
+#
+#
+$string["groupByFamily"] = "Group by Family tr" ;
+$string["searchAllSchools"] = "Search All School tr" ;
+$string["includeInactiveStudents"] = "Include Inactive Students tr" ;
+$string["submit"] = "Submit tr" ;
+$string["reset"] = "Reset tr" ;
+$string["expandedView"] = "Expanded View tr" ;
+$string["originalView"] = "Original View tr" ;
+$string["findAStudent"] = "Find a Student tr" ;
+$string["family"] = "Family tr" ;
+$string["families"] = "Families tr" ;
+$string["studentID"] = "Student ID tr" ;
+#
+#
+$string['invalidDateCouldNotSaved'] = 'The invalid date could not be saved. tr';
+$string['studentIdTaken'] = 'That Student ID is already taken. Please select a different one. tr';
+$string['addAStudent'] = 'Add a student';
+#
+#
+$string['studentFieldCategory'] = 'Student Field Category tr';
+$string['studentFieldCategories'] = 'Student Field Categories tr';
+$string['hide'] = 'Hide tr';
+#
+#
+$string['roomNo'] = 'Room No tr';
+$string['includeOnLabels'] = 'Include on Labels tr';
+$string['room'] = 'Room tr';
+$string['attendanceTeacher'] = 'Attendance Teacher tr';
+$string['attendanceRoom'] = 'Attendance Room tr';
+#
+#
+$string['unableUpload'] = 'Unable to upload. Return Code tr';
+$string['selectStudentPicture'] = 'Select Student\'s Picture tr';
+$string['selectImageFile'] = 'Select image file tr';
+$string['selectStudentFirstFromTab'] = 'Please select a student first! from the <b>"Students"</b> Tab tr';
+#
+#
+$string['father'] = 'Father tr';
+$string['mother'] = 'Mother tr';
+$string['stepFather'] = 'Step Father tr';
+$string['stepMother'] = 'Step Mother tr';
+$string['grandmother'] = 'Grand Mother tr';
+$string['grandfather'] = 'Grand Father tr';
+$string['legalGuardian'] = 'Legal Guardian tr';
+$string['otherFamilyMember'] = 'Other Family Member tr';
+$string['phone'] = 'Phone tr';
+$string['cellPhone'] = 'Cell Phone tr';
+$string['workPhone'] = 'Work Phone tr';
+$string['employer'] = 'Employer tr';
+#
+#
+$string['note'] = 'The invalid date could not be saved.';
+$string['studentIDTaken'] = 'That Student ID is already taken. Please select a different one.';
+#
+#
+$string['deletePrompt'] = 'student field category and all fields in the category tr';
+$string['newStudentField'] = 'New Student Field tr';
+$string['newStudentFieldCategory'] = 'New Student Field Category tr';
+$string['fieldName'] = 'Field Name tr';
+$string['studentFieldCategory'] = 'Student Field Category tr';
+$string['studentField'] = 'Student Field tr';
+$string['studentFields'] = 'Student Fields tr';
+$string['dataType'] = 'Data Type tr';
+$string['category'] = 'Category tr';
+$string['order'] = 'Order tr';
+$string['include'] = 'Include (should be left blank for most categories) tr';
+$string['title'] = 'Title tr';
+$string['sortOrder'] = 'Sort Order tr';
+?>
Modified: trunk/modules/Students/AddDrop.php
===================================================================
--- trunk/modules/Students/AddDrop.php 2010-02-08 20:09:48 UTC (rev 415)
+++ trunk/modules/Students/AddDrop.php 2010-02-10 02:52:46 UTC (rev 416)
@@ -26,37 +26,30 @@
#**************************************************************************
echo "<FORM name=add id=add action=".PreparePHP_SELF()." method=POST>";
-$enrollmentrecord = get_string('enrollmentrecord', 'Students/AddDrop');
-$enrollmentrecords = get_string('enrollmentrecords', 'Students/AddDrop');
-$title = get_string('title', 'Students/AddDrop');
-$go = get_string('go', 'Students/AddDrop');
+DrawBC(get_string('students', 'students') . ' > '.ProgramTitle());
-
-DrawBC("Students > ".ProgramTitle());
-
-if($_REQUEST['day_start'] && $_REQUEST['month_start'] && $_REQUEST['year_start'])
-{
- while(!VerifyDate($start_date = $_REQUEST['day_start'].'-'.$_REQUEST['month_start'].'-'.$_REQUEST['year_start']))
- $_REQUEST['day_start']--;
+if($_REQUEST['day_start'] && $_REQUEST['month_start'] && $_REQUEST['year_start']) {
+ while(!VerifyDate($start_date = $_REQUEST['day_start'].'-'.$_REQUEST['month_start'].'-'.$_REQUEST['year_start']))
+ $_REQUEST['day_start']--;
}
else
- $start_date = '01-'.strtoupper(date('M-y'));
+ $start_date = '01-'.strtoupper(date('M-y'));
-if($_REQUEST['day_end'] && $_REQUEST['month_end'] && $_REQUEST['year_end'])
-{
- while(!VerifyDate($end_date = $_REQUEST['day_end'].'-'.$_REQUEST['month_end'].'-'.$_REQUEST['year_end']))
- $_REQUEST['day_end']--;
+if($_REQUEST['day_end'] && $_REQUEST['month_end'] && $_REQUEST['year_end']) {
+ while(!VerifyDate($end_date = $_REQUEST['day_end'].'-'.$_REQUEST['month_end'].'-'.$_REQUEST['year_end']))
+ $_REQUEST['day_end']--;
}
else
- $end_date = DBDate();
+ $end_date = DBDate();
DrawHeaderHome(PrepareDateSchedule($start_date,'_start').' - '.PrepareDateSchedule($end_date,'_end'),'<INPUT type=submit class=btn_medium value="'.get_string('go', 'Common').'" onclick=\'formload_ajax("add");\'>');
echo '</FORM>';
$enrollment_RET = DBGet(DBQuery("SELECT se.START_DATE AS START_DATE,NULL AS END_DATE,se.START_DATE AS DATE,se.SCHOOL_ID,se.STUDENT_ID,CONCAT(s.LAST_NAME,', ',s.FIRST_NAME) AS FULL_NAME FROM STUDENT_ENROLLMENT se,STUDENTS s WHERE s.STUDENT_ID=se.STUDENT_ID AND se.START_DATE BETWEEN '$start_date' AND '$end_date'
- UNION SELECT NULL AS START_DATE,se.END_DATE AS END_DATE,se.END_DATE AS DATE,se.SCHOOL_ID,se.STUDENT_ID,CONCAT(s.LAST_NAME,', ',s.FIRST_NAME) AS FULL_NAME FROM STUDENT_ENROLLMENT se,STUDENTS s WHERE s.STUDENT_ID=se.STUDENT_ID AND se.END_DATE BETWEEN '$start_date' AND '$end_date'
- ORDER BY DATE DESC"),array('START_DATE'=>'ProperDate','END_DATE'=>'ProperDate','SCHOOL_ID'=>'GetSchool'));
-$columns = array('FULL_NAME'=>'Student','STUDENT_ID'=>'Student ID','SCHOOL_ID'=>'School','START_DATE'=>'Enrolled','END_DATE'=>'Dropped');
+ UNION SELECT NULL AS START_DATE,se.END_DATE AS END_DATE,se.END_DATE AS DATE,se.SCHOOL_ID,se.STUDENT_ID,CONCAT(s.LAST_NAME,', ',s.FIRST_NAME) AS FULL_NAME FROM STUDENT_ENROLLMENT se,STUDENTS s WHERE s.STUDENT_ID=se.STUDENT_ID AND se.END_DATE BETWEEN '$start_date' AND '$end_date'
+ ORDER BY DATE DESC"),array('START_DATE'=>'ProperDate','END_DATE'=>'ProperDate','SCHOOL_ID'=>'GetSchool'));
-ListOutput($enrollment_RET,$columns,'Enrollment Record','Enrollment Records');
+$columns = array('FULL_NAME'=>get_string('student', 'students'),'STUDENT_ID'=>get_string('studentID', 'students'),'SCHOOL_ID'=>get_string('school', 'students'),'START_DATE'=>get_string('enrolled', 'students'),'END_DATE'=>get_string('dropped', 'students'));
+
+ListOutput($enrollment_RET,$columns,get_string('enrollmentRecord', 'students'),get_string('enrollmentRecords', 'students'));
?>
Modified: trunk/modules/Students/AddUsers.php
===================================================================
--- trunk/modules/Students/AddUsers.php 2010-02-08 20:09:48 UTC (rev 415)
+++ trunk/modules/Students/AddUsers.php 2010-02-10 02:52:46 UTC (rev 416)
@@ -24,100 +24,79 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-//TODO: Convert get_string vars to inline
-$title = get_string('title', 'Students/AddUsers');
-$addselectedparents = get_string('addselectedparents', 'Students/AddUsers');
-$parent = get_string('parent', 'Students/AddUsers');
-$lastlogin = get_string('lastlogin', 'Students/AddUsers');
-$note = get_string('note', 'Students/AddUsers');
-$deleteprompt1 = get_string('deleteprompt1', 'Students/AddUsers');
-$deleteprompt2 = get_string('deleteprompt2', 'Students/AddUsers');
+if($_REQUEST['modfunc']=='save' && AllowEdit()) {
+ $current_RET = DBGet(DBQuery("SELECT STAFF_ID FROM STUDENTS_JOIN_USERS WHERE STUDENT_ID='".UserStudentID()."'"),array(),array('STAFF_ID'));
+ foreach($_REQUEST['staff'] as $staff_id=>$yes) {
+ if(!$current_RET[$staff_id]) {
+ $sql = "INSERT INTO STUDENTS_JOIN_USERS (STAFF_ID,STUDENT_ID) values('".$staff_id."','".UserStudentID()."')";
+ DBQuery($sql);
+ }
+ }
+ unset($_REQUEST['modfunc']);
+ $note = "The selected user's profile now includes access to the selected students.";
+}
-if($_REQUEST['modfunc']=='save' && AllowEdit())
-{
- $current_RET = DBGet(DBQuery("SELECT STAFF_ID FROM STUDENTS_JOIN_USERS WHERE STUDENT_ID='".UserStudentID()."'"),array(),array('STAFF_ID'));
- foreach($_REQUEST['staff'] as $staff_id=>$yes)
- {
- if(!$current_RET[$staff_id])
- {
- $sql = "INSERT INTO STUDENTS_JOIN_USERS (STAFF_ID,STUDENT_ID) values('".$staff_id."','".UserStudentID()."')";
- DBQuery($sql);
- }
- }
- unset($_REQUEST['modfunc']);
- $note = "The selected user's profile now includes access to the selected students.";
-
+DrawBC(get_string('students', 'students') . ' > '.ProgramTitle());
+
+if($_REQUEST['modfunc']=='delete' && AllowEdit()) {
+ if(DeletePrompt(get_string('studentFromThatUser', 'students'),get_string('removeAccessTo', 'students'))) {
+ DBQuery("DELETE FROM STUDENTS_JOIN_USERS WHERE STAFF_ID='$_REQUEST[staff_id]' AND STUDENT_ID='".UserStudentID()."'");
+ unset($_REQUEST['modfunc']);
+ }
}
-DrawBC("Students > ".ProgramTitle());
-if($_REQUEST['modfunc']=='delete' && AllowEdit())
-{
- if(DeletePrompt('student from that user','remove access to'))
- {
- DBQuery("DELETE FROM STUDENTS_JOIN_USERS WHERE STAFF_ID='$_REQUEST[staff_id]' AND STUDENT_ID='".UserStudentID()."'");
- unset($_REQUEST['modfunc']);
- }
+if($note) {
+ DrawHeader('<IMG SRC=assets/check.gif>'.$note);
}
-if($note)
- DrawHeader('<IMG SRC=assets/check.gif>'.$note);
+if($_REQUEST['modfunc']!='delete') {
+ $extra['SELECT'] = ",(SELECT count(u.STAFF_ID) FROM STUDENTS_JOIN_USERS u,STAFF st WHERE u.STUDENT_ID=s.STUDENT_ID AND st.STAFF_ID=u.STAFF_ID AND st.SYEAR=ssm.SYEAR) AS ASSOCIATED";
+ $extra['columns_after'] = array('ASSOCIATED'=>get_string('numberAssociated', 'students'));
+ Search('student_id',$extra);
-if($_REQUEST['modfunc']!='delete')
-{
- $extra['SELECT'] = ",(SELECT count(u.STAFF_ID) FROM STUDENTS_JOIN_USERS u,STAFF st WHERE u.STUDENT_ID=s.STUDENT_ID AND st.STAFF_ID=u.STAFF_ID AND st.SYEAR=ssm.SYEAR) AS ASSOCIATED";
- $extra['columns_after'] = array('ASSOCIATED'=>'# Associated');
- Search('student_id',$extra);
+ if(UserStudentID()) {
+ if($_REQUEST['modfunc']=='list') {
+ echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=save method=POST>";
+ }
- if(UserStudentID())
- {
- if($_REQUEST['modfunc']=='list')
- {
- echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=save method=POST>";
- #DrawHeader('',SubmitButton('Add Selected Parents'));
- }
+ echo '<CENTER><TABLE><TR><TD valign=top>';
+ $current_RET = DBGet(DBQuery("SELECT u.STAFF_ID,CONCAT(s.LAST_NAME,', ',s.FIRST_NAME) AS FULL_NAME,s.LAST_LOGIN FROM STUDENTS_JOIN_USERS u,STAFF s WHERE s.STAFF_ID=u.STAFF_ID AND u.STUDENT_ID='".UserStudentID()."' AND s.SYEAR='".UserSyear()."'"),array('LAST_LOGIN'=>'_makeLogin'));
+ $link['remove'] = array('link'=>"Modules.php?modname=$_REQUEST[modname]&modfunc=delete",'variables'=>array('staff_id'=>'STAFF_ID'));
+ ListOutput($current_RET,array('FULL_NAME'=>get_string('parents', 'students'),'LAST_LOGIN'=>get_string('lastLogin', 'students')),'','',$link,array(),array('search'=>false));
+ echo '</TD><TD valign=top>';
- echo '<CENTER><TABLE><TR><TD valign=top>';
- $current_RET = DBGet(DBQuery("SELECT u.STAFF_ID,CONCAT(s.LAST_NAME,', ',s.FIRST_NAME) AS FULL_NAME,s.LAST_LOGIN FROM STUDENTS_JOIN_USERS u,STAFF s WHERE s.STAFF_ID=u.STAFF_ID AND u.STUDENT_ID='".UserStudentID()."' AND s.SYEAR='".UserSyear()."'"),array('LAST_LOGIN'=>'_makeLogin'));
- $link['remove'] = array('link'=>"Modules.php?modname=$_REQUEST[modname]&modfunc=delete",'variables'=>array('staff_id'=>'STAFF_ID'));
- #$link['remove'] = array('link'=>"#"." onclick='check_content(\"ajax.php?modname=$_REQUEST[modname]&modfunc=delete\");'",'variables'=>array('staff_id'=>'STAFF_ID'));
- ListOutput($current_RET,array('FULL_NAME'=>'Parents','LAST_LOGIN'=>'Last Login'),'','',$link,array(),array('search'=>false));
- echo '</TD><TD valign=top>';
+ if(AllowEdit()) {
+ unset($extra);
+ $extra['link'] = array('FULL_NAME'=>false);
+ $extra['SELECT'] = ",CAST(NULL AS CHAR(1)) AS CHECKBOX";
+ $extra['functions'] = array('CHECKBOX'=>'_makeChooseCheckbox');
+ $extra['columns_before'] = array('CHECKBOX'=>'</A><INPUT type=checkbox value=Y name=controller onclick="checkAll(this.form,this.form.controller.checked,\'student\');"><A>');
+ $extra['new'] = true;
+ $extra['options']['search'] = false;
+ $extra['profile'] = 'parent';
+ $_OSIS['DrawHeader'] = 'bgcolor=#ff8040';
- if(AllowEdit())
- {
- unset($extra);
- $extra['link'] = array('FULL_NAME'=>false);
- $extra['SELECT'] = ",CAST(NULL AS CHAR(1)) AS CHECKBOX";
- $extra['functions'] = array('CHECKBOX'=>'_makeChooseCheckbox');
- $extra['columns_before'] = array('CHECKBOX'=>'</A><INPUT type=checkbox value=Y name=controller onclick="checkAll(this.form,this.form.controller.checked,\'student\');"><A>');
- $extra['new'] = true;
- $extra['options']['search'] = false;
- $extra['profile'] = 'parent';
- $_OSIS['DrawHeader'] = 'bgcolor=#ff8040';
+ Search('staff_id',$extra);
+ }
- Search('staff_id',$extra);
- }
+ echo '</TD></TR></TABLE></CENTER>';
- echo '</TD></TR></TABLE></CENTER>';
-
- if($_REQUEST['modfunc']=='list')
- echo "<BR><CENTER>".SubmitButton('Add Selected Parents','','class=btn_large')."</CENTER></FORM>";
-
- }
+ if($_REQUEST['modfunc']=='list')
+ echo "<BR><CENTER>".SubmitButton(get_string('addSelectedParents', 'students'),'','class=btn_large')."</CENTER></FORM>";
+ }
}
-function _makeChooseCheckbox($value,$title)
-{ global $THIS_RET;
+function _makeChooseCheckbox($value,$title) {
+ global $THIS_RET;
- return "<INPUT type=checkbox name=staff[".$THIS_RET['STAFF_ID']."] value=Y>";
+ return "<INPUT type=checkbox name=staff[".$THIS_RET['STAFF_ID']."] value=Y>";
}
-function _makeLogin($value)
-{
- if($value)
- return ProperDate(substr($value,0,10)).substr($value,10);
- else
- return '-';
+function _makeLogin($value) {
+ if($value)
+ return ProperDate(substr($value,0,10)).substr($value,10);
+ else
+ return '-';
}
?>
Modified: trunk/modules/Students/AddressFields.php
===================================================================
--- trunk/modules/Students/AddressFields.php 2010-02-08 20:09:48 UTC (rev 415)
+++ trunk/modules/Students/AddressFields.php 2010-02-10 02:52:46 UTC (rev 416)
@@ -24,364 +24,304 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-//TODO: Convert get_string vars to inline
-$title = get_string('title', 'Students/AddressFields');
-$newaddressfields = get_string('newaddressfields', 'Students/AddressFields');
-$newaddressfieldcategory = get_string('newaddressfieldcategory', 'Students/AddressFields');
-$addressfieldcategories = get_string('addressfieldcategories', 'Students/AddressFields');
-$addressfieldcategory = get_string('addressfieldcategory', 'Students/AddressFields');
-$deletebutton = get_string('deletebutton', 'Students/AddressFields');
-$savebutton = get_string('savebutton', 'Students/AddressFields');
-$addressfield = get_string('addressfield', 'Students/AddressFields');
-$addressfield = get_string('addressfields', 'Students/AddressFields');
-$note = get_string('note', 'Students/AddressFields');
-$columns['title'] = get_string('title', 'Students/AddressFields');
-$columns['category'] = get_string('category', 'Students/AddressFields');
-$columns['order'] = get_string('order', 'Students/AddressFields');
-$columns['datatype'] = get_string('datatype', 'Students/AddressFields');
-$columns['addressfield'] = get_string('addressfield', 'Students/AddressFields');
-
-
-DrawBC("Students > ".ProgramTitle());
+DrawBC(get_string('students', 'students') . ' > '.ProgramTitle());
$_OSIS['allow_edit'] = true;
-if($_REQUEST['tables'] && ($_POST['tables'] || $_REQUEST['ajax']))
-{
- $table = $_REQUEST['table'];
- foreach($_REQUEST['tables'] as $id=>$columns)
- {
- if($id!='new')
- {
- if($columns['CATEGORY_ID'] && $columns['CATEGORY_ID']!=$_REQUEST['category_id'])
- $_REQUEST['category_id'] = $columns['CATEGORY_ID'];
+if($_REQUEST['tables'] && ($_POST['tables'] || $_REQUEST['ajax'])) {
+ $table = $_REQUEST['table'];
+ foreach($_REQUEST['tables'] as $id=>$columns) {
+ if($id!='new') {
+ if($columns['CATEGORY_ID'] && $columns['CATEGORY_ID']!=$_REQUEST['category_id'])
+ $_REQUEST['category_id'] = $columns['CATEGORY_ID'];
- $sql = "UPDATE $table SET ";
+ $sql = "UPDATE $table SET ";
- foreach($columns as $column=>$value)
- $sql .= $column."='".str_replace("\'","''",$value)."',";
- $sql = substr($sql,0,-1) . " WHERE ID='$id'";
- $go = true;
- }
- else
- {
- $sql = "INSERT INTO $table ";
+ foreach($columns as $column=>$value)
+ $sql .= $column."='".str_replace("\'","''",$value)."',";
+ $sql = substr($sql,0,-1) . " WHERE ID='$id'";
+ $go = true;
+ }
+ else {
+ $sql = "INSERT INTO $table ";
- if($table=='ADDRESS_FIELDS')
- {
- if($columns['CATEGORY_ID'])
- {
- $_REQUEST['category_id'] = $columns['CATEGORY_ID'];
- unset($columns['CATEGORY_ID']);
- }
- $id = DBGet(DBQuery("SELECT ".db_seq_nextval('ADDRESS_FIELDS_SEQ').' AS ID '.FROM_DUAL));
- $id = $id[1]['ID'];
- $fields = "ID,CATEGORY_ID,";
- $values = $id.",'".$_REQUEST['category_id']."',";
- $_REQUEST['id'] = $id;
+ if($table=='ADDRESS_FIELDS') {
+ if($columns['CATEGORY_ID']) {
+ $_REQUEST['category_id'] = $columns['CATEGORY_ID'];
+ unset($columns['CATEGORY_ID']);
+ }
+ $id = DBGet(DBQuery("SELECT ".db_seq_nextval('ADDRESS_FIELDS_SEQ').' AS ID '.FROM_DUAL));
+ $id = $id[1]['ID'];
+ $fields = "ID,CATEGORY_ID,";
+ $values = $id.",'".$_REQUEST['category_id']."',";
+ $_REQUEST['id'] = $id;
- switch($columns['TYPE'])
- {
- case 'radio':
- DBQuery("ALTER TABLE ADDRESS ADD CUSTOM_$id VARCHAR(1)");
- break;
+ switch($columns['TYPE']) {
+ case 'radio':
+ DBQuery("ALTER TABLE ADDRESS ADD CUSTOM_$id VARCHAR(1)");
+ break;
- case 'text':
- case 'select':
- case 'autos':
- case 'edits':
- DBQuery("ALTER TABLE ADDRESS ADD CUSTOM_$id VARCHAR(255)");
- break;
+ case 'text':
+ case 'select':
+ case 'autos':
+ case 'edits':
+ DBQuery("ALTER TABLE ADDRESS ADD CUSTOM_$id VARCHAR(255)");
+ break;
- case 'codeds':
- DBQuery("ALTER TABLE ADDRESS ADD CUSTOM_$id VARCHAR(15)");
- break;
+ case 'codeds':
+ DBQuery("ALTER TABLE ADDRESS ADD CUSTOM_$id VARCHAR(15)");
+ break;
- case 'multiple':
- DBQuery("ALTER TABLE ADDRESS ADD CUSTOM_$id VARCHAR(1000)");
- break;
+ case 'multiple':
+ DBQuery("ALTER TABLE ADDRESS ADD CUSTOM_$id VARCHAR(1000)");
+ break;
- case 'numeric':
- DBQuery("ALTER TABLE ADDRESS ADD CUSTOM_$id NUMERIC(10,2)");
- break;
+ case 'numeric':
+ DBQuery("ALTER TABLE ADDRESS ADD CUSTOM_$id NUMERIC(10,2)");
+ break;
- case 'date':
- DBQuery("ALTER TABLE ADDRESS ADD CUSTOM_$id DATE");
- break;
+ case 'date':
+ DBQuery("ALTER TABLE ADDRESS ADD CUSTOM_$id DATE");
+ break;
- case 'textarea':
- DBQuery("ALTER TABLE ADDRESS ADD CUSTOM_$id VARCHAR(5000)");
- break;
- }
- DBQuery("CREATE INDEX ADDRESS_IND$id ON ADDRESS (CUSTOM_$id)");
- }
- elseif($table=='ADDRESS_FIELD_CATEGORIES')
- {
- $id = DBGet(DBQuery("SELECT ".db_seq_nextval('ADDRESS_FIELD_CATEGORIES_SEQ').' AS ID '.FROM_DUAL));
- $id = $id[1]['ID'];
- $fields = "ID,";
- $values = $id.",";
- $_REQUEST['category_id'] = $id;
- }
+ case 'textarea':
+ DBQuery("ALTER TABLE ADDRESS ADD CUSTOM_$id VARCHAR(5000)");
+ break;
+ }
+ DBQuery("CREATE INDEX ADDRESS_IND$id ON ADDRESS (CUSTOM_$id)");
+ }
+ elseif($table=='ADDRESS_FIELD_CATEGORIES') {
+ $id = DBGet(DBQuery("SELECT ".db_seq_nextval('ADDRESS_FIELD_CATEGORIES_SEQ').' AS ID '.FROM_DUAL));
+ $id = $id[1]['ID'];
+ $fields = "ID,";
+ $values = $id.",";
+ $_REQUEST['category_id'] = $id;
+ }
- $go = false;
+ $go = false;
- foreach($columns as $column=>$value)
- {
- if($value)
- {
- $fields .= $column.',';
- $values .= "'".str_replace("\'","''",$value)."',";
- $go = true;
- }
- }
- $sql .= '(' . substr($fields,0,-1) . ') values(' . substr($values,0,-1) . ')';
- }
+ foreach($columns as $column=>$value) {
+ if($value) {
+ $fields .= $column.',';
+ $values .= "'".str_replace("\'","''",$value)."',";
+ $go = true;
+ }
+ }
+ $sql .= '(' . substr($fields,0,-1) . ') values(' . substr($values,0,-1) . ')';
+ }
- if($go)
- DBQuery($sql);
- }
- unset($_REQUEST['tables']);
+ if($go)
+ DBQuery($sql);
+ }
+ unset($_REQUEST['tables']);
}
-if($_REQUEST['modfunc']=='delete')
-{
- if($_REQUEST['id'])
- {
- if(DeletePrompt('address field'))
- {
- $id = $_REQUEST['id'];
- DBQuery("DELETE FROM ADDRESS_FIELDS WHERE ID='$id'");
- DBQuery("ALTER TABLE ADDRESS DROP COLUMN CUSTOM_$id");
- $_REQUEST['modfunc'] = '';
- unset($_REQUEST['id']);
- }
- }
- elseif($_REQUEST['category_id'])
- {
- if(DeletePrompt('address field category and all fields in the category'))
- {
- $fields = DBGet(DBQuery("SELECT ID FROM ADDRESS_FIELDS WHERE CATEGORY_ID='$_REQUEST[category_id]'"));
- foreach($fields as $field)
- {
- DBQuery("DELETE FROM ADDRESS_FIELDS WHERE ID='$field[ID]'");
- DBQuery("ALTER TABLE ADDRESS DROP COLUMN CUSTOM_$field[ID]");
- }
- DBQuery("DELETE FROM ADDRESS_FIELD_CATEGORIES WHERE ID='$_REQUEST[category_id]'");
- $_REQUEST['modfunc'] = '';
- unset($_REQUEST['category_id']);
- }
- }
+if($_REQUEST['modfunc']=='delete') {
+ if($_REQUEST['id']) {
+ if(DeletePrompt('address field')) {
+ $id = $_REQUEST['id'];
+ DBQuery("DELETE FROM ADDRESS_FIELDS WHERE ID='$id'");
+ DBQuery("ALTER TABLE ADDRESS DROP COLUMN CUSTOM_$id");
+ $_REQUEST['modfunc'] = '';
+ unset($_REQUEST['id']);
+ }
+ }
+ elseif($_REQUEST['category_id']) {
+ if(DeletePrompt(get_string('addressFieldCategory...', 'students'))) {
+ $fields = DBGet(DBQuery("SELECT ID FROM ADDRESS_FIELDS WHERE CATEGORY_ID='$_REQUEST[category_id]'"));
+ foreach($fields as $field) {
+ DBQuery("DELETE FROM ADDRESS_FIELDS WHERE ID='$field[ID]'");
+ DBQuery("ALTER TABLE ADDRESS DROP COLUMN CUSTOM_$field[ID]");
+ }
+ DBQuery("DELETE FROM ADDRESS_FIELD_CATEGORIES WHERE ID='$_REQUEST[category_id]'");
+ $_REQUEST['modfunc'] = '';
+ unset($_REQUEST['category_id']);
+ }
+ }
}
-if(!$_REQUEST['modfunc'])
-{
- // CATEGORIES
- $sql = "SELECT ID,TITLE,SORT_ORDER FROM ADDRESS_FIELD_CATEGORIES ORDER BY SORT_ORDER,TITLE";
- $QI = DBQuery($sql);
- $categories_RET = DBGet($QI);
+if(!$_REQUEST['modfunc']) {
+ // CATEGORIES
+ $sql = "SELECT ID,TITLE,SORT_ORDER FROM ADDRESS_FIELD_CATEGORIES ORDER BY SORT_ORDER,TITLE";
+ $QI = DBQuery($sql);
+ $categories_RET = DBGet($QI);
- if(AllowEdit() && $_REQUEST['id']!='new' && $_REQUEST['category_id']!='new' && ($_REQUEST['id'] || $_REQUEST['category_id']))
- $delete_button = "<INPUT type=button value=Delete class=btn_medium onClick='javascript:window.location=\"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&category_id=$_REQUEST[category_id]&id=$_REQUEST[id]\"'> ";
+ if(AllowEdit() && $_REQUEST['id']!='new' && $_REQUEST['category_id']!='new' && ($_REQUEST['id'] || $_REQUEST['category_id']))
+ $delete_button = "<INPUT type=button value=Delete class=btn_medium onClick='javascript:window.location=\"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&category_id=$_REQUEST[category_id]&id=$_REQUEST[id]\"'> ";
- // ADDING & EDITING FORM
- if($_REQUEST['id'] && $_REQUEST['id']!='new')
- {
- $sql = "SELECT CATEGORY_ID,TITLE,TYPE,SELECT_OPTIONS,DEFAULT_SELECTION,SORT_ORDER,REQUIRED,(SELECT TITLE FROM ADDRESS_FIELD_CATEGORIES WHERE ID=CATEGORY_ID) AS CATEGORY_TITLE FROM ADDRESS_FIELDS WHERE ID='$_REQUEST[id]'";
- $RET = DBGet(DBQuery($sql));
- $RET = $RET[1];
- $title = $RET['CATEGORY_TITLE'].' - '.$RET['TITLE'];
- }
- elseif($_REQUEST['category_id'] && $_REQUEST['category_id']!='new' && $_REQUEST['id']!='new')
- {
- $sql = "SELECT TITLE,RESIDENCE,MAILING,BUS,SORT_ORDER
- FROM ADDRESS_FIELD_CATEGORIES
- WHERE ID='$_REQUEST[category_id]'";
- $RET = DBGet(DBQuery($sql));
- $RET = $RET[1];
- $title = $RET['TITLE'];
- }
- elseif($_REQUEST['id']=='new')
- $title = 'New Address Field';
+ // ADDING & EDITING FORM
+ if($_REQUEST['id'] && $_REQUEST['id']!='new') {
+ $sql = "SELECT CATEGORY_ID,TITLE,TYPE,SELECT_OPTIONS,DEFAULT_SELECTION,SORT_ORDER,REQUIRED,(SELECT TITLE FROM ADDRESS_FIELD_CATEGORIES WHERE ID=CATEGORY_ID) AS CATEGORY_TITLE FROM ADDRESS_FIELDS WHERE ID='$_REQUEST[id]'";
+ $RET = DBGet(DBQuery($sql));
+ $RET = $RET[1];
+ $title = $RET['CATEGORY_TITLE'].' - '.$RET['TITLE'];
+ }
+ elseif($_REQUEST['category_id'] && $_REQUEST['category_id']!='new' && $_REQUEST['id']!='new') {
+ $sql = "SELECT TITLE,RESIDENCE,MAILING,BUS,SORT_ORDER
+ FROM ADDRESS_FIELD_CATEGORIES
+ WHERE ID='$_REQUEST[category_id]'";
+ $RET = DBGet(DBQuery($sql));
+ $RET = $RET[1];
+ $title = $RET['TITLE'];
+ }
+ elseif($_REQUEST['id']=='new')
+ $title = get_string('newAddressField', 'students');
- elseif($_REQUEST['category_id']=='new')
- $title = 'New Address Field Category';
-
+ elseif($_REQUEST['category_id']=='new')
+ $title = get_string('newAddressFieldCategory', 'students');
- if($_REQUEST['id'])
- {
- echo "<FORM name=F1 id=F1 action=Modules.php?modname=$_REQUEST[modname]&category_id=$_REQUEST[category_id]";
- if($_REQUEST['id']!='new')
- echo "&id=$_REQUEST[id]";
- echo "&table=ADDRESS_FIELDS method=POST>";
- DrawHeaderHome($title,$delete_button.SubmitButton('Save','','class=btn_medium onclick="formcheck_student_addressField_F1();"')); //'<INPUT type=submit value=Save>');
- PopTable_wo_header('header');
- $header .= '<TABLE cellpadding=3 width=100%>';
- $header .= '<TR>';
+ if($_REQUEST['id']) {
+ echo "<FORM name=F1 id=F1 action=Modules.php?modname=$_REQUEST[modname]&category_id=$_REQUEST[category_id]";
+ if($_REQUEST['id']!='new')
+ echo "&id=$_REQUEST[id]";
+ echo "&table=ADDRESS_FIELDS method=POST>";
- $header .= '<TD>' . TextInput($RET['TITLE'],'tables['.$_REQUEST['id'].'][TITLE]','Field Name') . '</TD>';
+ DrawHeaderHome($title,$delete_button.SubmitButton(get_string('save', 'students'),'','class=btn_medium onclick="formcheck_student_addressField_F1();"'));
+ PopTable_wo_header('header');
+ $header .= '<TABLE cellpadding=3 width=100%>';
+ $header .= '<TR>';
+ $header .= '<TD>' . TextInput($RET['TITLE'],'tables['.$_REQUEST['id'].'][TITLE]',get_string('fieldName', 'students')) . '</TD>';
- // You can't change an address field type after it has been created
- // mab - allow changing between select and autos and edits and text
- if($_REQUEST['id']!='new')
- {
- if($RET['TYPE']!='select' && $RET['TYPE']!='autos' && $RET['TYPE']!='edits' && $RET['TYPE']!='text')
- {
- $allow_edit = $_OSIS['allow_edit'];
- $AllowEdit = $_OSIS['AllowEdit'][$modname];
- $_OSIS['allow_edit'] = false;
- $_OSIS['AllowEdit'][$modname] = array();
- $type_options = array('select'=>'Pull-Down','autos'=>'Auto Pull-Down','edits'=>'Edit Pull-Down','text'=>'Text','radio'=>'Checkbox','codeds'=>'Coded Pull-Down','numeric'=>'Number','multiple'=>'Select Multiple from Options','date'=>'Date','textarea'=>'Long Text');
- }
- else
- $type_options = array('select'=>'Pull-Down','autos'=>'Auto Pull-down','edits'=>'Edit Pull-Down','text'=>'Text');
- }
- else
- $type_options = array('select'=>'Pull-Down','autos'=>'Auto Pull-down','edits'=>'Edit Pull-Down','text'=>'Text','radio'=>'Checkbox','codeds'=>'Coded Pull-Down','numeric'=>'Number','multiple'=>'Select Multiple from Options','date'=>'Date','textarea'=>'Long Text');
+ // You can't change an address field type after it has been created
+ // mab - allow changing between select and autos and edits and text
+ if($_REQUEST['id']!='new') {
+ if($RET['TYPE']!='select' && $RET['TYPE']!='autos' && $RET['TYPE']!='edits' && $RET['TYPE']!='text') {
+ $allow_edit = $_OSIS['allow_edit'];
+ $AllowEdit = $_OSIS['AllowEdit'][$modname];
+ $_OSIS['allow_edit'] = false;
+ $_OSIS['AllowEdit'][$modname] = array();
+ $type_options = array('select'=>get_string('pullDown', 'students'),'autos'=>get_string('autoPullDown', 'students'),'edits'=>get_string('editPullDown', 'students'),'text'=>get_string('text', 'students'),'radio'=>get_string('checkbox', 'students'),'codeds'=>get_string('codedPullDown', 'students'),'numeric'=>get_string('number', 'students'),'multiple'=>get_string('selectMultipeFromOptions', 'students'),'date'=>get_string('date', 'students'),'textarea'=>get_string('longText', 'students'));
+ }
+ else
+ $type_options = array('select'=>get_string('pullDown', 'students'),'autos'=>get_string('autoPullDown', 'students'),'edits'=>get_string('editPullDown', 'students'),'text'=>get_string('text', 'students'));
+ }
+ else
+ $type_options = array('select'=>get_string('pullDown', 'students'),'autos'=>get_string('autoPullDown', 'students'),'edits'=>get_string('editPullDown', 'students'),'text'=>get_string('text', 'students'),'radio'=>get_string('checkbox', '...
[truncated message content] |
|
From: <aec...@us...> - 2010-02-08 20:10:04
|
Revision: 415
http://opensis.svn.sourceforge.net/opensis/?rev=415&view=rev
Author: aecioneto
Date: 2010-02-08 20:09:48 +0000 (Mon, 08 Feb 2010)
Log Message:
-----------
0. Finished english terms for Users module.
1. Fix for the install routine, keeping 2009 as default year. Keeping 2010 as default - as of now - breaks the login.
Modified Paths:
--------------
trunk/docs/install.txt
trunk/install/opensis-4.5-upgrade.php
trunk/install/sql.php
trunk/install/step4.php
trunk/lang/en_utf8/Common.php
trunk/lang/en_utf8/Core.php
trunk/lang/en_utf8/Eligibility.php
trunk/lang/en_utf8/Students/StudentFields.php
trunk/lang/en_utf8/Users/includes/General_Info.inc.php
trunk/lang/en_utf8/Users/includes/Schedule.inc.php
trunk/modules/Eligibility/AddActivity.php
trunk/modules/Students/StudentFields.php
trunk/modules/Users/AddStudents.php
trunk/modules/Users/Exceptions.php
trunk/modules/Users/Menu.php
trunk/modules/Users/Preferences.php
trunk/modules/Users/Profiles.php
trunk/modules/Users/Search.inc.php
trunk/modules/Users/Search.php
trunk/modules/Users/Search_Miss_Attn.inc.php
trunk/modules/Users/TeacherPrograms.php
trunk/modules/Users/User.php
trunk/modules/Users/UserFields.php
trunk/modules/Users/includes/General_Info.inc.php
trunk/modules/Users/includes/Other_Info.inc.php
trunk/modules/Users/includes/Schedule.inc.php
trunk/modules/Users/includes/functions.php
Added Paths:
-----------
trunk/lang/en_utf8/users.php
Removed Paths:
-------------
trunk/lang/en_utf8/Discipline/
trunk/lang/en_utf8/Users/AddStudents.php
trunk/lang/en_utf8/Users/Exceptions.php
trunk/lang/en_utf8/Users/Menu.php
trunk/lang/en_utf8/Users/Preferences.php
trunk/lang/en_utf8/Users/Profiles.php
trunk/lang/en_utf8/Users/Search.inc.php
trunk/lang/en_utf8/Users/Search.php
trunk/lang/en_utf8/Users/Search_Miss_Attn.inc.php
trunk/lang/en_utf8/Users/TeacherPrograms.php
trunk/lang/en_utf8/Users/User.php
trunk/lang/en_utf8/Users/UserFields.php
Modified: trunk/docs/install.txt
===================================================================
--- trunk/docs/install.txt 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/docs/install.txt 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,9 +1,9 @@
openSIS Student Information System - INSTALLATION DIRECTIONS
--------------------------------
-Version 4.5.0.1
+Version 4.6.alpha
--------------------------------
-July 27, 2009
+February 08, 2010
NOTE: Before installing openSIS SIS, you must read and agree to the included
License located in the openSIS root directory and titled "LICENSE".
@@ -15,7 +15,7 @@
Setting these up varies a lot with platform, operating system, and distribution so it is well beyond the scope of this
brief install document.
-openSIS 4.5.0.1 requires following software:
+openSIS 4.6x requires following software:
--Apache 2.0.54,
--MySQL 5.X or higher
@@ -65,8 +65,8 @@
......................
Using phpMyAdmin or other MySQL Tools:
create the Database "opensis"
-import the schema /install/osis-4.5-schema-mysql.sql
-import the procedures /install/osis-4.5-procs-mysql.sql
+import the schema /install/osis-4.6-schema-mysql.sql
+import the procedures /install/osis-4.6-procs-mysql.sql
import the food service /modules/food_service/mfoodService.sql
copy all sql statements from install/sql.php file and import to "opensis" database
configure the /data.php manually
@@ -76,7 +76,7 @@
$DatabasePassword = 'mysql password';
$DatabaseName = 'opensis';
$DatabasePort = '3306';
-$DefaultSyear = '2009';
+$DefaultSyear = '2010';
login and visit the "Your Install root"/install/reset_auto_increment.php
Modified: trunk/install/opensis-4.5-upgrade.php
===================================================================
--- trunk/install/opensis-4.5-upgrade.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/install/opensis-4.5-upgrade.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -48,10 +48,10 @@
";
$text .= "
-UPDATE `APP` SET value = '4.5.0.1-CE' WHERE name = 'version';
-UPDATE `APP` SET value = '2009-10-19' WHERE name = 'date';
-UPDATE `APP` SET value = '19102009000' WHERE name = 'build';
-UPDATE `APP` SET value = 'Oct 19, 2009' WHERE name = 'last_updated';
+UPDATE `APP` SET value = '4.6.alpha1-CE' WHERE name = 'version';
+UPDATE `APP` SET value = '2010-02-08' WHERE name = 'date';
+UPDATE `APP` SET value = '08022010000' WHERE name = 'build';
+UPDATE `APP` SET value = 'Feb 08, 2010' WHERE name = 'last_updated';
";
$sqllines = split("\n",$text);
Modified: trunk/install/sql.php
===================================================================
--- trunk/install/sql.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/install/sql.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -30,10 +30,10 @@
--
INSERT INTO `APP` (`name`, `value`) VALUES
-('version', '4.5.0.1-CE'),
-('date', '2009-10-19'),
-('build', '10192009000'),
-('last_updated', 'Oct 19, 2009');
+('version', '4.6.alpha1-CE'),
+('date', '2010-02-08'),
+('build', '02082010000'),
+('last_updated', 'Feb 08, 2010');
--
-- Dumping data for table `ATTENDANCE_CALENDAR`
Modified: trunk/install/step4.php
===================================================================
--- trunk/install/step4.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/install/step4.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -45,60 +45,61 @@
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>Untitled Document</title>
-<link rel="stylesheet" href="../styles/installer.css" type="text/css" />
-<script type="text/javascript" src="js/validator.js"></script>
-</head>
-<body>
-<div class="heading"><?php echo get_string('step4header', 'install'); ?>
-<div style="background-image:url(images/step4.gif); background-repeat:no-repeat; background-position:50% 20px; height:270px;">
- <form name='step4' id='step4' method="post" action="ins4.php">
- <table border="0" cellspacing="6" cellpadding="3" align="center">
- <tr>
- <td align="center" style="padding-top:36px; padding-bottom:16px"><?php echo get_string('installstep4', 'install'); ?></td>
- </tr>
- <tr>
- <td align="center"><strong><?php echo get_string('systemready', 'install'); ?><br />
- <?php echo get_string('schoolyear', 'install'); ?>. <br /><?php echo get_string('example', 'install'); ?>:<?php echo date("Y"); ?></strong></td>
- </tr>
- <tr>
- <td align="center" valign="top"><table width="245" border="0" cellpadding="4" cellspacing="0" id="table1">
- <tr>
- <td align="center"><input type="text" name="syear" size="20" value="<?php echo date("Y"); ?>" /></td>
- </tr>
- <tr>
- <td align="center"><input type="submit" value="<?php echo get_string('savebutton', 'install');?>" class=btn_wide name="btnsyear" /></td>
- </tr>
- </table>
- <script language="JavaScript" type="text/javascript">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <title>Untitled Document</title>
+ <link rel="stylesheet" href="../styles/installer.css" type="text/css" />
+ <script type="text/javascript" src="js/validator.js"></script>
+ </head>
+ <body>
+ <div class="heading"><?php echo get_string('step4header', 'install'); ?>
+ <div style="background-image:url(images/step4.gif); background-repeat:no-repeat; background-position:50% 20px; height:270px;">
+ <form name='step4' id='step4' method="post" action="ins4.php">
+ <table border="0" cellspacing="6" cellpadding="3" align="center">
+ <tr>
+ <td align="center" style="padding-top:36px; padding-bottom:16px"><?php echo get_string('installstep4', 'install'); ?></td>
+ </tr>
+ <tr>
+ <td align="center"><strong><?php echo get_string('systemready', 'install'); ?><br />
+ <?php echo get_string('schoolyear', 'install'); ?>. <br /><?php echo get_string('example', 'install'); ?>:<?php echo date("Y"); ?></strong></td>
+ </tr>
+ <tr>
+ <td align="center" valign="top"><table width="245" border="0" cellpadding="4" cellspacing="0" id="table1">
+ <tr>
+ <td align="center"><input type="text" name="syear" size="20" value="<?php echo '2009'; //date("Y"); ?>" /></td>
+ </tr>
+ <tr>
+ <td align="center"><input type="submit" value="<?php echo get_string('savebutton', 'install');?>" class=btn_wide name="btnsyear" /></td>
+ </tr>
+ </table>
+ <script language="JavaScript" type="text/javascript">
- function CheckYear()
- {
- var frm = document.forms["step4"];
- if(frm.syear.value <2000)
- {
- alert('<?php echo get_string('yearerror', 'install'); ?>');
- frm.syear.focus();
- return false;
- }
- else
- {
- return true;
- }
- }
+ function CheckYear()
+ {
+ var frm = document.forms["step4"];
+ if(frm.syear.value <2000)
+ {
+ alert('<?php echo get_string('yearerror', 'install'); ?>');
+ frm.syear.focus();
+ return false;
+ }
+ else
+ {
+ return true;
+ }
+ }
- var frmvalidator = new Validator("step4");
- frmvalidator.addValidation("syear","req","<?php echo get_string('validateyearreq', 'install'); ?>");
- frmvalidator.addValidation("syear","maxlen=4", "<?php echo get_string('validateyearlen', 'install'); ?>");
- frmvalidator.addValidation("syear","<?php echo get_string('validateyearnum', 'install'); ?>");
- frmvalidator.setAddnlValidationFunction("CheckYear");
- </script> </td>
- </tr>
- </table>
- </form>
-</div>
-</div>
-</body>
+ var frmvalidator = new Validator("step4");
+ frmvalidator.addValidation("syear","req","<?php echo get_string('validateyearreq', 'install'); ?>");
+ frmvalidator.addValidation("syear","maxlen=4", "<?php echo get_string('validateyearlen', 'install'); ?>");
+ frmvalidator.addValidation("syear","<?php echo get_string('validateyearnum', 'install'); ?>");
+ frmvalidator.setAddnlValidationFunction("CheckYear");
+ </script>
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </div>
+ </body>
</html>
Modified: trunk/lang/en_utf8/Common.php
===================================================================
--- trunk/lang/en_utf8/Common.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Common.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,4 +1,29 @@
<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
/*This are frequently used strings, in English*/
$string['student'] = 'Student tr';
Modified: trunk/lang/en_utf8/Core.php
===================================================================
--- trunk/lang/en_utf8/Core.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Core.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,4 +1,29 @@
<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
$string['opensisTitle'] = 'Opensis school software tr';
$string['accountNotActivated'] = 'Your account has not yet been activated. When your account has been verified by school administration, you will be notified by email.';
$string['incorrectUserOrPassword'] = 'Incorrect username or password. Please try again.';
Modified: trunk/lang/en_utf8/Eligibility.php
===================================================================
--- trunk/lang/en_utf8/Eligibility.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Eligibility.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -49,5 +49,5 @@
$string['Activity'] = 'Activity tr';
$string['Grade'] = 'Grade tr';
$string['Course'] = 'Course tr';
-
+$string['addactivity']="Add Activity to Selected Students tr";
?>
Modified: trunk/lang/en_utf8/Students/StudentFields.php
===================================================================
--- trunk/lang/en_utf8/Students/StudentFields.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Students/StudentFields.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,5 +1,29 @@
<?
-
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
$string['deleteprompt'] = 'student field category and all fields in the category';
$string['newstudentfield'] = 'New Student Field' ;
$string['newstudentfieldcategory'] = 'New Student Field Category' ;
@@ -10,5 +34,11 @@
$string['datatype'] = "Data Type";
$string['category'] = "Category";
$string['order'] = "Order";
-
+$string['Include']='Include (should be left blank for most categories) tr';
+$string['Title']="Title tr";
+$string['SortOrder']="Sort Order tr";
+$string['NewStudentFieldCategory']="New Student Field Category tr";
+$string['NewStudentField']="New Student Field tr";
+$string['StudentField']="Student Field tr" ;
+$string['DataType']="Data Type tr";
?>
\ No newline at end of file
Deleted: trunk/lang/en_utf8/Users/AddStudents.php
===================================================================
--- trunk/lang/en_utf8/Users/AddStudents.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Users/AddStudents.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,8 +0,0 @@
-<?php
- /*This are messages on AddStudents file of Users Module, in English*/
-
- $string['associate'] = 'Associate tr';
- $string['students'] = 'Students tr';
- $string['addSelectedStudents'] = 'Add Selected Students tr';
- $string['theSelectedUser...'] = "The selected user's profile now includes access to the selected students. tr";
-?>
\ No newline at end of file
Deleted: trunk/lang/en_utf8/Users/Exceptions.php
===================================================================
--- trunk/lang/en_utf8/Users/Exceptions.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Users/Exceptions.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,5 +0,0 @@
-<?php
- /*This are messages on Exeptions file of Users Module, in English*/
-
- $string['selectThePrograms...'] = 'Select the programs with which this user can use and save information. tr';
-?>
\ No newline at end of file
Deleted: trunk/lang/en_utf8/Users/Menu.php
===================================================================
--- trunk/lang/en_utf8/Users/Menu.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Users/Menu.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,14 +0,0 @@
-<?php
- /*This are messages on Menu file of Users Module, in English*/
-
- $string['userInfo'] = 'User Info tr';
- $string['addUser'] = 'Add a User tr';
- $string['associateStudentsWithParents'] = 'Associate Students with Parents tr';
- $string['preferences'] = 'Preferences tr';
- $string['setup'] = 'Setup tr';
- $string['profiles'] = 'Profiles tr';
- $string['userPermissions'] = 'User Permissions tr';
- $string['userFields'] = 'User Fields tr';
- $string['teacherPrograms'] = 'Teacher Programs tr';
- $string['generalInfo'] = 'General Info tr';
-?>
Deleted: trunk/lang/en_utf8/Users/Preferences.php
===================================================================
--- trunk/lang/en_utf8/Users/Preferences.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Users/Preferences.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,62 +0,0 @@
-<?php
- /*This are messages on Preferences file of Users Module, in English*/
-
- $string['yourNewPasswordsDidNotMatch'] = 'Your new passwords did not match. tr';
- $string['yourCurrentPasswordWasIncorrect'] = 'Your current password was incorrect. tr';
- $string['yourNewPasswordWasSaved'] = 'Your new password was saved. tr';
- $string['displayOptions'] = 'Display Options tr';
- $string['studentListing'] = 'Student Listing tr';
- $string['password'] = 'Password tr';
- $string['studentFields'] = 'Student Fields tr';
- $string['studentName'] = 'Student Name tr';
- $string['studentSorting'] = 'Student Sorting tr';
- $string['fileExportType'] = 'File Export Type tr';
- $string['commonName'] = 'Common Name tr';
- $string['name'] = 'Name tr';
- $string['tabDelimitedExcel'] = 'Tab-Delimited (Excel) tr';
- $string['givenName'] = 'Given Name tr';
- $string['gradeName'] = 'Grade, Name tr';
- $string['cvsOpenOffice'] = 'CSV (OpenOffice) tr';
- $string['displayStudentSearchScreen'] = 'Display student search screen tr';
- $string['groupByFamilyByDefault'] = 'Group by family by default tr';
- $string['searchAllSchoolsByDefault'] = 'Search all schools by default tr';
- $string['theme'] = 'Theme tr';
- $string['Black'] = 'Black tr';
- $string['Gray'] = 'Gray tr';
- $string['Blue'] = 'Blue tr';
- $string['Green'] = 'Green tr';
- $string['highlightColor'] = 'Highlight Color tr';
- $string['language'] = 'Language tr';
- $string['en'] = 'English tr';
- $string['es_cl'] = 'Spanish-Chile tr';
- $string['es_ar'] = 'Spanish-Argentina tr';
- $string['currency'] = 'Currency tr';
- $string['dateFormat'] = 'Date Format tr';
- $string['usDollar'] = 'US Dollar tr';
- $string['britishPound'] = 'British Pound tr';
- $string['euro'] = 'Euro tr';
- $string['canadianDollar'] = 'Canadian Dollar tr';
- $string['australianDollar'] = 'Australian Dollar tr';
- $string['japaneseYen'] = 'Japanese Yen tr';
- $string['brazillianReal'] = 'Brazillian Real tr';
- $string['disableLoginAlerts'] = 'Disable login alerts tr';
- $string['displayDataUsingHiddenFields'] = 'Display data using hidden fields tr';
- $string['currentPassword'] = 'Current Password tr';
- $string['newPassword'] = 'New Password tr';
- $string['verifyNewPassword'] = 'Verify New Password tr';
- $string['save'] = 'Save tr';
- $string['contactInformation'] = 'Contact Information tr';
- $string['contactInfoRollover'] = 'Contact Info Rollover tr';
- $string['homePhoneNumber'] = 'Home Phone Number tr';
- $string['guardians'] = 'Guardians tr';
- $string['allContacts'] = 'All Contacts tr';
- $string['addresses'] = 'Addresses tr';
- $string['none'] = 'None tr';
- $string['residence'] = 'Residence tr';
- $string['mailing'] = 'Mailing tr';
- $string['busPickup'] = 'Bus Pickup tr';
- $string['busDropoff'] = 'Bus Dropoff tr';
- $string['field'] = 'Field tr';
- $string['search'] = 'Search tr';
- $string['expandedView'] = 'Expanded View tr';
-?>
\ No newline at end of file
Deleted: trunk/lang/en_utf8/Users/Profiles.php
===================================================================
--- trunk/lang/en_utf8/Users/Profiles.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Users/Profiles.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,24 +0,0 @@
-<?php
- /*This are messages on Users Module, in English*/
- $string['permissions'] = 'Permissions tr';
- $string['selectTheProgramsThatUsers...'] = 'Select the programs that users of this profile can use and which programs those users can use to save information. tr';
- $string['profiles'] = 'Profiles tr';
- $string['Administrator'] = 'Administrator tr';
- $string['Teacher'] = 'Teacher tr';
- $string['Parent'] = 'Parent tr';
- $string['Student'] = 'Student tr';
- $string['profiles'] = 'Profiles tr';
- $string['addUserProfile'] = 'Add a User Profile tr';
- $string['permissions'] = 'Permissions tr';
- $string['canUse'] = 'Can Use tr';
- $string['canEdit'] = 'Can Edit tr';
- $string['save'] = 'Save tr';
- $string['General Info'] = 'General Info tr';
- $string['Addresses & Contacts'] = 'Addresses & Contacts tr';
- $string['Medical'] = 'Medical tr';
- $string['Comments'] = 'Comments tr';
- $string['Food Service'] = 'Food Service tr';
- $string['Schedule'] = 'Schedule tr';
- $string['title'] = 'Title tr';
- $string['type'] = 'Type tr';
-?>
Deleted: trunk/lang/en_utf8/Users/Search.inc.php
===================================================================
--- trunk/lang/en_utf8/Users/Search.inc.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Users/Search.inc.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,20 +0,0 @@
-<?php
- /*This are messages on Search.inc of Users Module, in English*/
-
- $string['findUser'] = 'Find User tr';
- $string['lastName'] = 'Last Name tr';
- $string['firstName'] = 'First Name tr';
- $string['userName'] = 'User Name tr';
- $string['profile'] = 'Profile tr';
- $string['searchAllSchools'] = 'Search All Schools tr';
- $string['N/A'] = 'N/A tr';
- $string['Administrator'] = 'Administrator tr';
- $string['Teacher'] = 'Teacher tr';
- $string['Parent'] = 'Parent tr';
- $string['No Access'] = 'No Access tr';
- $string['submit'] = 'Submit tr';
- $string['reset'] = 'Reset tr';
- $string['pleaseSelectUser'] = 'Please select a user tr';
- $string['staffMember'] = 'Staff Member tr';
- $string['staffId'] = 'Staff ID tr';
-?>
Deleted: trunk/lang/en_utf8/Users/Search.php
===================================================================
--- trunk/lang/en_utf8/Users/Search.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Users/Search.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,8 +0,0 @@
-<?
-$FindUser = "Find User" ;
-$LastName = "Last Name";
-$FirstName = "First Name";
-$UserName = "Username" ;
-$Profile = "Profile" ;
-$SearchAllSchools = "Search All Schools" ;
-?>
Deleted: trunk/lang/en_utf8/Users/Search_Miss_Attn.inc.php
===================================================================
--- trunk/lang/en_utf8/Users/Search_Miss_Attn.inc.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Users/Search_Miss_Attn.inc.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,8 +0,0 @@
-<?php
- /*This are messages on Search_Miss_Attn.inc file of Users Module, in English*/
-
- $string['staffMember'] = 'Staff Member tr';
- $string['profile'] = 'Profile tr';
- $string['staffId'] = 'Staff ID tr';
- $string['followingTeachersHaveMissingAttendance'] = 'Following teachers have missing attendance! tr';
-?>
Deleted: trunk/lang/en_utf8/Users/TeacherPrograms.php
===================================================================
--- trunk/lang/en_utf8/Users/TeacherPrograms.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Users/TeacherPrograms.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,9 +0,0 @@
-<?php
- /*This are messages on TeacherPrograms file of Users Module, in English*/
-
- $string[''] = ' tr';
- $string[''] = ' tr';
- $string[''] = ' tr';
- $string[''] = ' tr';
- $string[''] = ' tr';
-?>
\ No newline at end of file
Deleted: trunk/lang/en_utf8/Users/User.php
===================================================================
--- trunk/lang/en_utf8/Users/User.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Users/User.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,13 +0,0 @@
-<?php
- /*This are messages on User file of Users Module, in English*/
-
- $string['hackingAttempt'] = 'HACKING ATTEMPT tr';
- $string['triedToAccessUser'] = 'tried to access user tr';
- $string['usernameAlreadyExists'] = 'A user with that username already exists for the $a school year. Choose a different username and try again. tr';
- $string['delete'] = 'Delete tr';
- $string['lastLogin'] = 'Last Login tr';
- $string['users'] = 'Users tr';
- $string['addUser'] = 'Add a User tr';
- $string['createAccount'] = 'Create Account tr';
- $string['save'] = 'Save tr';
-?>
\ No newline at end of file
Deleted: trunk/lang/en_utf8/Users/UserFields.php
===================================================================
--- trunk/lang/en_utf8/Users/UserFields.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Users/UserFields.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,39 +0,0 @@
-<?php
- /*This are messages on UserFields file of Users Module, in English*/
-
- $string['delete'] = 'Delete tr';
- $string['newUserField'] = 'New User Field tr';
- $string['newUserFieldCategory'] = 'New User FieldCategory tr';
- $string['save'] = 'Save tr';
- $string['pullDown'] = 'Pull-Down tr';
- $string['autoPullDown'] = 'Auto Pull-down tr';
- $string['editPullDown'] = 'Edit Pull-Down tr';
- $string['text'] = 'Text tr';
- $string['checkbox'] = 'Checkbox tr';
- $string['codedPullDown'] = 'Coded Pull-Down tr';
- $string['number'] = 'Number tr';
- $string['selectMultipleFromOptions'] = 'Select Multiple from Options tr';
- $string['selectMultiple'] = 'Select Multiple tr';
- $string['date'] = 'Date tr';
- $string['longText'] = 'Long Text tr';
- $string['onePerLine'] = 'one per line tr';
- $string['forDates'] = 'for dates tr';
- $string['forCheckboxes'] = 'for checkboxes tr';
- $string['title'] = 'Title tr';
- $string['fieldName'] = 'Field Name tr';
- $string['dataType'] = 'Data Type tr';
- $string['sortOrder'] = 'Sort Order tr';
- $string['default'] = 'Default tr';
- $string['required'] = 'Required tr';
- $string['includeShouldBeLeftBlankForMostCategories'] = 'Include (should be left blank for most categories) tr';
- $string['category'] = 'Category tr';
- $string['order'] = 'Order tr';
- $string['userFieldCategory'] = 'User Field Category tr';
- $string['userFieldCategories'] = 'User Field Categories tr';
- $string['userField'] = 'User Field tr';
- $string['userFields'] = 'User Fields tr';
- $string['userFieldCategoryAndAll...'] = 'user field category and all fields in the category tr';
- $string['General Info'] = 'General Info tr';
- $string['Schedule'] = 'Schedule tr';
- $string['Food Service'] = 'Food Service tr';
-?>
Modified: trunk/lang/en_utf8/Users/includes/General_Info.inc.php
===================================================================
--- trunk/lang/en_utf8/Users/includes/General_Info.inc.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Users/includes/General_Info.inc.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,4 +1,29 @@
<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
/*This are messages on includes/General_Info.inc of Users Module, in English*/
$string['title'] = 'Title tr';
Modified: trunk/lang/en_utf8/Users/includes/Schedule.inc.php
===================================================================
--- trunk/lang/en_utf8/Users/includes/Schedule.inc.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/lang/en_utf8/Users/includes/Schedule.inc.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -1,4 +1,29 @@
<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
/*This are messages on includes/Schedule.inc of Users Module, in English*/
$string['course'] = 'Course tr';
Added: trunk/lang/en_utf8/users.php
===================================================================
--- trunk/lang/en_utf8/users.php (rev 0)
+++ trunk/lang/en_utf8/users.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -0,0 +1,144 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+$string['users'] = "Users tr";
+$string['studentFromThatUser'] = 'student from that user tr';
+$string['removeAccessTo'] = 'remove access to tr';
+$string['associate'] = 'Associate tr';
+$string['students'] = 'Students tr';
+$string['addSelectedStudents'] = 'Add Selected Students tr';
+$string['theSelectedUser...'] = "The selected user's profile now includes access to the selected students. tr";
+#
+#
+$string['permissions'] = 'Permissions tr';
+$string['selectThePrograms...'] = 'Select the programs with which this user can use and save information. tr';
+$string['selectTheProgramsThatUsers...'] = 'Select the programs that users of this profile can use and which programs those users can use to save information. tr';
+$string['profiles'] = 'Profiles tr';
+$string['administrator'] = 'Administrator tr';
+$string['teacher'] = 'Teacher tr';
+$string['parent'] = 'Parent tr';
+$string['student'] = 'Student tr';
+$string['addUserProfile'] = 'Add a User Profile tr';
+$string['canUse'] = 'Can Use tr';
+$string['canEdit'] = 'Can Edit tr';
+$string['save'] = 'Save tr';
+$string['generalInfo'] = 'General Info tr';
+$string['addressesContacts'] = 'Addresses & Contacts tr';
+$string['medical'] = 'Medical tr';
+$string['comments'] = 'Comments tr';
+$string['foodService'] = 'Food Service tr';
+$string['schedule'] = 'Schedule tr';
+$string['title'] = 'Title tr';
+$string['type'] = 'Type tr';
+#
+#
+$string['yourNewPasswordsDidNotMatch'] = 'Your new passwords did not match. tr';
+$string['yourCurrentPasswordWasIncorrect'] = 'Your current password was incorrect. tr';
+$string['yourNewPasswordWasSaved'] = 'Your new password was saved. tr';
+$string['displayOptions'] = 'Display Options tr';
+$string['studentListing'] = 'Student Listing tr';
+$string['password'] = 'Password tr';
+$string['studentFields'] = 'Student Fields tr';
+$string['studentName'] = 'Student Name tr';
+$string['studentSorting'] = 'Student Sorting tr';
+$string['fileExportType'] = 'File Export Type tr';
+$string['commonName'] = 'Common Name tr';
+$string['name'] = 'Name tr';
+$string['tabDelimitedExcel'] = 'Tab-Delimited (Excel) tr';
+$string['givenName'] = 'Given Name tr';
+$string['gradeName'] = 'Grade, Name tr';
+$string['cvsOpenOffice'] = 'CSV (OpenOffice) tr';
+$string['displayStudentSearchScreen'] = 'Display student search screen tr';
+$string['groupByFamilyByDefault'] = 'Group by family by default tr';
+$string['searchAllSchoolsByDefault'] = 'Search all schools by default tr';
+$string['theme'] = 'Theme tr';
+$string['Black'] = 'Black tr';
+$string['Gray'] = 'Gray tr';
+$string['Blue'] = 'Blue tr';
+$string['Green'] = 'Green tr';
+$string['highlightColor'] = 'Highlight Color tr';
+$string['language'] = 'Language tr';
+$string['en'] = 'English tr';
+$string['es_cl'] = 'Spanish-Chile tr';
+$string['es_ar'] = 'Spanish-Argentina tr';
+$string['currency'] = 'Currency tr';
+$string['dateFormat'] = 'Date Format tr';
+$string['usDollar'] = 'US Dollar tr';
+$string['britishPound'] = 'British Pound tr';
+$string['euro'] = 'Euro tr';
+$string['canadianDollar'] = 'Canadian Dollar tr';
+$string['australianDollar'] = 'Australian Dollar tr';
+$string['japaneseYen'] = 'Japanese Yen tr';
+$string['brazillianReal'] = 'Brazillian Real tr';
+$string['disableLoginAlerts'] = 'Disable login alerts tr';
+$string['displayDataUsingHiddenFields'] = 'Display data using hidden fields tr';
+$string['currentPassword'] = 'Current Password tr';
+$string['newPassword'] = 'New Password tr';
+$string['verifyNewPassword'] = 'Verify New Password tr';
+$string['contactInformation'] = 'Contact Information tr';
+$string['contactInfoRollover'] = 'Contact Info Rollover tr';
+$string['homePhoneNumber'] = 'Home Phone Number tr';
+$string['guardians'] = 'Guardians tr';
+$string['allContacts'] = 'All Contacts tr';
+$string['addresses'] = 'Addresses tr';
+$string['none'] = 'None tr';
+$string['residence'] = 'Residence tr';
+$string['mailing'] = 'Mailing tr';
+$string['busPickup'] = 'Bus Pickup tr';
+$string['busDropoff'] = 'Bus Dropoff tr';
+$string['field'] = 'Field tr';
+$string['search'] = 'Search tr';
+$string['expandedView'] = 'Expanded View tr';
+#
+#
+$string['selectTheProgramsThatUsers...'] = 'Select the programs that users of this profile can use and which programs those users can use to save information. tr';
+#
+$string['findUser'] = 'Find User tr';
+$string['lastName'] = 'Last Name tr';
+$string['firstName'] = 'First Name tr';
+$string['userName'] = 'User Name tr';
+$string['profile'] = 'Profile tr';
+$string['searchAllSchools'] = 'Search All Schools tr';
+$string['N/A'] = 'N/A tr';
+$string['noAccess'] = 'No Access tr';
+$string['submit'] = 'Submit tr';
+$string['reset'] = 'Reset tr';
+$string['pleaseSelectUser'] = 'Please select a user tr';
+$string['staffMember'] = 'Staff Member tr';
+$string['staffId'] = 'Staff ID tr';
+#
+#
+$string['followingTeachersHaveMissingAttendance'] = 'Following teachers have missing attendance! tr';
+#
+#
+$string['hackingAttempt'] = 'HACKING ATTEMPT tr';
+$string['triedToAccessUser'] = 'tried to access user tr';
+$string['usernameAlreadyExists'] = 'A user with that username already exists for the $a school year. Choose a different username and try again. tr';
+$string['delete'] = 'Delete tr';
+$string['lastLogin'] = 'Last Login tr';
+$string['addUser'] = 'Add a User tr';
+$string['createAccount'] = 'Create Account tr';
+?>
Modified: trunk/modules/Eligibility/AddActivity.php
===================================================================
--- trunk/modules/Eligibility/AddActivity.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/modules/Eligibility/AddActivity.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -69,7 +69,7 @@
#DrawHeader('',SubmitButton('Add Activity to Selected Students'));
#echo '<BR>';
- echo '<CENTER><TABLE cellpadding=6><TR><TD align=right><b>Activity</b></TD>';
+ echo '<CENTER><TABLE cellpadding=6><TR><TD align=right><b>'.get_string('Activity', 'Eligibility').'</b></TD>';
echo '<TD>';
$activities_RET = DBGet(DBQuery("SELECT ID,TITLE FROM ELIGIBILITY_ACTIVITIES WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"));
echo '<SELECT name=activity_id><OPTION value="">N/A</OPTION>';
@@ -94,7 +94,7 @@
Search('student_id',$extra);
if($_REQUEST['search_modfunc']=='list')
// echo '<BR><CENTER>'.SubmitButton('Add Activity to Selected Students','','class=btn_xlarge onclick=\'formload_ajax("addact");\'')."</CENTER></FORM>";
- echo '<BR><CENTER>'.SubmitButton('Add Activity to Selected Students','','class=btn_xlarge')."</CENTER></FORM>";
+ echo '<BR><CENTER>'.SubmitButton(get_string('addactivity', 'Eligibility'),'','class=btn_xlarge')."</CENTER></FORM>";
function _makeChooseCheckbox($value,$title)
{ global $THIS_RET;
Modified: trunk/modules/Students/StudentFields.php
===================================================================
--- trunk/modules/Students/StudentFields.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/modules/Students/StudentFields.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -191,9 +191,9 @@
$title = $RET['TITLE'];
}
elseif($_REQUEST['id']=='new')
- $title = 'New Student Field';
+ $title = get_string('NewStudentField','Students/StudentFields');
elseif($_REQUEST['category_id']=='new')
- $title = 'New Student Field Category';
+ $title = get_string('NewStudentFieldCategory','Students/StudentFields');
if($_REQUEST['id'])
{
@@ -264,12 +264,12 @@
$header .= '<TABLE cellpadding=3 width=100%>';
$header .= '<TR>';
- $header .= '<TD>' . TextInput($RET['TITLE'],'tables['.$_REQUEST['category_id'].'][TITLE]','Title') . '</TD>';
- $header .= '<TD>' . TextInput($RET['SORT_ORDER'],'tables['.$_REQUEST['category_id'].'][SORT_ORDER]','Sort Order') . '</TD>';
+ $header .= '<TD>' . TextInput($RET['TITLE'],'tables['.$_REQUEST['category_id'].'][TITLE]',get_string('Title','Students/StudentFields')) . '</TD>';
+ $header .= '<TD>' . TextInput($RET['SORT_ORDER'],'tables['.$_REQUEST['category_id'].'][SORT_ORDER]',get_string('SortOrder','Students/StudentFields')) . '</TD>';
$new = ($_REQUEST['category_id']=='new');
if($_REQUEST['category_id']>4 || $new)
- $header .= '<TD>' . TextInput($RET['INCLUDE'],'tables['.$_REQUEST['category_id'].'][INCLUDE]','Include (should be left blank for most categories)') . '</TD>';
+ $header .= '<TD>' . TextInput($RET['INCLUDE'],'tables['.$_REQUEST['category_id'].'][INCLUDE]',get_string('Include','Students/StudentFields')) . '</TD>';
$header .= '</TR>';
$header .= '</TABLE>';
@@ -301,7 +301,7 @@
}
echo '<TD valign=top>';
- $columns = array('TITLE'=>'Category','SORT_ORDER'=>'Order');
+ $columns = array('TITLE'=>get_string('category','Students/StudentFields'),'SORT_ORDER'=>get_string('order','Students/StudentFields'));
$link = array();
$link['TITLE']['link'] = "Modules.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]";
// $link['TITLE']['link'] = "#"." onclick='check_content(\"ajax.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]\");'";
@@ -331,7 +331,7 @@
}
echo '<TD valign=top>';
- $columns = array('TITLE'=>'Student Field','SORT_ORDER'=>'Order','TYPE'=>'Data Type');
+ $columns = array('TITLE'=>get_string('StudentField','Students/StudentFields'),'SORT_ORDER'=>get_string('order','Students/StudentFields'),'TYPE'=>get_string('DataType','Students/StudentFields'));
$link = array();
$link['TITLE']['link'] = "Modules.php?modname=$_REQUEST[modname]&category_id=$_REQUEST[category_id]";
// $link['TITLE']['link'] = "#"." onclick='check_content(\"ajax.php?modname=$_REQUEST[modname]&category_id=$_REQUEST[category_id]\");'";
Modified: trunk/modules/Users/AddStudents.php
===================================================================
--- trunk/modules/Users/AddStudents.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/modules/Users/AddStudents.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -24,91 +24,74 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
+if($_REQUEST['modfunc']=='save' && AllowEdit()) {
+ $current_RET = DBGet(DBQuery("SELECT STUDENT_ID FROM STUDENTS_JOIN_USERS WHERE STAFF_ID='".UserStaffID()."'"),array(),array('STUDENT_ID'));
+ foreach($_REQUEST['student'] as $student_id=>$yes) {
+ if(!$current_RET[$student_id]&& UserStaffID()!='') {
+ $sql = "INSERT INTO STUDENTS_JOIN_USERS (STUDENT_ID,STAFF_ID) values('".$student_id."','".UserStaffID()."')";
+ DBQuery($sql);
+ }
+ }
+ unset($_REQUEST['modfunc']);
+ $note = get_string('theSelectedUser...', 'Users/AddStudents');
+}
+DrawBC(get_string('users', 'users') . ' > '.ProgramTitle());
+if($_REQUEST['modfunc']=='delete' && AllowEdit()) {
+ if(DeletePrompt(get_string('studentFromThatUser', 'users'),get_string('removeAccessTo', 'users'))) {
+ DBQuery("DELETE FROM STUDENTS_JOIN_USERS WHERE STUDENT_ID='$_REQUEST[student_id]' AND STAFF_ID='".UserStaffID()."'");
+ unset($_REQUEST['modfunc']);
+ }
+}
+if($_REQUEST['modfunc']!='delete') {
+ if(!UserStaffID())
+ Search('staff_id','parent');
+ else {
+ $profile = DBGet(DBQuery("SELECT PROFILE FROM STAFF WHERE STAFF_ID='".UserStaffID()."'"));
+ if($profile[1]['PROFILE']!='parent') {
+ unset($_SESSION['staff_id']);
+ echo '<script language=JavaScript>parent.side.location="'.$_SESSION['Side_PHP_SELF'].'?modcat="+parent.side.document.forms[0].modcat.value;</script>';
+ Search('staff_id','parent');
+ }
+ }
-if($_REQUEST['modfunc']=='save' && AllowEdit())
-{
- $current_RET = DBGet(DBQuery("SELECT STUDENT_ID FROM STUDENTS_JOIN_USERS WHERE STAFF_ID='".UserStaffID()."'"),array(),array('STUDENT_ID'));
- foreach($_REQUEST['student'] as $student_id=>$yes)
- {
- if(!$current_RET[$student_id]&& UserStaffID()!='')
- {
- $sql = "INSERT INTO STUDENTS_JOIN_USERS (STUDENT_ID,STAFF_ID) values('".$student_id."','".UserStaffID()."')";
- DBQuery($sql);
- }
- }
- unset($_REQUEST['modfunc']);
- $note = get_string('theSelectedUser...', 'Users/AddStudents');
-}
-DrawBC("Users > ".ProgramTitle());
+ if(UserStaffID()) {
+ if($_REQUEST['search_modfunc']=='list') {
+ echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=save method=POST>";
+ }
+ }
-if($_REQUEST['modfunc']=='delete' && AllowEdit())
-{
- if(DeletePrompt('student from that user','remove access to'))
- {
- DBQuery("DELETE FROM STUDENTS_JOIN_USERS WHERE STUDENT_ID='$_REQUEST[student_id]' AND STAFF_ID='".UserStaffID()."'");
- unset($_REQUEST['modfunc']);
- }
-}
+ if($note)
+ DrawHeader('<IMG SRC=assets/check.gif>'.$note);
+ if(UserStaffID()) {
+ echo '<CENTER><TABLE><TR><TD valign=top>';
+ DrawHeader("<div><A class=big_font><img src=\"themes/Blue/expanded_view.png\" />".get_string('associate', 'Users/AddStudents')."</A></div><div class=break ></div>",$extra['header_right']);
+ $current_RET = DBGet(DBQuery("SELECT u.STUDENT_ID,CONCAT(s.LAST_NAME,', ',s.FIRST_NAME) AS FULL_NAME FROM STUDENTS_JOIN_USERS u,STUDENTS s WHERE s.STUDENT_ID=u.STUDENT_ID AND u.STAFF_ID='".UserStaffID()."'"));
+ $link['remove'] = array('link'=>"Modules.php?modname=$_REQUEST[modname]&modfunc=delete",'variables'=>array('student_id'=>'STUDENT_ID'));
+ ListOutput($current_RET,array('FULL_NAME'=>get_string('students', 'Users/AddStudents')),'','',$link,array(),array('search'=>false));
+ echo '</TD><TD valign=top>';
-if($_REQUEST['modfunc']!='delete')
-{
- if(!UserStaffID())
- Search('staff_id','parent');
- else
- {
- $profile = DBGet(DBQuery("SELECT PROFILE FROM STAFF WHERE STAFF_ID='".UserStaffID()."'"));
- if($profile[1]['PROFILE']!='parent')
- {
- unset($_SESSION['staff_id']);
- echo '<script language=JavaScript>parent.side.location="'.$_SESSION['Side_PHP_SELF'].'?modcat="+parent.side.document.forms[0].modcat.value;</script>';
- Search('staff_id','parent');
- }
- }
-
- if(UserStaffID())
- {
- if($_REQUEST['search_modfunc']=='list')
- {
- echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=save method=POST>";
- }
- }
-
- if($note)
- DrawHeader('<IMG SRC=assets/check.gif>'.$note);
- if(UserStaffID())
- {
- echo '<CENTER><TABLE><TR><TD valign=top>';
- DrawHeader("<div><A class=big_font><img src=\"themes/Blue/expanded_view.png\" />".get_string('associate', 'Users/AddStudents')."</A></div><div class=break ></div>",$extra['header_right']);
- $current_RET = DBGet(DBQuery("SELECT u.STUDENT_ID,CONCAT(s.LAST_NAME,', ',s.FIRST_NAME) AS FULL_NAME FROM STUDENTS_JOIN_USERS u,STUDENTS s WHERE s.STUDENT_ID=u.STUDENT_ID AND u.STAFF_ID='".UserStaffID()."'"));
- $link['remove'] = array('link'=>"Modules.php?modname=$_REQUEST[modname]&modfunc=delete",'variables'=>array('student_id'=>'STUDENT_ID'));
- #$link['remove'] = array('link'=>"#"." onclick='check_content(\"ajax.php?modname=$_REQUEST[modname]&modfunc=delete\");'",'variables'=>array('student_id'=>'STUDENT_ID'));
- // $link['TITLE']['link'] = "#"." onclick='check_content(\"ajax.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]&mp_term=FY\");'";
- ListOutput($current_RET,array('FULL_NAME'=>get_string('students', 'Users/AddStudents')),'','',$link,array(),array('search'=>false));
- echo '</TD><TD valign=top>';
-
- $extra['link'] = array('FULL_NAME'=>false);
- $extra['SELECT'] = ",NULL AS CHECKBOX";
- $extra['functions'] = array('CHECKBOX'=>'_makeChooseCheckbox');
- $extra['columns_before'] = array('CHECKBOX'=>'</A><INPUT type=checkbox value=Y name=controller onclick="checkAll(this.form,this.form.controller.checked,\'student\');"><A>');
- $extra['new'] = true;
- $extra['options']['search'] = false;
-
- if(AllowEdit())
- Search('student_id',$extra);
-
- echo '</TD></TR></TABLE></CENTER>';
-
- if($_REQUEST['search_modfunc']=='list')
- echo "<BR><CENTER>".SubmitButton(get_string('addSelectedStudents', 'Users/AddStudents'),'','class=btn_large')."</CENTER></FORM>";
- }
-}
+ $extra['link'] = array('FULL_NAME'=>false);
+ $extra['SELECT'] = ",NULL AS CHECKBOX";
+ $extra['functions'] = array('CHECKBOX'=>'_makeChooseCheckbox');
+ $extra['columns_before'] = array('CHECKBOX'=>'</A><INPUT type=checkbox value=Y name=controller onclick="checkAll(this.form,this.form.controller.checked,\'student\');"><A>');
+ $extra['new'] = true;
+ $extra['options']['search'] = false;
-function _makeChooseCheckbox($value,$title)
-{ global $THIS_RET;
+ if(AllowEdit())
+ Search('student_id',$extra);
- return "<INPUT type=checkbox name=student[".$THIS_RET['STUDENT_ID']."] value=Y>";
+ echo '</TD></TR></TABLE></CENTER>';
+
+ if($_REQUEST['search_modfunc']=='list')
+ echo "<BR><CENTER>".SubmitButton(get_string('addSelectedStudents', 'Users/AddStudents'),'','class=btn_large')."</CENTER></FORM>";
+ }
}
+function _makeChooseCheckbox($value,$title) {
+ global $THIS_RET;
+
+ return "<INPUT type=checkbox name=student[".$THIS_RET['STUDENT_ID']."] value=Y>";
+}
?>
Modified: trunk/modules/Users/Exceptions.php
===================================================================
--- trunk/modules/Users/Exceptions.php 2010-02-08 15:57:54 UTC (rev 414)
+++ trunk/modules/Users/Exceptions.php 2010-02-08 20:09:48 UTC (rev 415)
@@ -24,161 +24,138 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
-DrawBC("Users > ".ProgramTitle());
+DrawBC(get_string('users', 'users') . ' > '.ProgramTitle());
include 'Menu.php';
-if(!UserStaffID())
- Search('staff_id');
-//else
-//{
-// $profile = DBGet(DBQuery("SELECT PROFILE FROM STAFF WHERE STAFF_ID='".UserStaffID()."'"));
-// if(!$profile[1]['PROFILE'] || $profile[1]['PROFILE']=='none')
-// {
-// unset($_SESSION['staff_id']);
-// echo '<script language=JavaScript>parent.side.location="'.$_SESSION['Side_PHP_SELF'].'?modcat="+parent.side.document.forms[0].modcat.value;
-// Search('staff_id');
-// }
-//}
+if(!UserStaffID()) {
+ Search('staff_id');
+}
$user_id = UserStaffID();
$profile = DBGet(DBQuery("SELECT PROFILE FROM STAFF WHERE STAFF_ID='$user_id'"));
$xprofile = $profile[1]['PROFILE'];
$exceptions_RET = DBGet(DBQuery("SELECT MODNAME,CAN_USE,CAN_EDIT FROM STAFF_EXCEPTIONS WHERE USER_ID='$user_id'"),array(),array('MODNAME'));
-if($_REQUEST['modfunc']=='update' && AllowEdit())
-{
- $tmp_menu = $menuprof;
- $categories_RET = DBGet(DBQuery("SELECT ID,TITLE FROM STUDENT_FIELD_CATEGORIES"));
- foreach($categories_RET as $category)
- {
- $file = 'Students/Student.php&category_id='.$category['ID'];
- $tmp_menu['Students'][$xprofile][$file] = ' › '.$category['TITLE'];
- }
- $categories_RET = DBGet(DBQuery("SELECT ID,TITLE FROM STAFF_FIELD_CATEGORIES"));
- foreach($categories_RET as $category)
- {
- $file = 'Users/User.php&category_id='.$category['ID'];
- $tmp_menu['Users'][$xprofile][$file] = ' › '.$category['TITLE'];
- }
+if($_REQUEST['modfunc']=='update' && AllowEdit()) {
+ $tmp_menu = $menuprof;
+ $categories_RET = DBGet(DBQuery("SELECT ID,TITLE FROM STUDENT_FIELD_CATEGORIES"));
+ foreach($categories_RET as $category) {
+ $file = 'Students/Student.php&category_id='.$category['ID'];
+ $tmp_menu['Students'][$xprofile][$file] = ' › '.$category['TITLE'];
+ }
+ $categories_RET = DBGet(DBQuery("SELECT ID,TITLE FROM STAFF_FIELD_CATEGORIES"));
+ foreach($categories_RET as $category) {
+ $file = 'Users/User.php&category_id='.$category['ID'];
+ $tmp_menu['Users'][$xprofile][$file] = ' › '.$category['TITLE'];
+ }
- foreach($tmp_menu as $modcat=>$profiles)
- {
- $values = $profiles[$xprofile];
- foreach($values as $modname=>$title)
- {
- if(!is_numeric($modname))
- {
- if(!count($exceptions_RET[$modname]) && ($_REQUEST['can_edit'][str_replace('.','_',$modname)] || $_REQUEST['can_use'][str_replace('.','_',$modname)]))
- DBQuery("INSERT INTO STAFF_EXCEPTIONS (USER_ID,MODNAME) values('$user_id','$modname')");
- elseif(count($exceptions_RET[$modname]) && !$_REQUEST['can_edit'][str_replace('.','_',$modname)] && !$_REQUEST['can_use'][str_replace('.','_',$modname)])
- DBQuery("DELETE FROM STAFF_EXCEPTIONS WHERE USER_ID='$user_id' AND MODNAME='$modname'");
+ foreach($tmp_menu as $modcat=>$profiles) {
+ $values = $profiles[$xprofile];
+ foreach($values as $modname=>$title) {
+ if(!is_numeric($modname)) {
+ if(!count($exceptions_RET[$modname]) && ($_REQUEST['can_edit'][str_replace('.','_',$modname)] || $_REQUEST['can_use'][str_replace('.','_',$modname)]))
+ DBQuery("INSERT INTO STAFF_EXCEPTIONS (USER_ID,MODNAME) values('$user_id','$modname')");
+ elseif(count($exceptions_RET[$modname]) && !$_REQUEST['can_edit'][str_replace('.','_',$modname)] && !$_REQUEST['can_use'][str_replace('.','_',$modname)])
+ DBQuery("DELETE FROM STAFF_EXCEPTIONS WHERE USER_ID='$user_id' AND MODNAME='$modname'");
- if($_REQUEST['can_edit'][str_replace('.','_',$modname)] || $_REQUEST['can_use'][str_replace('.','_',$modname)])
- {
- $update = "UPDATE STAFF_EXCEPTIONS SET ";
- if($_REQUEST['can_edit'][str_replace('.','_',$modname)])
- $update .= "CAN_EDIT='Y',";
- else
- $update .= "CAN_EDIT=NULL,";
- if($_REQUEST['can_use'][str_replace('.','_',$modname)])
- $update .= "CAN_USE='Y'";
- else
- $update .= "CAN_USE=NULL";
- $update .= " WHERE USER_ID='$user_id' AND MODNAME='$modname'";
- DBQuery($update);
- }
- }
- }
- }
- $exceptions_RET = DBGet(DBQuery("SELECT MODNAME,CAN_USE,CAN_EDIT FROM STAFF_EXCEPTIONS WHERE USER_ID='$user_id'"),array(),array('MODNAME'));
- unset($tmp_menu);
- unset($_REQUEST['modfunc']);
- unset($_REQUEST['can_edit']);
- unset($_REQUEST['can_use']);
+ if($_REQUEST['can_edit'][str_replace('.','_',$modname)] || $_REQUEST['can_use'][str_replace('.','_',$modname)]) {
+ $update = "UPDATE STAFF_EXCEPTIONS SET ";
+ if($_REQUEST['can_edit'][str_replace('.','_',$modname)])
+ $update .= "CAN_EDIT='Y',";
+ else
+ $update .= "CAN_EDIT=NULL,";
+ if($_REQUEST['can_use'][str_replace('.','_',$modname)])
+ $update .= "CAN_USE='Y'";
+ else
+ $update .= "CAN_USE=NULL";
+ $update .= " WHERE USER_ID='$user_id' AND MODNAME='$modname'";
+ DBQuery($update);
+ }
+ }
+ }
+ }
+
+ $exceptions_RET = DBGet(DBQuery("SELECT MODNAME,CAN_USE,CAN_EDIT FROM STAFF_EXCEPTIONS WHERE USER_ID='$user_id'"),array(),array('MODNAME'));
+ unset($tmp_menu);
+ unset($_REQUEST['modfunc']);
+ unset($_REQUEST['can_edit']);
+ unset($_REQUEST['can_use']);
}
if(UserStaffID())
- $staff_RET = DBGet(DBQuery("SELECT FIRST_NAME,LAST_NAME,PROFILE,PROFILE_ID FROM STAFF WHERE STAFF_ID='".UserStaffID()."'"));
+ $staff_RET = DBGet(DBQuery("SELECT FIRST_NAME,LAST_NAME,PROFILE,PROFILE_ID FROM STAFF WHERE STAFF_ID='".UserStaffID()."'"));
-if(UserStaffID() && !$staff_RET[1]['PROFILE_ID'])
-{
- echo "<FORM name=exform id=exform action=Modules.php?modname=$_REQUEST[modname]&modfunc=update method=POST>";
- PopTable('header',get_string('permissions', 'Users/Profiles...
[truncated message content] |
|
From: <aec...@us...> - 2010-02-08 15:58:12
|
Revision: 414
http://opensis.svn.sourceforge.net/opensis/?rev=414&view=rev
Author: aecioneto
Date: 2010-02-08 15:57:54 +0000 (Mon, 08 Feb 2010)
Log Message:
-----------
Added missing School setup menu terms.
Modified Paths:
--------------
trunk/lang/en_utf8/Students/Menu.php
trunk/modules/School_Setup/Menu.php
Added Paths:
-----------
trunk/lang/en_utf8/School_Setup/
trunk/lang/en_utf8/School_Setup/Menu.php
Added: trunk/lang/en_utf8/School_Setup/Menu.php
===================================================================
--- trunk/lang/en_utf8/School_Setup/Menu.php (rev 0)
+++ trunk/lang/en_utf8/School_Setup/Menu.php 2010-02-08 15:57:54 UTC (rev 414)
@@ -0,0 +1,47 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+/*Admin Menu for School setup Module*/
+$string['portalNotes'] = "Portal Notes tr";
+$string['markingPeriods'] = "Marking Periods tr";
+$string['calendars'] = "Calendars tr";
+$string['periods'] = "Periods tr";
+$string['gradeLevels'] = "Grade Levels tr";
+$string['school'] = "School tr" ;
+$string['schoolInformation'] = "School Information tr";
+$string['addSchool'] = "Add A School tr";
+$string['copySchool'] = "Copy School tr";
+$string['courses'] = "Courses tr";
+$string['courseManager'] = "Course Manager tr";
+$string['courseCatalog'] = "Course Catalog tr";
+$string['printCatalogByTerm'] = "Print Catalog By Term tr";
+$string['printAllCourses'] = "Print All Courses tr";
+
+/*Teacher Menu for School setup Module*/
+$string['calendar'] = "Calendar tr";
+
+/*Parent Menu for Students Module */
+?>
Modified: trunk/lang/en_utf8/Students/Menu.php
===================================================================
--- trunk/lang/en_utf8/Students/Menu.php 2010-02-08 15:40:54 UTC (rev 413)
+++ trunk/lang/en_utf8/Students/Menu.php 2010-02-08 15:57:54 UTC (rev 414)
@@ -1,6 +1,30 @@
<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
-
/*Admin Menu for Students Module*/
$string['studentinfo'] = "Student Info tr";
$string['addastudent'] = "Add a Student tr";
@@ -36,5 +60,5 @@
/* duplicated
$string['studentinfo'] = "Student Info";
*/
-
+
?>
Modified: trunk/modules/School_Setup/Menu.php
===================================================================
--- trunk/modules/School_Setup/Menu.php 2010-02-08 15:40:54 UTC (rev 413)
+++ trunk/modules/School_Setup/Menu.php 2010-02-08 15:57:54 UTC (rev 414)
@@ -25,31 +25,31 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
$menu['School_Setup']['admin'] = array(
- 'School_Setup/PortalNotes.php'=>get_string('portal notes','school_setup'),
- 'School_Setup/MarkingPeriods.php'=>get_string('marking periods','school_setup'),
- 'School_Setup/Calendar.php'=>get_string('calendars','school_setup'),
- 'School_Setup/Periods.php'=>get_string('periods','school_setup'),
- 'School_Setup/GradeLevels.php'=>get_string('grade levels','school_setup'),
- 1=>get_string('school','school_setup'),
- 'School_Setup/Schools.php'=>get_string('school information','school_setup'),
- 'School_Setup/Schools.php?new_school=true'=>get_string('add a school','school_setup'),
- 'School_Setup/CopySchool.php'=>get_string('copy school','school_setup'),
- 2=>get_string('courses','school_setup'),
- 'School_Setup/Courses.php'=>get_string('course manager','school_setup'),
- 'School_Setup/CourseCatalog.php'=>get_string('course catalog','school_setup'),
- 'School_Setup/PrintCatalog.php'=>get_string('print catalog by term','school_setup'),
- 'School_Setup/PrintAllCourses.php'=>get_string('print all courses','school_setup')
+ 'School_Setup/PortalNotes.php'=>get_string('portalNotes','School_Setup/Menu'),
+ 'School_Setup/MarkingPeriods.php'=>get_string('markingPeriods','School_Setup/Menu'),
+ 'School_Setup/Calendar.php'=>get_string('calendars','School_Setup/Menu'),
+ 'School_Setup/Periods.php'=>get_string('periods','School_Setup/Menu'),
+ 'School_Setup/GradeLevels.php'=>get_string('gradeLevels','School_Setup/Menu'),
+ 1=>get_string('school','School_Setup/Menu'),
+ 'School_Setup/Schools.php'=>get_string('schoolInformation','School_Setup/Menu'),
+ 'School_Setup/Schools.php?new_school=true'=>get_string('addSchool','School_Setup/Menu'),
+ 'School_Setup/CopySchool.php'=>get_string('copySchool','School_Setup/Menu'),
+ 2=>get_string('courses','School_Setup/Menu'),
+ 'School_Setup/Courses.php'=>get_string('courseManager','School_Setup/Menu'),
+ 'School_Setup/CourseCatalog.php'=>get_string('courseCatalog','School_Setup/Menu'),
+ 'School_Setup/PrintCatalog.php'=>get_string('printCatalogByTerm','School_Setup/Menu'),
+ 'School_Setup/PrintAllCourses.php'=>get_string('printAllCourses','School_Setup/Menu')
);
$menu['School_Setup']['teacher'] = array(
- 'School_Setup/Schools.php'=>get_string('school information','school_setup'),
- 'School_Setup/MarkingPeriods.php'=>get_string('marking periods','school_setup'),
- 'School_Setup/Calendar.php'=>get_string('calendar','school_setup')
+ 'School_Setup/Schools.php'=>get_string('schoolInformation','School_Setup/Menu'),
+ 'School_Setup/MarkingPeriods.php'=>get_string('markingPeriods','School_Setup/Menu'),
+ 'School_Setup/Calendar.php'=>get_string('calendar','School_Setup/Menu')
);
$menu['School_Setup']['parent'] = array(
- 'School_Setup/Schools.php'=>get_string('school information','school_setup'),
- 'School_Setup/Calendar.php'=>get_string('calendar','school_setup')
+ 'School_Setup/Schools.php'=>get_string('schoolInformation','School_Setup/Menu'),
+ 'School_Setup/Calendar.php'=>get_string('calendar','School_Setup/Menu')
);
$exceptions['School_Setup'] = array(
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <aec...@us...> - 2010-02-08 15:41:02
|
Revision: 413
http://opensis.svn.sourceforge.net/opensis/?rev=413&view=rev
Author: aecioneto
Date: 2010-02-08 15:40:54 +0000 (Mon, 08 Feb 2010)
Log Message:
-----------
Food Service fix for uninitialized arrays in student accounts file.
Modified Paths:
--------------
trunk/modules/Food_Service/Students/Accounts.php
Modified: trunk/modules/Food_Service/Students/Accounts.php
===================================================================
--- trunk/modules/Food_Service/Students/Accounts.php 2010-02-08 14:21:47 UTC (rev 412)
+++ trunk/modules/Food_Service/Students/Accounts.php 2010-02-08 15:40:54 UTC (rev 413)
@@ -44,6 +44,11 @@
$extra['FROM'] .= ',FOOD_SERVICE_STUDENT_ACCOUNTS fssa';
$extra['WHERE'] .= ' AND fssa.STUDENT_ID=s.STUDENT_ID';
}
+
+if(!is_array($extra['functions'])) {
+ $extra['functions'] = array();
+}
+
$extra['functions'] += array('BALANCE'=>'red');
$extra['columns_after'] = array('BALANCE'=>get_string('balance', 'Food_Service/Students/Accounts'),'STATUS'=>get_string('status', 'Food_Service/Students/Accounts'));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <aec...@us...> - 2010-02-08 14:22:02
|
Revision: 412
http://opensis.svn.sourceforge.net/opensis/?rev=412&view=rev
Author: aecioneto
Date: 2010-02-08 14:21:47 +0000 (Mon, 08 Feb 2010)
Log Message:
-----------
Food Service english terms completed.
Modified Paths:
--------------
trunk/lang/en_utf8/Common.php
trunk/lang/en_utf8/Food_Service/Accounts.php
trunk/lang/en_utf8/Food_Service/DailyMenus.php
trunk/lang/en_utf8/Food_Service/Kiosk.php
trunk/lang/en_utf8/Food_Service/Menu.php
trunk/lang/en_utf8/Food_Service/MenuItems.php
trunk/lang/en_utf8/Food_Service/Menus.php
trunk/lang/en_utf8/Food_Service/Statements.php
trunk/modules/Food_Service/Accounts.php
trunk/modules/Food_Service/ActivityReport.php
trunk/modules/Food_Service/AssignSchool.php
trunk/modules/Food_Service/DailyMenus.php
trunk/modules/Food_Service/Kiosk.php
trunk/modules/Food_Service/Menu.php
trunk/modules/Food_Service/MenuItems.php
trunk/modules/Food_Service/MenuReports.php
trunk/modules/Food_Service/Menus.php
trunk/modules/Food_Service/Reminders.php
trunk/modules/Food_Service/Search.php
trunk/modules/Food_Service/Search.php-upgrade
trunk/modules/Food_Service/ServeMenus.php
trunk/modules/Food_Service/Statements.php
trunk/modules/Food_Service/Student.inc.php
trunk/modules/Food_Service/Students/Accounts.php
trunk/modules/Food_Service/Students/ActivityReport.php
trunk/modules/Food_Service/Students/Lunch.php
trunk/modules/Food_Service/Students/Reminders.php
trunk/modules/Food_Service/Students/ServeMenus.php
trunk/modules/Food_Service/Students/Statements.php
trunk/modules/Food_Service/Students/Transactions.php
trunk/modules/Food_Service/TakeMenuCounts.php
trunk/modules/Food_Service/TeacherCompletion.php
trunk/modules/Food_Service/Transactions.php
trunk/modules/Food_Service/TransactionsReport.php
trunk/modules/Food_Service/User.inc.php
trunk/modules/Food_Service/Users/Accounts.php
trunk/modules/Food_Service/Users/ActivityReport.php
trunk/modules/Food_Service/Users/Lunch.php
trunk/modules/Food_Service/Users/Reminders.php
trunk/modules/Food_Service/Users/ServeMenus.php
trunk/modules/Food_Service/Users/Statements.php
trunk/modules/Food_Service/Users/Transactions.php
trunk/modules/Food_Service/includes/DeletePromptX.fnc.php
trunk/modules/Food_Service/includes/DeleteTransaction.fnc.php
trunk/modules/Food_Service/includes/DeleteTransactionItem.fnc.php
Added Paths:
-----------
trunk/lang/en_utf8/Food_Service/ActivityReport.php
trunk/lang/en_utf8/Food_Service/AssignSchool.php
trunk/lang/en_utf8/Food_Service/MenuReports.php
trunk/lang/en_utf8/Food_Service/ServeMenus.php
trunk/lang/en_utf8/Food_Service/Student.inc.php
trunk/lang/en_utf8/Food_Service/Students/
trunk/lang/en_utf8/Food_Service/Students/Accounts.php
trunk/lang/en_utf8/Food_Service/Students/ActivityReport.php
trunk/lang/en_utf8/Food_Service/Students/Lunch.php
trunk/lang/en_utf8/Food_Service/Students/Reminders.php
trunk/lang/en_utf8/Food_Service/Students/ServeMenus.php
trunk/lang/en_utf8/Food_Service/Students/Statements.php
trunk/lang/en_utf8/Food_Service/Students/Transactions.php
trunk/lang/en_utf8/Food_Service/TakeMenuCounts.php
trunk/lang/en_utf8/Food_Service/TeacherCompletion.php
trunk/lang/en_utf8/Food_Service/TransactionsReport.php
trunk/lang/en_utf8/Food_Service/User.inc.php
trunk/lang/en_utf8/Food_Service/Users/
trunk/lang/en_utf8/Food_Service/Users/Accounts.php
trunk/lang/en_utf8/Food_Service/Users/ActivityReport.php
trunk/lang/en_utf8/Food_Service/Users/Lunch.php
trunk/lang/en_utf8/Food_Service/Users/Reminders.php
trunk/lang/en_utf8/Food_Service/Users/ServeMenus.php
trunk/lang/en_utf8/Food_Service/Users/Statements.php
trunk/lang/en_utf8/Food_Service/Users/Transactions.php
trunk/lang/en_utf8/Food_Service/includes/
trunk/lang/en_utf8/Food_Service/includes/DeletePromptX.php
Modified: trunk/lang/en_utf8/Common.php
===================================================================
--- trunk/lang/en_utf8/Common.php 2010-01-26 15:20:09 UTC (rev 411)
+++ trunk/lang/en_utf8/Common.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -10,7 +10,4 @@
$string['detailedView'] = 'Detailed View tr' ;
$string["originalview"] = "Original View" ;
$string['go'] = 'Go tr' ;
- $string[''] = ' tr' ;
- $string[''] = ' tr' ;
- $string[''] = ' tr' ;
?>
Modified: trunk/lang/en_utf8/Food_Service/Accounts.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Accounts.php 2010-01-26 15:20:09 UTC (rev 411)
+++ trunk/lang/en_utf8/Food_Service/Accounts.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -1,20 +1,47 @@
<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
/*This are messages on Accounts file of Food_Service Module, in English*/
- $string['students'] = 'Students tr';
- $string['users'] = 'Users tr';
- $string['save'] = 'Save tr';
- $string['deleteAccount'] = 'Delete Account tr';
- $string['createAccount'] = 'Create Account tr';
- $string['accountInformation'] = 'Account Information tr';
- $string['thisUserDoesNotHaveMealAccount'] = 'This user does not have a Meal Account. tr';
- $string['warning'] = 'Warning tr';
- $string['barcode'] = 'Barcode tr';
- $string['otherStudentsAssociatedWithSameAccount'] = 'Other students associated with same account:<BR> tr';
- $string['nonExistentAccount'] = 'Non-existent account! tr';
- $string['reduced'] = 'Reduced tr';
- $string['free'] = 'Free tr';
- $string['discount'] = 'Discount tr';
- $string['full'] = 'Full tr';
+$string['students'] = 'Students tr';
+$string['users'] = 'Users tr';
+$string['save'] = 'Save tr';
+$string['deleteAccount'] = 'Delete Account tr';
+$string['createAccount'] = 'Create Account tr';
+$string['accountInformation'] = 'Account Information tr';
+$string['thisUserDoesNotHaveMealAccount'] = 'This user does not have a Meal Account. tr';
+$string['warning'] = 'Warning tr';
+$string['barcode'] = 'Barcode tr';
+$string['otherStudentsAssociatedWithSameAccount'] = 'Other students associated with same account:<BR> tr';
+$string['nonExistentAccount'] = 'Non-existent account! tr';
+$string['reduced'] = 'Reduced tr';
+$string['free'] = 'Free tr';
+$string['discount'] = 'Discount tr';
+$string['full'] = 'Full tr';
+$string['balance'] = 'Balance tr';
+$string['status'] = 'Status tr';
?>
Added: trunk/lang/en_utf8/Food_Service/ActivityReport.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/ActivityReport.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/ActivityReport.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,49 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+$string['cash'] = 'Cash tr';
+$string['check'] = 'Check tr';
+$string['creditCard'] = 'Credit Card tr';
+$string['debitCard'] = 'Debit Card tr';
+$string['transfer'] = 'Transfer tr';
+$string['ns'] = 'n/s tr';
+$string['deposit'] = 'Deposit tr';
+$string['credit'] = 'Credit tr';
+$string['debit'] = 'Debit tr';
+$string['notSpecified'] = 'Not Specified tr';
+$string['go'] = 'Go tr';
+$string['detailedView'] = 'Detailed View tr';
+$string['originalView'] = 'Original View tr';
+
+$string['description'] = 'Description tr';
+$string['detail'] = 'Detail tr';
+$string['count'] = 'Count tr';
+$string['amount'] = 'Amount tr';
+$string['transactionType'] = 'Transaction Type tr';
+$string['transactionTypes'] = 'Transactions Types tr';
+$string['transaction'] = 'Transaction tr';
+$string['transactions'] = 'Transactions tr';
+?>
Added: trunk/lang/en_utf8/Food_Service/AssignSchool.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/AssignSchool.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/AssignSchool.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,37 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+$string['save'] = 'Save tr';
+$string['account'] = 'Account tr';
+$string['schoolYear'] = 'School Year tr';
+$string['student'] = 'Student tr';
+$string['students'] = 'Students tr';
+$string['school'] = 'School tr';
+$string['studentTransactionWOSchool'] = 'Student Transaction w/o School tr';
+$string['studentTransactionsWOSchool'] = 'Student Transactions w/o School tr';
+$string['schoolYear'] = 'School Year tr';
+$string['user'] = 'User tr';
+?>
Modified: trunk/lang/en_utf8/Food_Service/DailyMenus.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/DailyMenus.php 2010-01-26 15:20:09 UTC (rev 411)
+++ trunk/lang/en_utf8/Food_Service/DailyMenus.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -1,4 +1,29 @@
<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
/*This are messages on DailyMenus file of Food_Service Module, in English*/
$string['orSelectPreviousMeal'] = 'or select previous meal tr';
Modified: trunk/lang/en_utf8/Food_Service/Kiosk.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Kiosk.php 2010-01-26 15:20:09 UTC (rev 411)
+++ trunk/lang/en_utf8/Food_Service/Kiosk.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -1,4 +1,29 @@
<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
/*This are messages on Kiosk file of Food_Service Module, in English*/
$string['thereAreNoMenus'] = 'There are no menus yet setup. tr';
Modified: trunk/lang/en_utf8/Food_Service/Menu.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Menu.php 2010-01-26 15:20:09 UTC (rev 411)
+++ trunk/lang/en_utf8/Food_Service/Menu.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -1,4 +1,29 @@
<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
/*This are messages on Menu file of Food_Service Module, in English*/
$string['accounts'] = 'Accounts tr';
Modified: trunk/lang/en_utf8/Food_Service/MenuItems.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/MenuItems.php 2010-01-26 15:20:09 UTC (rev 411)
+++ trunk/lang/en_utf8/Food_Service/MenuItems.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -1,4 +1,29 @@
<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
/*This are messages on MenuItems file of Food_Service Module, in English*/
$string['save'] = 'Save tr';
Added: trunk/lang/en_utf8/Food_Service/MenuReports.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/MenuReports.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/MenuReports.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,41 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
+
+$string['noMenusYetSetup'] = 'There are no menus yet setup. tr';
+$string['elligible'] = 'Elligible tr';
+$string['days'] = 'Days tr';
+$string['possible'] = 'Possible tr';
+$string['participated'] = 'Participated tr';
+$string['participation'] = 'Participation tr';
+$string['sales'] = 'Sales tr';
+$string['totals'] = 'Totals tr';
+$string['type'] = 'Type tr';
+$string['discount'] = 'Discount tr';
+$string['total'] = 'Total tr';
+$string['go'] = 'Go tr';
+?>
Modified: trunk/lang/en_utf8/Food_Service/Menus.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Menus.php 2010-01-26 15:20:09 UTC (rev 411)
+++ trunk/lang/en_utf8/Food_Service/Menus.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -1,4 +1,29 @@
<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
/*This are messages on Menus file of Food_Service Module, in English*/
$string['save'] = 'Save tr';
Added: trunk/lang/en_utf8/Food_Service/ServeMenus.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/ServeMenus.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/ServeMenus.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,34 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
+
+$string['user'] = 'User tr';
+$string['users'] = 'Users tr';
+$string['student'] = 'Student tr';
+$string['students'] = 'Students tr';
+$string['noMenusYetSetup'] = 'There are no menus yet setup. tr';
+?>
Modified: trunk/lang/en_utf8/Food_Service/Statements.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Statements.php 2010-01-26 15:20:09 UTC (rev 411)
+++ trunk/lang/en_utf8/Food_Service/Statements.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -1,4 +1,29 @@
<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
/*This are messages on Statements file of Food_Service Module, in English*/
$string['deposit'] = 'Deposit tr';
Added: trunk/lang/en_utf8/Food_Service/Student.inc.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Student.inc.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/Student.inc.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,39 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
+
+$string['otherStudentsAssociatedSameAccount'] = 'Other students associated with same account tr';
+$string['nonExistentAccount'] = 'Non-existent account! tr';
+$string['inactive'] = 'Inactive tr';
+$string['disabled'] = 'Disabled tr';
+$string['closed'] = 'Closed tr';
+$string['active'] = 'Active tr';
+$string['reduced'] = 'Reduced tr';
+$string['free'] = 'Free tr';
+$string['discount'] = 'Discount tr';
+$string['barcode'] = 'Barcode tr';
+?>
Added: trunk/lang/en_utf8/Food_Service/Students/Accounts.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/Accounts.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/Students/Accounts.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,39 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
+
+$string['save'] = 'Save tr';
+$string['accountInformation'] = 'Account Information';
+$string['balance'] = 'Balance tr';
+$string['status'] = 'Status tr';
+$string['otherStudentsAssociatedSameAccount'] = 'Other students associated with same account tr';
+$string['inactive'] = 'Inactive tr';
+$string['disabled'] = 'Disabled tr';
+$string['closed'] = 'Closed tr';
+$string['reduced'] = 'Reduced tr';
+$string['free'] = 'Free tr';
+?>
Added: trunk/lang/en_utf8/Food_Service/Students/ActivityReport.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/ActivityReport.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/Students/ActivityReport.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,37 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+
+$string['accountID'] = 'Account ID tr';
+$string['student'] = 'Student tr';
+$string['date'] = 'Date tr';
+$string['time'] = 'Time tr';
+$string['balance'] = 'Balance tr';
+$string['discount'] = 'Discount tr';
+$string['description'] = 'Description tr';
+$string['amount'] = 'Amount tr';
+$string['user'] = 'User tr';
+?>
Added: trunk/lang/en_utf8/Food_Service/Students/Lunch.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/Lunch.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/Students/Lunch.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,38 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+
+$string['cancelSale'] = 'Cancel Sale tr';
+$string['completeSale'] = 'Complete Sale tr';
+$string['balance'] = 'Balance tr';
+$string['earlierSale'] = 'Earlier Sale tr';
+$string['earlierSales'] = 'Earlier Sales tr';
+$string['add'] = 'Add tr';
+$string['item'] = 'Item tr';
+$string['items'] = 'Items tr';
+$string['amount'] = 'Amount tr';
+$string['userNotHaveMealAccount'] = 'This user does not have a Meal Account tr';
+?>
Added: trunk/lang/en_utf8/Food_Service/Students/Reminders.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/Reminders.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/Students/Reminders.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,52 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+
+$string['accountLow'] = '%N\'s lunch account is getting low. Please send in additional lunch money with %H reminder slip. THANK YOU! tr';
+$string['negativeBalanceAboveMinimum'] = '%N now has a <B>negative balance</B> in %H lunch account. Please stop by the office and speak with responsible person before placing additional lunch orders. Thanks! tr';
+$string['negativeBalanceBelowMinimum'] = '%N now has a <B>negative balance</B> in %H lunch account. Please stop by the office and speak with responsible person before placing additional lunch orders. Thanks! tr';
+$string['requestedPaymentAmount'] = 'Note: Requested payment amount tr';
+$string['chooseAtLeastOneUser'] = 'You must choose at least one user tr';
+$string['createRemindersSelectedUser'] = 'Create Reminders for Selected Users tr';
+$string['estimateForYearEnd'] = 'Estimate for year end tr';
+$string['balance'] = 'Balance tr';
+$string['status'] = 'Status tr';
+$string['warning'] = 'Warning tr';
+$string['negative'] = 'Negative tr';
+$string['minimum'] = 'Minimum tr';
+$string['paymentReminder'] = 'Payment Reminder tr';
+$string['otherStudentsOnThisAccount'] = 'Other students on this account tr';
+$string['grade'] = 'Grade tr';
+$string['teacher'] = 'Teacher tr';
+$string['todayDate'] = 'Today\'s Date tr';
+$string['dateLastDeposit'] = 'Date of Last Deposit tr';
+$string['amountLastDeposit'] = 'Amount of Last Deposit tr';
+$string['minimumPayment'] = 'Mimimum Payment tr';
+$string['accountID'] = 'Account ID tr';
+$string['his'] = 'his tr';
+$string['her'] = 'her tr';
+$string['hisHer'] = 'his/her tr';
+?>
Added: trunk/lang/en_utf8/Food_Service/Students/ServeMenus.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/ServeMenus.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/Students/ServeMenus.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,37 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+
+$string['cancelSale'] = 'Cancel Sale tr';
+$string['completeSale'] = 'Complete Sale tr';
+$string['balance'] = 'Balance tr';
+$string['item'] = 'Item tr';
+$string['items'] = 'Items tr';
+$string['amount'] = 'Amount tr';
+$string['icon'] = 'Icon tr';
+$string['price'] = 'Price tr';
+$string['userNotHaveMealAccount'] = 'This user does not have a Meal Account tr';
+?>
Added: trunk/lang/en_utf8/Food_Service/Students/Statements.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/Statements.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/Students/Statements.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,41 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+
+$string['balance'] = 'Balance tr';
+$string['status'] = 'Status tr';
+$string['detailedView'] = 'Detailed View tr';
+$string['originalView'] = 'Original View tr';
+$string['date'] = 'Date tr';
+$string['time'] = 'Time tr';
+$string['description'] = 'Description tr';
+$string['amount'] = 'Amount tr';
+$string['user'] = 'User tr';
+$string['student'] = 'Student tr';
+$string['transaction'] = 'Transaction tr';
+$string['transactions'] = 'Transactions tr';
+$string['userNotHaveMealAccount'] = 'This user does not have a Meal Account tr';
+?>
Added: trunk/lang/en_utf8/Food_Service/Students/Transactions.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Students/Transactions.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/Students/Transactions.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,39 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+
+$string['enterValidTypeAmount'] = 'Please enter valid Type and Amount. tr';
+$string['balance'] = 'Balance tr';
+$string['status'] = 'Status tr';
+$string['cancel'] = 'Cancel tr';
+$string['save'] = 'Save tr';
+$string['type'] = 'Type tr';
+$string['description'] = 'Description tr';
+$string['amount'] = 'Amount tr';
+$string['earlierTransaction'] = 'Earlier Transaction tr';
+$string['earlierTransactions'] = 'Earlier Transactions tr';
+$string['userNotHaveMealAccount'] = 'This user does not have a Meal Account tr';
+?>
Added: trunk/lang/en_utf8/Food_Service/TakeMenuCounts.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/TakeMenuCounts.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/TakeMenuCounts.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,46 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
+$string['cannotTakeMealCountsPeriod'] = 'You cannot take meal counts for this period. tr';
+$string['selectedDateNotSchoolDay'] = 'The selected date is not a school day! tr';
+$string['periodNotMPSelectedDate'] = 'This period does not meet in the marking period of the selected date. tr';
+$string['periodNotMeetSelectedDate'] = 'This period does not meet on the selected date. tr';
+$string['SelectedDateNotToday'] = 'The selected date is not today tr';
+$string['takenLunchCountsToday'] = 'You have taken lunch counts today for this period. tr';
+$string['save'] = 'Save tr';
+$string['item'] = 'Item tr';
+$string['count'] = 'Count tr';
+$string['student'] = 'Student tr';
+$string['id'] = 'ID tr';
+$string['grade'] = 'Grade tr';
+$string['balance'] = 'Balance tr';
+$string['status'] = 'Status tr';
+$string['ineligibleStudent'] = 'Inelegible Student tr';
+$string['ineligibleStudents'] = 'Inelegible Students tr';
+
+
+?>
Added: trunk/lang/en_utf8/Food_Service/TeacherCompletion.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/TeacherCompletion.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/TeacherCompletion.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,39 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
+
+$string['noMenusYetSetup'] = 'There are no menus yet setup. tr';
+$string['teacherWhoTakes'] = 'Teacher who takes tr';
+$string['teachersWhoTake'] = 'Teachers who take tr';
+$string['counts'] = ' counts tr';
+$string['item'] = ' Items tr';
+$string['totalCount'] = 'Total count tr';
+$string['itemTotal'] = ' Item Total tr';
+$string['itemTotals'] = ' Items Total tr';
+
+
+?>
Added: trunk/lang/en_utf8/Food_Service/TransactionsReport.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/TransactionsReport.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/TransactionsReport.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,35 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
+
+$string['go'] = 'Go tr';
+$string['totals'] = 'Totals tr';
+$string['type'] = 'Type tr';
+$string['type'] = 'Types tr';
+$string['transaction'] = 'Transaction tr';
+$string['total'] = 'Total tr';
+?>
Added: trunk/lang/en_utf8/Food_Service/User.inc.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/User.inc.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/User.inc.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,37 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
+$string['balance'] = 'Balance tr';
+$string['inactive'] = 'Inactive tr';
+$string['disabled'] = 'Disabled tr';
+$string['closed'] = 'Closed tr';
+$string['active'] = 'Active tr';
+$string['reduced'] = 'Reduced tr';
+$string['free'] = 'Free tr';
+$string['discount'] = 'Discount tr';
+$string['barcode'] = 'Barcode tr';
+?>
Added: trunk/lang/en_utf8/Food_Service/Users/Accounts.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Users/Accounts.php (rev 0)
+++ trunk/lang/en_utf8/Food_Service/Users/Accounts.php 2010-02-08 14:21:47 UTC (rev 412)
@@ -0,0 +1,39 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+ /*This are messages on MenuItems file of Food_Service Module, in English*/
+
+$string['save'] = 'Save tr';
+$string['accountInformation'] = 'Account Information';
+$string['balance'] = 'Balance tr';
+$string['status'] = 'Status tr';
+$string['otherStudentsAssociatedSameAccount'] = 'Other students associated with same account tr';
+$string['inactive'] = 'Inactive tr';
+$string['disabled'] = 'Disabled tr';
+$string['closed'] = 'Closed tr';
+$string['reduced'] = 'Reduced tr';
+$string['free'] = 'Free tr';
+?>
Added: trunk/lang/en_utf8/Food_Service/Users/ActivityReport.php
===================================================================
--- trunk/lang/en_utf8/Food_Service/Users/ActivityReport.php (rev 0)
+++ trunk/lang/en_utf8/Food_...
[truncated message content] |
|
From: <rg...@us...> - 2010-01-26 15:20:19
|
Revision: 411
http://opensis.svn.sourceforge.net/opensis/?rev=411&view=rev
Author: rgval
Date: 2010-01-26 15:20:09 +0000 (Tue, 26 Jan 2010)
Log Message:
-----------
Updated Manual install information
Modified Paths:
--------------
trunk/install/Manual_install_instructions.txt
Modified: trunk/install/Manual_install_instructions.txt
===================================================================
--- trunk/install/Manual_install_instructions.txt 2010-01-25 02:14:53 UTC (rev 410)
+++ trunk/install/Manual_install_instructions.txt 2010-01-26 15:20:09 UTC (rev 411)
@@ -5,7 +5,7 @@
import the food service /modules/food_service/mfoodService.sql
copy all sql statements from install/sql.php file and import to Database
"opensis"
-configure the /data.php manually
+configure the /conf/data.php manually
$DatabaseType = 'mysql';
$DatabaseServer = 'localhost';
$DatabaseUsername = 'mysql user';
@@ -14,4 +14,4 @@
$DatabasePort = '3306';
$DefaultSyear = '2009';
-login and visit the "Your Install root"/install/reset_auto_increment.php
\ No newline at end of file
+login and visit the "Your Install root"/install/reset_auto_increment.php
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <aec...@us...> - 2010-01-25 02:15:03
|
Revision: 410
http://opensis.svn.sourceforge.net/opensis/?rev=410&view=rev
Author: aecioneto
Date: 2010-01-25 02:14:53 +0000 (Mon, 25 Jan 2010)
Log Message:
-----------
Final english terms for school setup.
Modified Paths:
--------------
trunk/lang/en_utf8/schoolsetup.php
trunk/modules/School_Setup/Calendar.php
trunk/modules/School_Setup/CopySchool.php
trunk/modules/School_Setup/Courses.php
trunk/modules/School_Setup/GradeLevels.php
trunk/modules/School_Setup/MarkingPeriods.php
trunk/modules/School_Setup/Menu.php
trunk/modules/School_Setup/Periods.php
trunk/modules/School_Setup/PortalNotes.php
trunk/modules/School_Setup/PrintAllCourses.php
trunk/modules/School_Setup/PrintCatalog.php
trunk/modules/School_Setup/Schools.php
trunk/modules/School_Setup/Search.php
trunk/modules/School_Setup/validation_markingperiods.php
Modified: trunk/lang/en_utf8/schoolsetup.php
===================================================================
--- trunk/lang/en_utf8/schoolsetup.php 2010-01-24 06:00:00 UTC (rev 409)
+++ trunk/lang/en_utf8/schoolsetup.php 2010-01-25 02:14:53 UTC (rev 410)
@@ -108,4 +108,91 @@
$string['none'] = 'None tr';
#
#
+$string['search'] = 'Search tr';
+$string['coursePeriod'] = 'Course Period tr';
+$string['coursePeriods'] = 'Course Periods tr';
+$string['sem'] = 'SEM tr';
+$string['qtr'] = 'QTR tr';
+$string['meetingDays'] = 'Meeting Days tr';
+$string['newPeriod'] = 'New Period tr';
+$string['room'] = 'Room tr';
+$string['seats'] = 'Seats tr';
+$string['availableSeats'] = 'Available seats tr';
+$string['credits'] = 'Credits tr';
+$string['na'] = 'N/A tr';
+$string['choose'] = 'Choose tr';
+$string['parentCoursePeriod'] = 'Parent Course Period tr';
+$string['newSubject'] = 'New Subject tr';
+#
+#
+$string['gradeLevel'] = 'Grade Level tr';
+$string['sortOrder'] = 'Sort Order tr';
+$string['nextGrade'] = 'Next Grade tr';
+#
+#
+$string['newYear'] = 'New Year tr';
+$string['newSemester'] = 'New Semester tr';
+$string['newMarkingPeriod'] = 'New Marking Period tr';
+$string['newProgressPeriod'] = 'New Progress Period tr';
+$string['notAllDatesEnteredCorrectly'] = 'Not all of the dates were entered correctly. tr';
+$string['beginEndDatesOverlap'] = 'The beginning and end dates you specified for this marking period overlap with those of tr';
+$string['onlyOneMarkingPeriodCanOpen'] = 'Only one marking period can be open at any time. tr';
+$string['gradePostingDatesOverlap'] = 'The grade posting dates you specified for this marking period overlap with those of tr';
+$string['onlyOnePostingPeriodCanOpen'] = 'Only one grade posting period can be open at any time. tr';
+$string['graded'] = 'Graded tr';
+$string['exam'] = 'Exam tr';
+$string['comments'] = 'Comments tr';
+$string['begins'] = 'Begins tr';
+$string['ends'] = 'Ends tr';
+$string['gradePostingBegins'] = 'Grade Posting Begins tr';
+$string['gradePostingEnds'] = 'Grade Posting Ends tr';
+$string['year'] = 'Year tr';
+$string['years'] = 'Years tr';
+$string['semester'] = 'Semester tr';
+$string['semesters'] = 'Semesters tr';
+$string['quarter'] = 'Quarter tr';
+$string['quarters'] = 'Quarters tr';
+$string['progressPeriod'] = 'Progress Period tr';
+$string['progressPeriods'] = 'Progress Periods tr';
+#
+#
+$string['selectValidStartEndTime'] = 'please select valid start and end time tr';
+$string['lengthMinutes'] = 'Length (minutes) tr';
+$string['usedForAttendance'] = 'Used for attendance tr';
+#
+#
+$string['note'] = 'Note tr';
+$string['notes'] = 'Notes tr';
+$string['publishingOptions'] = 'Publishing Options tr';
+$string['adminWCustom'] = 'Administrator w/Custom tr';
+$string['teacherWCustom'] = 'Teacher w/Custom tr';
+$string['parentWCustom'] = 'Parent w/Custom tr';
+$string['printAllCourses'] = 'Print all Courses tr';
+#
+#
+$string['noCoursesFoundThisTerm'] = 'No Courses are found in this term tr';
+$string['printCatalogByTerm'] = 'Print Catalog by Term tr';
+$string['all'] = 'All tr';
+$string['selectTerm'] = 'Select Term tr';
+$string['reportGeneratedFor'] = 'Report generated for tr';
+$string['term'] = ' Term tr';
+$string['reportGeneratedForAllTerms'] = 'Report generated for all Terms tr';
+#
+#
+$string['schoolHasBeenModified'] = 'This school has been modified. tr';
+$string['schoolName'] = 'School Name. tr';
+
+$string['address'] = 'Address tr';
+$string['city'] = 'City tr';
+$string['state'] = 'State tr';
+$string['zip'] = 'ZIP tr';
+$string['telephone'] = 'Telephone tr';
+$string['principal'] = 'Principal tr';
+$string['baseGradingScale'] = 'Base Grading Scale tr';
+$string['email'] = 'E-mail tr';
+$string['ceeb'] = 'CEEB tr';
+$string['website'] = 'Website tr';
+$string['update'] = 'Update tr';
+#
+#
?>
\ No newline at end of file
Modified: trunk/modules/School_Setup/Calendar.php
===================================================================
--- trunk/modules/School_Setup/Calendar.php 2010-01-24 06:00:00 UTC (rev 409)
+++ trunk/modules/School_Setup/Calendar.php 2010-01-25 02:14:53 UTC (rev 410)
@@ -58,7 +58,7 @@
$end = mktime(0,0,0,MonthNWSwitch($_REQUEST['month_max'],'to_num'),$_REQUEST['day_max']*1,$_REQUEST['year_max']) + 43200;
$weekday = date('w',$begin);
-
+
$calendar_id = DBGet(DBQuery("SELECT ".db_seq_nextval('CALENDARS_SEQ')." AS CALENDAR_ID ".FROM_DUAL));
$calendar_id = $calendar_id[1]['CALENDAR_ID'];
@@ -255,7 +255,7 @@
echo '<FORM action=Modules.php?modname='.$_REQUEST['modname'].'&modfunc='.$_REQUEST['modfunc'].'&month='.$_REQUEST['month'].'&year='.$_REQUEST['year'].' METHOD=POST>';
DrawHeaderHome(PrepareDateSchedule($start_date,'_start').' - '.PrepareDateSchedule($end_date,'_end').' <A HREF=Modules.php?modname='.$_REQUEST['modname'].'&month='.$_REQUEST['month'].'&year='.$_REQUEST['year'].'>' . get_string('backToCalendar', 'schoolsetup') . '</A>','<INPUT type=submit class=btn_medium value="'.get_string('go', 'Common').'">');
$functions = array('SCHOOL_DATE'=>'ProperDate');
-
+
$events_RET = DBGet(DBQuery("SELECT ID,SCHOOL_DATE,TITLE,DESCRIPTION FROM CALENDAR_EVENTS WHERE SCHOOL_DATE BETWEEN '".$start_date."' AND '".$end_date."' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"),$functions);
ListOutput($events_RET,array('SCHOOL_DATE'=>get_string('date','schoolsetup'),'TITLE'=>get_string('event','schoolsetup'),'DESCRIPTION'=>'Description'),get_string('event','schoolsetup'),get_string('events','schoolsetup'));
echo '</FORM>';
Modified: trunk/modules/School_Setup/CopySchool.php
===================================================================
--- trunk/modules/School_Setup/CopySchool.php 2010-01-24 06:00:00 UTC (rev 409)
+++ trunk/modules/School_Setup/CopySchool.php 2010-01-25 02:14:53 UTC (rev 410)
@@ -27,84 +27,77 @@
$tables = array('SCHOOL_PERIODS'=>'School Periods','SCHOOL_YEARS'=>'Marking Periods','REPORT_CARD_GRADES'=>'Report Card Grade Codes','REPORT_CARD_COMMENTS'=>'Report Card Comment Codes','ELIGIBILITY_ACTIVITIES'=>'Eligibility Activity Codes','ATTENDANCE_CODES'=>'Attendance Codes','SCHOOL_GRADELEVELS'=>'Grade Levels');
$table_list = '<TABLE align=center cellspacing="5" cellpadding="3" border=0><tr><td ><b>' . get_string('newSchoolTitle', 'schoolsetup') . ': </b><INPUT type=text name=title value="' . get_string('newSchool', 'schoolsetup') . '" class="cell_medium_wide"></td></tr>';
-foreach($tables as $table=>$name)
-{
- $table_list .= '<TR><TD><INPUT type=checkbox value=Y name=tables['.$table.'] CHECKED> '.$name.'</TD></TR>';
+foreach($tables as $table=>$name) {
+ $table_list .= '<TR><TD><INPUT type=checkbox value=Y name=tables['.$table.'] CHECKED> '.$name.'</TD></TR>';
}
$table_list .= '</TABLE>';
DrawBC(get_string('schoolSetup', 'schoolsetup') . ProgramTitle());
-if(Prompt_Copy_School(get_string('confirmCopySchool', 'schoolsetup'), get_string('sureCopyDataFor', 'schoolsetup') . GetSchool(UserSchool()) . get_string('toNewSchool', 'schoolsetup'),$table_list))
-{
- if(count($_REQUEST['tables']))
- {
- $id = DBGet(DBQuery("SELECT ".db_seq_nextval('SCHOOLS_SEQ')." AS ID".FROM_DUAL));
- $id = $id[1]['ID'];
- DBQuery("INSERT INTO SCHOOLS (ID,TITLE) values('".$id."','".str_replace("\'","''",$_REQUEST['title'])."')");
- DBQuery("UPDATE STAFF SET SCHOOLS=CONCAT(SCHOOLS,',','$id') WHERE STAFF_ID='".User('STAFF_ID')."' AND SCHOOLS IS NOT NULL");
- foreach($_REQUEST['tables'] as $table=>$value)
- _rollover($table);
- }
- echo '<FORM action=Modules.php?modname='.$_REQUEST['modname'].' method=POST>';
- echo '<script language=JavaScript>parent.side.location="'.$_SESSION['Side_PHP_SELF'].'?modcat="+parent.side.document.forms[0].modcat.value;</script>';
- echo "<br><br>";
- DrawHeaderHome('<IMG SRC=assets/check.gif> ' . get_string('dataCopiedToNewSchool', 'schoolsetup') . ' "'.$_REQUEST['title'].'".','<INPUT type=submit value=' . get_string('ok', 'schoolsetup') . ' class="btn_medium">');
- echo '</FORM>';
- unset($_SESSION['_REQUEST_vars']['tables']);
- unset($_SESSION['_REQUEST_vars']['delete_ok']);
+if(Prompt_Copy_School(get_string('confirmCopySchool', 'schoolsetup'), get_string('sureCopyDataFor', 'schoolsetup') . GetSchool(UserSchool()) . get_string('toNewSchool', 'schoolsetup'),$table_list)) {
+ if(count($_REQUEST['tables'])) {
+ $id = DBGet(DBQuery("SELECT ".db_seq_nextval('SCHOOLS_SEQ')." AS ID".FROM_DUAL));
+ $id = $id[1]['ID'];
+ DBQuery("INSERT INTO SCHOOLS (ID,TITLE) values('".$id."','".str_replace("\'","''",$_REQUEST['title'])."')");
+ DBQuery("UPDATE STAFF SET SCHOOLS=CONCAT(SCHOOLS,',','$id') WHERE STAFF_ID='".User('STAFF_ID')."' AND SCHOOLS IS NOT NULL");
+ foreach($_REQUEST['tables'] as $table=>$value)
+ _rollover($table);
+ }
+ echo '<FORM action=Modules.php?modname='.$_REQUEST['modname'].' method=POST>';
+ echo '<script language=JavaScript>parent.side.location="'.$_SESSION['Side_PHP_SELF'].'?modcat="+parent.side.document.forms[0].modcat.value;</script>';
+ echo "<br><br>";
+ DrawHeaderHome('<IMG SRC=assets/check.gif> ' . get_string('dataCopiedToNewSchool', 'schoolsetup') . ' "'.$_REQUEST['title'].'".','<INPUT type=submit value=' . get_string('ok', 'schoolsetup') . ' class="btn_medium">');
+ echo '</FORM>';
+ unset($_SESSION['_REQUEST_vars']['tables']);
+ unset($_SESSION['_REQUEST_vars']['delete_ok']);
}
-function _rollover($table)
-{ global $id;
+function _rollover($table) { global $id;
- switch($table)
- {
- case 'SCHOOL_PERIODS':
- DBQuery("INSERT INTO SCHOOL_PERIODS (PERIOD_ID,SYEAR,SCHOOL_ID,SORT_ORDER,TITLE,SHORT_NAME,LENGTH,ROLLOVER_ID) SELECT fn_school_periods_seq(),SYEAR,'$id' AS SCHOOL_ID,SORT_ORDER,TITLE,SHORT_NAME,LENGTH,ROLLOVER_ID FROM SCHOOL_PERIODS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
- break;
+ switch($table) {
+ case 'SCHOOL_PERIODS':
+ DBQuery("INSERT INTO SCHOOL_PERIODS (PERIOD_ID,SYEAR,SCHOOL_ID,SORT_ORDER,TITLE,SHORT_NAME,LENGTH,ROLLOVER_ID) SELECT fn_school_periods_seq(),SYEAR,'$id' AS SCHOOL_ID,SORT_ORDER,TITLE,SHORT_NAME,LENGTH,ROLLOVER_ID FROM SCHOOL_PERIODS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
+ break;
- case 'SCHOOL_GRADELEVELS':
- $table_properties = db_properties($table);
- $columns = '';
- foreach($table_properties as $column=>$values)
- {
- if($column!='ID' && $column!='SCHOOL_ID' && $column!='NEXT_GRADE_ID')
- $columns .= ','.$column;
- }
- DBQuery("INSERT INTO $table (ID,SCHOOL_ID".$columns.") SELECT fn_". strtolower($table)."_seq(),'$id' AS SCHOOL_ID".$columns." FROM $table WHERE SCHOOL_ID='".UserSchool()."'");
- break;
+ case 'SCHOOL_GRADELEVELS':
+ $table_properties = db_properties($table);
+ $columns = '';
+ foreach($table_properties as $column=>$values) {
+ if($column!='ID' && $column!='SCHOOL_ID' && $column!='NEXT_GRADE_ID')
+ $columns .= ','.$column;
+ }
+ DBQuery("INSERT INTO $table (ID,SCHOOL_ID".$columns.") SELECT fn_". strtolower($table)."_seq(),'$id' AS SCHOOL_ID".$columns." FROM $table WHERE SCHOOL_ID='".UserSchool()."'");
+ break;
- case 'SCHOOL_YEARS':
- DBQuery("INSERT INTO SCHOOL_YEARS (MARKING_PERIOD_ID,SYEAR,SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,ROLLOVER_ID) SELECT fn_marking_period_seq()+MARKING_PERIOD_ID,SYEAR,'$id' AS SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,MARKING_PERIOD_ID FROM SCHOOL_YEARS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
+ case 'SCHOOL_YEARS':
+ DBQuery("INSERT INTO SCHOOL_YEARS (MARKING_PERIOD_ID,SYEAR,SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,ROLLOVER_ID) SELECT fn_marking_period_seq()+MARKING_PERIOD_ID,SYEAR,'$id' AS SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,MARKING_PERIOD_ID FROM SCHOOL_YEARS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
- DBQuery("INSERT INTO SCHOOL_SEMESTERS (MARKING_PERIOD_ID,YEAR_ID,SYEAR,SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,ROLLOVER_ID) SELECT fn_marking_period_seq()+MARKING_PERIOD_ID,(SELECT MARKING_PERIOD_ID FROM SCHOOL_YEARS y WHERE y.SYEAR=s.SYEAR AND y.ROLLOVER_ID=s.YEAR_ID AND y.SCHOOL_ID='$id') AS YEAR_ID,SYEAR,'$id' AS SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,MARKING_PERIOD_ID FROM SCHOOL_SEMESTERS s WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
+ DBQuery("INSERT INTO SCHOOL_SEMESTERS (MARKING_PERIOD_ID,YEAR_ID,SYEAR,SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,ROLLOVER_ID) SELECT fn_marking_period_seq()+MARKING_PERIOD_ID,(SELECT MARKING_PERIOD_ID FROM SCHOOL_YEARS y WHERE y.SYEAR=s.SYEAR AND y.ROLLOVER_ID=s.YEAR_ID AND y.SCHOOL_ID='$id') AS YEAR_ID,SYEAR,'$id' AS SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,MARKING_PERIOD_ID FROM SCHOOL_SEMESTERS s WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
- DBQuery("INSERT INTO SCHOOL_QUARTERS (MARKING_PERIOD_ID,SEMESTER_ID,SYEAR,SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,ROLLOVER_ID) SELECT fn_marking_period_seq()+MARKING_PERIOD_ID,(SELECT MARKING_PERIOD_ID FROM SCHOOL_SEMESTERS s WHERE s.SYEAR=q.SYEAR AND s.ROLLOVER_ID=q.SEMESTER_ID AND s.SCHOOL_ID='$id') AS SEMESTER_ID,SYEAR,'$id' AS SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,MARKING_PERIOD_ID FROM SCHOOL_QUARTERS q WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
+ DBQuery("INSERT INTO SCHOOL_QUARTERS (MARKING_PERIOD_ID,SEMESTER_ID,SYEAR,SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,ROLLOVER_ID) SELECT fn_marking_period_seq()+MARKING_PERIOD_ID,(SELECT MARKING_PERIOD_ID FROM SCHOOL_SEMESTERS s WHERE s.SYEAR=q.SYEAR AND s.ROLLOVER_ID=q.SEMESTER_ID AND s.SCHOOL_ID='$id') AS SEMESTER_ID,SYEAR,'$id' AS SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,MARKING_PERIOD_ID FROM SCHOOL_QUARTERS q WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
- DBQuery("INSERT INTO SCHOOL_PROGRESS_PERIODS (MARKING_PERIOD_ID,QUARTER_ID,SYEAR,SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,ROLLOVER_ID) SELECT fn_marking_period_seq()+MARKING_PERIOD_ID,(SELECT MARKING_PERIOD_ID FROM SCHOOL_QUARTERS q WHERE q.SYEAR=p.SYEAR AND q.ROLLOVER_ID=p.QUARTER_ID AND q.SCHOOL_ID='$id'),SYEAR,'$id' AS SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,MARKING_PERIOD_ID FROM SCHOOL_PROGRESS_PERIODS p WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
- break;
+ DBQuery("INSERT INTO SCHOOL_PROGRESS_PERIODS (MARKING_PERIOD_ID,QUARTER_ID,SYEAR,SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,ROLLOVER_ID) SELECT fn_marking_period_seq()+MARKING_PERIOD_ID,(SELECT MARKING_PERIOD_ID FROM SCHOOL_QUARTERS q WHERE q.SYEAR=p.SYEAR AND q.ROLLOVER_ID=p.QUARTER_ID AND q.SCHOOL_ID='$id'),SYEAR,'$id' AS SCHOOL_ID,TITLE,SHORT_NAME,SORT_ORDER,START_DATE,END_DATE,POST_START_DATE,POST_END_DATE,DOES_GRADES,DOES_EXAM,DOES_COMMENTS,MARKING_PERIOD_ID FROM SCHOOL_PROGRESS_PERIODS p WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
+ break;
- case 'REPORT_CARD_GRADES':
- DBQuery("INSERT INTO REPORT_CARD_GRADE_SCALES (ID,SYEAR,SCHOOL_ID,TITLE,COMMENT,SORT_ORDER,ROLLOVER_ID) SELECT ".db_seq_nextval('REPORT_CARD_GRADE_SCALES_SEQ').",SYEAR,'$id',TITLE,COMMENT,SORT_ORDER,ID FROM REPORT_CARD_GRADE_SCALES WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
- DBQuery("INSERT INTO REPORT_CARD_GRADES (ID,SYEAR,SCHOOL_ID,TITLE,COMMENT,BREAK_OFF,GPA_VALUE,GRADE_SCALE_ID,SORT_ORDER) SELECT ".db_seq_nextval('REPORT_CARD_GRADES_SEQ').",SYEAR,'$id',TITLE,COMMENT,BREAK_OFF,GPA_VALUE,(SELECT ID FROM REPORT_CARD_GRADE_SCALES WHERE ROLLOVER_ID=REPORT_CARD_GRADES.GRADE_SCALE_ID AND SCHOOL_ID=REPORT_CARD_GRADES.SCHOOL_ID),SORT_ORDER FROM REPORT_CARD_GRADES WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
- break;
+ case 'REPORT_CARD_GRADES':
+ DBQuery("INSERT INTO REPORT_CARD_GRADE_SCALES (ID,SYEAR,SCHOOL_ID,TITLE,COMMENT,SORT_ORDER,ROLLOVER_ID) SELECT ".db_seq_nextval('REPORT_CARD_GRADE_SCALES_SEQ').",SYEAR,'$id',TITLE,COMMENT,SORT_ORDER,ID FROM REPORT_CARD_GRADE_SCALES WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
+ DBQuery("INSERT INTO REPORT_CARD_GRADES (ID,SYEAR,SCHOOL_ID,TITLE,COMMENT,BREAK_OFF,GPA_VALUE,GRADE_SCALE_ID,SORT_ORDER) SELECT ".db_seq_nextval('REPORT_CARD_GRADES_SEQ').",SYEAR,'$id',TITLE,COMMENT,BREAK_OFF,GPA_VALUE,(SELECT ID FROM REPORT_CARD_GRADE_SCALES WHERE ROLLOVER_ID=REPORT_CARD_GRADES.GRADE_SCALE_ID AND SCHOOL_ID=REPORT_CARD_GRADES.SCHOOL_ID),SORT_ORDER FROM REPORT_CARD_GRADES WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
+ break;
- case 'REPORT_CARD_COMMENTS':
- DBQuery("INSERT INTO REPORT_CARD_COMMENTS (ID,SYEAR,SCHOOL_ID,TITLE,SORT_ORDER,COURSE_ID) SELECT ".db_seq_nextval('REPORT_CARD_COMMENTS_SEQ').",SYEAR,'$id',TITLE,SORT_ORDER,NULL FROM REPORT_CARD_COMMENTS WHERE COURSE_ID IS NULL AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
- break;
+ case 'REPORT_CARD_COMMENTS':
+ DBQuery("INSERT INTO REPORT_CARD_COMMENTS (ID,SYEAR,SCHOOL_ID,TITLE,SORT_ORDER,COURSE_ID) SELECT ".db_seq_nextval('REPORT_CARD_COMMENTS_SEQ').",SYEAR,'$id',TITLE,SORT_ORDER,NULL FROM REPORT_CARD_COMMENTS WHERE COURSE_ID IS NULL AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
+ break;
- case 'ELIGIBILITY_ACTIVITIES':
- case 'ATTENDANCE_CODES':
- $table_properties = db_properties($table);
- $columns = '';
- foreach($table_properties as $column=>$values)
- {
- if($column!='ID' && $column!='SYEAR' && $column!='SCHOOL_ID')
- $columns .= ','.$column;
- }
- DBQuery("INSERT INTO $table (ID,SYEAR,SCHOOL_ID".$columns.") SELECT fn_" . strtolower($table) . "_seq(),SYEAR,'$id' AS SCHOOL_ID".$columns." FROM $table WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
- break;
- }
+ case 'ELIGIBILITY_ACTIVITIES':
+ case 'ATTENDANCE_CODES':
+ $table_properties = db_properties($table);
+ $columns = '';
+ foreach($table_properties as $column=>$values) {
+ if($column!='ID' && $column!='SYEAR' && $column!='SCHOOL_ID')
+ $columns .= ','.$column;
+ }
+ DBQuery("INSERT INTO $table (ID,SYEAR,SCHOOL_ID".$columns.") SELECT fn_" . strtolower($table) . "_seq(),SYEAR,'$id' AS SCHOOL_ID".$columns." FROM $table WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'");
+ break;
+ }
}
?>
\ No newline at end of file
Modified: trunk/modules/School_Setup/Courses.php
===================================================================
--- trunk/modules/School_Setup/Courses.php 2010-01-24 06:00:00 UTC (rev 409)
+++ trunk/modules/School_Setup/Courses.php 2010-01-25 02:14:53 UTC (rev 410)
@@ -1,651 +1,580 @@
<?php
-//afn-here
unset($_SESSION['_REQUEST_vars']['subject_id']);unset($_SESSION['_REQUEST_vars']['course_id']);unset($_SESSION['_REQUEST_vars']['course_period_id']);
// if only one subject, select it automatically -- works for Course Setup and Choose a Course
-if($_REQUEST['modfunc']!='delete' && !$_REQUEST['subject_id'])
-{
- $subjects_RET = DBGet(DBQuery("SELECT SUBJECT_ID,TITLE FROM COURSE_SUBJECTS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."'"));
- if(count($subjects_RET)==1)
- $_REQUEST['subject_id'] = $subjects_RET[1]['SUBJECT_ID'];
+if($_REQUEST['modfunc']!='delete' && !$_REQUEST['subject_id']) {
+ $subjects_RET = DBGet(DBQuery("SELECT SUBJECT_ID,TITLE FROM COURSE_SUBJECTS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."'"));
+ if(count($subjects_RET)==1)
+ $_REQUEST['subject_id'] = $subjects_RET[1]['SUBJECT_ID'];
}
-if($_REQUEST['course_modfunc']=='search')
-{
- PopTable('header','Search');
- echo "<FORM name=F1 id=F1 action=Modules.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]&course_modfunc=search method=POST>";
- echo '<TABLE><TR><TD><INPUT type=text class=cell_floating name=search_term value="'.$_REQUEST['search_term'].'"></TD><TD><INPUT type=submit class=btn_medium value=Search onclick=\'formload_ajax("F1")\';></TD></TR></TABLE>';
- echo '</FORM>';
- PopTable('footer');
+if($_REQUEST['course_modfunc']=='search') {
+ PopTable('header','Search');
+ echo "<FORM name=F1 id=F1 action=Modules.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]&course_modfunc=search method=POST>";
+ echo '<TABLE><TR><TD><INPUT type=text class=cell_floating name=search_term value="'.$_REQUEST['search_term'].'"></TD><TD><INPUT type=submit class=btn_medium value=' . get_string('search', 'schoolsetup') . ' onclick=\'formload_ajax("F1")\';></TD></TR></TABLE>';
+ echo '</FORM>';
+ PopTable('footer');
- if($_REQUEST['search_term'])
- {
- $subjects_RET = DBGet(DBQuery("SELECT SUBJECT_ID,TITLE FROM COURSE_SUBJECTS WHERE (UPPER(TITLE) LIKE '%".strtoupper($_REQUEST['search_term'])."%' OR UPPER(SHORT_NAME) = '".strtoupper($_REQUEST['search_term'])."') AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"));
- $courses_RET = DBGet(DBQuery("SELECT SUBJECT_ID,COURSE_ID,TITLE FROM COURSES WHERE (UPPER(TITLE) LIKE '%".strtoupper($_REQUEST['search_term'])."%' OR UPPER(SHORT_NAME) = '".strtoupper($_REQUEST['search_term'])."') AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"));
- $periods_RET = DBGet(DBQuery("SELECT c.SUBJECT_ID,cp.COURSE_ID,cp.COURSE_PERIOD_ID,cp.TITLE FROM COURSE_PERIODS cp,COURSES c WHERE cp.COURSE_ID=c.COURSE_ID AND (UPPER(cp.TITLE) LIKE '%".strtoupper($_REQUEST['search_term'])."%' OR UPPER(cp.SHORT_NAME) = '".strtoupper($_REQUEST['search_term'])."') AND cp.SYEAR='".UserSyear()."' AND cp.SCHOOL_ID='".UserSchool()."'"));
+ if($_REQUEST['search_term']) {
+ $subjects_RET = DBGet(DBQuery("SELECT SUBJECT_ID,TITLE FROM COURSE_SUBJECTS WHERE (UPPER(TITLE) LIKE '%".strtoupper($_REQUEST['search_term'])."%' OR UPPER(SHORT_NAME) = '".strtoupper($_REQUEST['search_term'])."') AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"));
+ $courses_RET = DBGet(DBQuery("SELECT SUBJECT_ID,COURSE_ID,TITLE FROM COURSES WHERE (UPPER(TITLE) LIKE '%".strtoupper($_REQUEST['search_term'])."%' OR UPPER(SHORT_NAME) = '".strtoupper($_REQUEST['search_term'])."') AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"));
+ $periods_RET = DBGet(DBQuery("SELECT c.SUBJECT_ID,cp.COURSE_ID,cp.COURSE_PERIOD_ID,cp.TITLE FROM COURSE_PERIODS cp,COURSES c WHERE cp.COURSE_ID=c.COURSE_ID AND (UPPER(cp.TITLE) LIKE '%".strtoupper($_REQUEST['search_term'])."%' OR UPPER(cp.SHORT_NAME) = '".strtoupper($_REQUEST['search_term'])."') AND cp.SYEAR='".UserSyear()."' AND cp.SCHOOL_ID='".UserSchool()."'"));
- echo '<TABLE><TR><TD valign=top>';
- $link['TITLE']['link'] = "Modules.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]";
- $link['TITLE']['variables'] = array('subject_id'=>'SUBJECT_ID');
- ListOutput($subjects_RET,array('TITLE'=>'Subject'),'Subject','Subjects',$link);
- echo '</TD><TD valign=top>';
- $link['TITLE']['link'] = "Modules.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]";
- $link['TITLE']['variables'] = array('subject_id'=>'SUBJECT_ID','course_id'=>'COURSE_ID');
- ListOutput($courses_RET,array('TITLE'=>'Course'),'Course','Courses',$link);
- echo '</TD><TD valign=top>';
- $link['TITLE']['link'] = "Modules.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]";
- $link['TITLE']['variables'] = array('subject_id'=>'SUBJECT_ID','course_id'=>'COURSE_ID','course_period_id'=>'COURSE_PERIOD_ID');
- ListOutput($periods_RET,array('TITLE'=>'Course Period'),'Course Period','Course Periods',$link);
- echo '</TD></TR></TABLE>';
- }
+ echo '<TABLE><TR><TD valign=top>';
+ $link['TITLE']['link'] = "Modules.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]";
+ $link['TITLE']['variables'] = array('subject_id'=>'SUBJECT_ID');
+ ListOutput($subjects_RET,array('TITLE'=>get_string('subject', 'schoolsetup')),get_string('subject', 'schoolsetup'),get_string('subjects', 'schoolsetup'),$link);
+ echo '</TD><TD valign=top>';
+ $link['TITLE']['link'] = "Modules.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]";
+ $link['TITLE']['variables'] = array('subject_id'=>'SUBJECT_ID','course_id'=>'COURSE_ID');
+ ListOutput($courses_RET,array('TITLE'=>get_string('course', 'schoolsetup')),get_string('course', 'schoolsetup'),get_string('courses', 'schoolsetup'),$link);
+ echo '</TD><TD valign=top>';
+ $link['TITLE']['link'] = "Modules.php?modname=$_REQUEST[modname]&modfunc=$_REQUEST[modfunc]";
+ $link['TITLE']['variables'] = array('subject_id'=>'SUBJECT_ID','course_id'=>'COURSE_ID','course_period_id'=>'COURSE_PERIOD_ID');
+ ListOutput($periods_RET,array('TITLE'=>get_string('coursePeriod', 'schoolsetup')),get_string('coursePeriod', 'schoolsetup'),get_string('coursePeriods', 'schoolsetup'),$link);
+ echo '</TD></TR></TABLE>';
+ }
}
// UPDATING
-if($_REQUEST['tables'] && ($_POST['tables'] || $_REQUEST['ajax']) && AllowEdit())
-{
- $where = array('COURSE_SUBJECTS'=>'SUBJECT_ID',
- 'COURSES'=>'COURSE_ID',
- 'COURSE_PERIODS'=>'COURSE_PERIOD_ID');
+if($_REQUEST['tables'] && ($_POST['tables'] || $_REQUEST['ajax']) && AllowEdit()) {
+ $where = array('COURSE_SUBJECTS'=>'SUBJECT_ID',
+ 'COURSES'=>'COURSE_ID',
+ 'COURSE_PERIODS'=>'COURSE_PERIOD_ID');
- if($_REQUEST['tables']['parent_id'])
- $_REQUEST['tables']['COURSE_PERIODS'][$_REQUEST['course_period_id']]['PARENT_ID'] = $_REQUEST['tables']['parent_id'];
+ if($_REQUEST['tables']['parent_id'])
+ $_REQUEST['tables']['COURSE_PERIODS'][$_REQUEST['course_period_id']]['PARENT_ID'] = $_REQUEST['tables']['parent_id'];
- foreach($_REQUEST['tables'] as $table_name=>$tables)
- {
- foreach($tables as $id=>$columns)
- {
- if($columns['TOTAL_SEATS'] && !is_numeric($columns['TOTAL_SEATS']))
- $columns['TOTAL_SEATS'] = ereg_replace('[^0-9]+','',$columns['TOTAL_SEATS']);
- if($columns['DAYS'])
- {
- foreach($columns['DAYS'] as $day=>$y)
- {
- if($y=='Y')
- $days .= $day;
- }
- $columns['DAYS'] = $days;
- }
+ foreach($_REQUEST['tables'] as $table_name=>$tables) {
+ foreach($tables as $id=>$columns) {
+ if($columns['TOTAL_SEATS'] && !is_numeric($columns['TOTAL_SEATS']))
+ $columns['TOTAL_SEATS'] = ereg_replace('[^0-9]+','',$columns['TOTAL_SEATS']);
+ if($columns['DAYS']) {
+ foreach($columns['DAYS'] as $day=>$y) {
+ if($y=='Y')
+ $days .= $day;
+ }
+ $columns['DAYS'] = $days;
+ }
- if($id!='new')
- {
- if($table_name=='COURSES' && $columns['SUBJECT_ID'] && $columns['SUBJECT_ID']!=$_REQUEST['subject_id'])
- $_REQUEST['subject_id'] = $columns['SUBJECT_ID'];
+ if($id!='new') {
+ if($table_name=='COURSES' && $columns['SUBJECT_ID'] && $columns['SUBJECT_ID']!=$_REQUEST['subject_id'])
+ $_REQUEST['subject_id'] = $columns['SUBJECT_ID'];
- $sql = "UPDATE $table_name SET ";
+ $sql = "UPDATE $table_name SET ";
- if($table_name=='COURSE_PERIODS')
- {
- $current = DBGet(DBQuery("SELECT TEACHER_ID,PERIOD_ID,MARKING_PERIOD_ID,DAYS,SHORT_NAME FROM COURSE_PERIODS WHERE ".$where[$table_name]."='$id'"));
+ if($table_name=='COURSE_PERIODS') {
+ $current = DBGet(DBQuery("SELECT TEACHER_ID,PERIOD_ID,MARKING_PERIOD_ID,DAYS,SHORT_NAME FROM COURSE_PERIODS WHERE ".$where[$table_name]."='$id'"));
- if($columns['TEACHER_ID'])
- $staff_id = $columns['TEACHER_ID'];
- else
- $staff_id = $current[1]['TEACHER_ID'];
- if($columns['PERIOD_ID'])
- $period_id = $columns['PERIOD_ID'];
- else
- $period_id = $current[1]['PERIOD_ID'];
- if(isset($columns['MARKING_PERIOD_ID']))
- $marking_period_id = $columns['MARKING_PERIOD_ID'];
- else
- $marking_period_id = $current[1]['MARKING_PERIOD_ID'];
- if($columns['DAYS'])
- $days = $columns['DAYS'];
- else
- $days = $current[1]['DAYS'];
- if($columns['SHORT_NAME'])
- $short_name = $columns['SHORT_NAME'];
- else
- $short_name = $current[1]['SHORT_NAME'];
+ if($columns['TEACHER_ID'])
+ $staff_id = $columns['TEACHER_ID'];
+ else
+ $staff_id = $current[1]['TEACHER_ID'];
+ if($columns['PERIOD_ID'])
+ $period_id = $columns['PERIOD_ID'];
+ else
+ $period_id = $current[1]['PERIOD_ID'];
+ if(isset($columns['MARKING_PERIOD_ID']))
+ $marking_period_id = $columns['MARKING_PERIOD_ID'];
+ else
+ $marking_period_id = $current[1]['MARKING_PERIOD_ID'];
+ if($columns['DAYS'])
+ $days = $columns['DAYS'];
+ else
+ $days = $current[1]['DAYS'];
+ if($columns['SHORT_NAME'])
+ $short_name = $columns['SHORT_NAME'];
+ else
+ $short_name = $current[1]['SHORT_NAME'];
- $teacher = DBGet(DBQuery("SELECT FIRST_NAME,LAST_NAME,MIDDLE_NAME FROM STAFF WHERE SYEAR='".UserSyear()."' AND STAFF_ID='$staff_id'"));
- $period = DBGet(DBQuery("SELECT TITLE FROM SCHOOL_PERIODS WHERE PERIOD_ID='$period_id' AND SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."'"));
- if(GetMP($marking_period_id,'TABLE')!='SCHOOL_YEARS')
- $mp_title = GetMP($marking_period_id,'SHORT_NAME').' - ';
- if(strlen($days)<5)
- $mp_title .= $days.' - ';
- if($short_name)
- $mp_title .= $short_name.' - ';
+ $teacher = DBGet(DBQuery("SELECT FIRST_NAME,LAST_NAME,MIDDLE_NAME FROM STAFF WHERE SYEAR='".UserSyear()."' AND STAFF_ID='$staff_id'"));
+ $period = DBGet(DBQuery("SELECT TITLE FROM SCHOOL_PERIODS WHERE PERIOD_ID='$period_id' AND SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."'"));
+ if(GetMP($marking_period_id,'TABLE')!='SCHOOL_YEARS')
+ $mp_title = GetMP($marking_period_id,'SHORT_NAME').' - ';
+ if(strlen($days)<5)
+ $mp_title .= $days.' - ';
+ if($short_name)
+ $mp_title .= $short_name.' - ';
- $title = str_replace("'","''",$period[1]['TITLE'].' - '.$mp_title.$teacher[1]['FIRST_NAME'].' '.$teacher[1]['MIDDLE_NAME'].' '.$teacher[1]['LAST_NAME']);
- $sql .= "TITLE='$title',";
+ $title = str_replace("'","''",$period[1]['TITLE'].' - '.$mp_title.$teacher[1]['FIRST_NAME'].' '.$teacher[1]['MIDDLE_NAME'].' '.$teacher[1]['LAST_NAME']);
+ $sql .= "TITLE='$title',";
- if(isset($columns['MARKING_PERIOD_ID']))
- {
- if(GetMP($columns['MARKING_PERIOD_ID'],'TABLE')=='SCHOOL_YEARS')
- $columns['MP'] = 'FY';
- elseif(GetMP($columns['MARKING_PERIOD_ID'],'TABLE')=='SCHOOL_SEMESTERS')
- $columns['MP'] = 'SEM';
- else
- $columns['MP'] = 'QTR';
- }
- }
+ //TODO ??
+ if(isset($columns['MARKING_PERIOD_ID'])) {
+ if(GetMP($columns['MARKING_PERIOD_ID'],'TABLE')=='SCHOOL_YEARS')
+ $columns['MP'] = 'FY';
+ elseif(GetMP($columns['MARKING_PERIOD_ID'],'TABLE')=='SCHOOL_SEMESTERS')
+ $columns['MP'] = 'SEM';
+ else
+ $columns['MP'] = 'QTR';
+ }
+ }
- foreach($columns as $column=>$value)
- if($column=='GRADE_SCALE_ID' && str_replace("\'","''",$value)=='')
- $sql .= $column." = NULL,";
- else
- $sql .= $column."='".str_replace("\'","''",$value)."',";
+ foreach($columns as $column=>$value)
+ if($column=='GRADE_SCALE_ID' && str_replace("\'","''",$value)=='')
+ $sql .= $column." = NULL,";
+ else
+ $sql .= $column."='".str_replace("\'","''",$value)."',";
- $sql = substr($sql,0,-1) . " WHERE ".$where[$table_name]."='$id'";
- DBQuery($sql);
-
- // ----------------------------------------------- //
- if($_REQUEST['w_course_period_id'])
- {
- $sql_1 = "UPDATE $table_name SET PARENT_ID=".$_REQUEST['w_course_period_id']." WHERE ".$where[$table_name]."='$id'";
- DBQuery($sql_1);
- }
- // ----------------------------------------------- //
+ $sql = substr($sql,0,-1) . " WHERE ".$where[$table_name]."='$id'";
+ DBQuery($sql);
- }
- else
- {
- $sql = "INSERT INTO $table_name ";
+ // ----------------------------------------------- //
+ if($_REQUEST['w_course_period_id']) {
+ $sql_1 = "UPDATE $table_name SET PARENT_ID=".$_REQUEST['w_course_period_id']." WHERE ".$where[$table_name]."='$id'";
+ DBQuery($sql_1);
+ }
+ // ----------------------------------------------- //
- if($table_name=='COURSE_SUBJECTS')
- {
- $id = DBGet(DBQuery("SELECT ".db_seq_nextval('COURSE_SUBJECTS_SEQ').' AS ID'.FROM_DUAL));
- $fields = 'SUBJECT_ID,SCHOOL_ID,SYEAR,';
- $values = "'".$id[1]['ID']."','".UserSchool()."','".UserSyear()."',";
- $_REQUEST['subject_id'] = $id[1]['ID'];
- }
- elseif($table_name=='COURSES')
- {
- $id = DBGet(DBQuery("SELECT ".db_seq_nextval('COURSES_SEQ').' AS ID'.FROM_DUAL));
- $fields = 'COURSE_ID,SUBJECT_ID,SCHOOL_ID,SYEAR,';
- $values = "'".$id[1]['ID']."','$_REQUEST[subject_id]','".UserSchool()."','".UserSyear()."',";
- $_REQUEST['course_id'] = $id[1]['ID'];
- }
+ }
+ else {
+ $sql = "INSERT INTO $table_name ";
- elseif($table_name=='COURSE_PERIODS')
- {
- $id = DBGet(DBQuery("SELECT ".db_seq_nextval('COURSE_PERIODS_SEQ').' AS ID'.FROM_DUAL));
- $fields = 'SYEAR,SCHOOL_ID,COURSE_PERIOD_ID,COURSE_ID,TITLE,';
- $teacher = DBGet(DBQuery("SELECT FIRST_NAME,LAST_NAME,MIDDLE_NAME FROM STAFF WHERE SYEAR='".UserSyear()."' AND STAFF_ID='$columns[TEACHER_ID]'"));
- $period = DBGet(DBQuery("SELECT TITLE FROM SCHOOL_PERIODS WHERE PERIOD_ID='$columns[PERIOD_ID]' AND SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."'"));
+ if($table_name=='COURSE_SUBJECTS') {
+ $id = DBGet(DBQuery("SELECT ".db_seq_nextval('COURSE_SUBJECTS_SEQ').' AS ID'.FROM_DUAL));
+ $fields = 'SUBJECT_ID,SCHOOL_ID,SYEAR,';
+ $values = "'".$id[1]['ID']."','".UserSchool()."','".UserSyear()."',";
+ $_REQUEST['subject_id'] = $id[1]['ID'];
+ }
+ elseif($table_name=='COURSES') {
+ $id = DBGet(DBQuery("SELECT ".db_seq_nextval('COURSES_SEQ').' AS ID'.FROM_DUAL));
+ $fields = 'COURSE_ID,SUBJECT_ID,SCHOOL_ID,SYEAR,';
+ $values = "'".$id[1]['ID']."','$_REQUEST[subject_id]','".UserSchool()."','".UserSyear()."',";
+ $_REQUEST['course_id'] = $id[1]['ID'];
+ }
+ elseif($table_name=='COURSE_PERIODS') {
+ $id = DBGet(DBQuery("SELECT ".db_seq_nextval('COURSE_PERIODS_SEQ').' AS ID'.FROM_DUAL));
+ $fields = 'SYEAR,SCHOOL_ID,COURSE_PERIOD_ID,COURSE_ID,TITLE,';
+ $teacher = DBGet(DBQuery("SELECT FIRST_NAME,LAST_NAME,MIDDLE_NAME FROM STAFF WHERE SYEAR='".UserSyear()."' AND STAFF_ID='$columns[TEACHER_ID]'"));
+ $period = DBGet(DBQuery("SELECT TITLE FROM SCHOOL_PERIODS WHERE PERIOD_ID='$columns[PERIOD_ID]' AND SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."'"));
- if(!isset($columns['PARENT_ID']))
- $columns['PARENT_ID'] = $id[1]['ID'];
- if(isset($columns['MARKING_PERIOD_ID']))
- {
- if(GetMP($columns['MARKING_PERIOD_ID'],'TABLE')=='SCHOOL_YEARS')
- $columns['MP'] = 'FY';
- elseif(GetMP($columns['MARKING_PERIOD_ID'],'TABLE')=='SCHOOL_SEMESTERS')
- $columns['MP'] = 'SEM';
- else
- $columns['MP'] = 'QTR';
+ if(!isset($columns['PARENT_ID']))
+ $columns['PARENT_ID'] = $id[1]['ID'];
- if(GetMP($columns['MARKING_PERIOD_ID'],'TABLE')!='SCHOOL_YEARS')
- $mp_title = GetMP($columns['MARKING_PERIOD_ID'],'SHORT_NAME').' - ';
- }
+ if(isset($columns['MARKING_PERIOD_ID'])) {
+ if(GetMP($columns['MARKING_PERIOD_ID'],'TABLE')=='SCHOOL_YEARS')
+ $columns['MP'] = 'FY';
+ elseif(GetMP($columns['MARKING_PERIOD_ID'],'TABLE')=='SCHOOL_SEMESTERS')
+ $columns['MP'] = 'SEM';
+ else
+ $columns['MP'] = 'QTR';
- if(strlen($columns['DAYS'])<5)
- $mp_title .= $columns['DAYS'].' - ';
- if($columns['SHORT_NAME'])
- $mp_title .= $columns['SHORT_NAME'].' - ';
- $title = str_replace("'","''",$period[1]['TITLE'].' - '.$mp_title.$teacher[1]['FIRST_NAME'].' '.$teacher[1]['MIDDLE_NAME'].' '.$teacher[1]['LAST_NAME']);
+ if(GetMP($columns['MARKING_PERIOD_ID'],'TABLE')!='SCHOOL_YEARS')
+ $mp_title = GetMP($columns['MARKING_PERIOD_ID'],'SHORT_NAME').' - ';
+ }
- $values = "'".UserSyear()."','".UserSchool()."','".$id[1]['ID']."','$_REQUEST[course_id]','$title',";
- $_REQUEST['course_period_id'] = $id[1]['ID'];
- }
+ if(strlen($columns['DAYS'])<5)
+ $mp_title .= $columns['DAYS'].' - ';
+ if($columns['SHORT_NAME'])
+ $mp_title .= $columns['SHORT_NAME'].' - ';
+ $title = str_replace("'","''",$period[1]['TITLE'].' - '.$mp_title.$teacher[1]['FIRST_NAME'].' '.$teacher[1]['MIDDLE_NAME'].' '.$teacher[1]['LAST_NAME']);
- $go = 0;
- foreach($columns as $column=>$value)
- {
- if(isset($value))
- {
- $fields .= $column.',';
- $values .= "'".str_replace("\'","''",$value)."',";
- $go = true;
- }
- }
- $sql .= '(' . substr($fields,0,-1) . ') values(' . substr($values,0,-1) . ')';
+ $values = "'".UserSyear()."','".UserSchool()."','".$id[1]['ID']."','$_REQUEST[course_id]','$title',";
+ $_REQUEST['course_period_id'] = $id[1]['ID'];
+ }
- if($go)
- DBQuery($sql);
-
- // ----------------------------------------------- //
- if($_REQUEST['w_course_period_id'])
- {
- $max_id = DBGet(DBQuery("SELECT MAX(COURSE_PERIOD_ID) FROM COURSE_PERIODS;"));
- $sql_2 = "UPDATE COURSE_PERIODS SET PARENT_ID=".$_REQUEST['w_course_period_id']." WHERE COURSE_PERIOD_ID = ".$max_id[1]['MAX'];;
- DBQuery($sql_2);
- }
- // ----------------------------------------------- //
-
- }
- }
- }
- unset($_REQUEST['tables']);
+ $go = 0;
+ foreach($columns as $column=>$value) {
+ if(isset($value)) {
+ $fields .= $column.',';
+ $values .= "'".str_replace("\'","''",$value)."',";
+ $go = true;
+ }
+ }
+ $sql .= '(' . substr($fields,0,-1) . ') values(' . substr($values,0,-1) . ')';
+
+ if($go)
+ DBQuery($sql);
+
+ // ----------------------------------------------- //
+ if($_REQUEST['w_course_period_id']) {
+ $max_id = DBGet(DBQuery("SELECT MAX(COURSE_PERIOD_ID) FROM COURSE_PERIODS;"));
+ $sql_2 = "UPDATE COURSE_PERIODS SET PARENT_ID=".$_REQUEST['w_course_period_id']." WHERE COURSE_PERIOD_ID = ".$max_id[1]['MAX'];;
+ DBQuery($sql_2);
+ }
+ // ----------------------------------------------- //
+
+ }
+ }
+ }
+
+ unset($_REQUEST['tables']);
}
-if($_REQUEST['modfunc']=='delete' && AllowEdit())
-{
- unset($sql);
- if($_REQUEST['course_period_id'])
- {
- $table = 'course period';
- $sql[] = "UPDATE COURSE_PERIODS SET PARENT_ID=NULL WHERE PARENT_ID='$_REQUEST[course_period_id]'";
- $sql[] = "DELETE FROM COURSE_PERIODS WHERE COURSE_PERIOD_ID='$_REQUEST[course_period_id]'";
- $sql[] = "DELETE FROM SCHEDULE WHERE COURSE_PERIOD_ID='$_REQUEST[course_period_id]'";
- }
+if($_REQUEST['modfunc']=='delete' && AllowEdit()) {
+ unset($sql);
+ if($_REQUEST['course_period_id']) {
+ $table = 'course period';
+ $sql[] = "UPDATE COURSE_PERIODS SET PARENT_ID=NULL WHERE PARENT_ID='$_REQUEST[course_period_id]'";
+ $sql[] = "DELETE FROM COURSE_PERIODS WHERE COURSE_PERIOD_ID='$_REQUEST[course_period_id]'";
+ $sql[] = "DELETE FROM SCHEDULE WHERE COURSE_PERIOD_ID='$_REQUEST[course_period_id]'";
+ }
- elseif($_REQUEST['course_id'])
- {
- $table = 'course';
- $sql[] = "DELETE FROM COURSES WHERE COURSE_ID='$_REQUEST[course_id]'";
- #$sql[] = "UPDATE COURSE_PERIODS SET PARENT_ID=NULL WHERE PARENT_ID IN (SELECT COURSE_PERIOD_ID FROM COURSE_PERIODS WHERE COURSE_ID='$_REQUEST[course_id]')";
-
- ############# query error solved ##############
- $extra_sql="SELECT COURSE_PERIOD_ID FROM COURSE_PERIODS WHERE COURSE_ID='$_REQUEST[course_id]'";
- $result_sql = DBGet(DBQuery($extra_sql));
- $sql[] = "UPDATE COURSE_PERIODS SET PARENT_ID=NULL WHERE PARENT_ID = '".$result_sql."'";
-
+ elseif($_REQUEST['course_id']) {
+ $table = 'course';
+ $sql[] = "DELETE FROM COURSES WHERE COURSE_ID='$_REQUEST[course_id]'";
- $sql[] = "DELETE FROM COURSE_PERIODS WHERE COURSE_ID='$_REQUEST[course_id]'";
- $sql[] = "DELETE FROM SCHEDULE WHERE COURSE_ID='$_REQUEST[course_id]'";
- $sql[] = "DELETE FROM SCHEDULE_REQUESTS WHERE COURSE_ID='$_REQUEST[course_id]'";
- }
- elseif($_REQUEST['subject_id'])
- {
- $table = 'subject';
- $sql[] = "DELETE FROM COURSE_SUBJECTS WHERE SUBJECT_ID='$_REQUEST[subject_id]'";
- $courses = DBGet(DBQuery("SELECT COURSE_ID FROM COURSES WHERE SUBJECT_ID='$_REQUEST[subject_id]'"));
- if(count($courses))
- {
- foreach($courses as $course)
- {
- $sql[] = "DELETE FROM COURSES WHERE COURSE_ID='$course[COURSE_ID]'";
- #$sql[] = "UPDATE COURSE_PERIODS SET PARENT_ID=NULL WHERE PARENT_ID IN (SELECT COURSE_PERIOD_ID FROM COURSE_PERIODS WHERE COURSE_ID='$course[COURSE_ID]')";
-
-
- $extra_sql2="SELECT COURSE_PERIOD_ID FROM COURSE_PERIODS WHERE COURSE_ID='$course[COURSE_ID]'";
- $result_sql2 = DBGet(DBQuery($extra_sql2));
- $sql[] = "UPDATE COURSE_PERIODS SET PARENT_ID=NULL WHERE PARENT_ID = '".$result_sql2."'";
+ ############# query error solved ##############
+ $extra_sql="SELECT COURSE_PERIOD_ID FROM COURSE_PERIODS WHERE COURSE_ID='$_REQUEST[course_id]'";
+ $result_sql = DBGet(DBQuery($extra_sql));
+ $sql[] = "UPDATE COURSE_PERIODS SET PARENT_ID=NULL WHERE PARENT_ID = '".$result_sql."'";
- $sql[] = "DELETE FROM COURSE_PERIODS WHERE COURSE_ID='$course[COURSE_ID]'";
- $sql[] = "DELETE FROM SCHEDULE WHERE COURSE_ID='$course[COURSE_ID]'";
- $sql[] = "DELETE FROM SCHEDULE_REQUESTS WHERE COURSE_ID='$course[COURSE_ID]'";
- }
- }
- }
+ $sql[] = "DELETE FROM COURSE_PERIODS WHERE COURSE_ID='$_REQUEST[course_id]'";
+ $sql[] = "DELETE FROM SCHEDULE WHERE COURSE_ID='$_REQUEST[course_id]'";
+ $sql[] = "DELETE FROM SCHEDULE_REQUESTS WHERE COURSE_ID='$_REQUEST[course_id]'";
+ }
+ elseif($_REQUEST['subject_id']) {
+ $table = 'subject';
+ $sql[] = "DELETE FROM COURSE_SUBJECTS WHERE SUBJECT_ID='$_REQUEST[subject_id]'";
+ $courses = DBGet(DBQuery("SELECT COURSE_ID FROM COURSES WHERE SUBJECT_ID='$_REQUEST[subject_id]'"));
+ if(count($courses)) {
+ foreach($courses as $course) {
+ $sql[] = "DELETE FROM COURSES WHERE COURSE_ID='$course[COURSE_ID]'";
- if(DeletePrompt($table))
- {
- if(BlockDelete($table))
- {
- foreach($sql as $query)
- DBQuery($query);
- unset($_REQUEST['modfunc']);
- }
- }
+ $extra_sql2="SELECT COURSE_PERIOD_ID FROM COURSE_PERIODS WHERE COURSE_ID='$course[COURSE_ID]'";
+ $result_sql2 = DBGet(DBQuery($extra_sql2));
+ $sql[] = "UPDATE COURSE_PERIODS SET PARENT_ID=NULL WHERE PARENT_ID = '".$result_sql2."'";
+
+ $sql[] = "DELETE FROM COURSE_PERIODS WHERE COURSE_ID='$course[COURSE_ID]'";
+ $sql[] = "DELETE FROM SCHEDULE WHERE COURSE_ID='$course[COURSE_ID]'";
+ $sql[] = "DELETE FROM SCHEDULE_REQUESTS WHERE COURSE_ID='$course[COURSE_ID]'";
+ }
+ }
+ }
+
+ if(DeletePrompt($table)) {
+ if(BlockDelete($table)) {
+ foreach($sql as $query)
+ DBQuery($query);
+ unset($_REQUEST['modfunc']);
+ }
+ }
}
-if((!$_REQUEST['modfunc'] || $_REQUEST['modfunc']=='choose_course') && !$_REQUEST['course_modfunc'])
-{
- if($_REQUEST['modfunc']!='choose_course')
- DrawBC("Scheduling > ".ProgramTitle());
- $sql = "SELECT SUBJECT_ID,TITLE FROM COURSE_SUBJECTS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."' ORDER BY TITLE";
- $QI = DBQuery($sql);
- $subjects_RET = DBGet($QI);
+if((!$_REQUEST['modfunc'] || $_REQUEST['modfunc']=='choose_course') && !$_REQUEST['course_modfunc']) {
+ if($_REQUEST['modfunc']!='choose_course')
+ DrawBC("Scheduling > ".ProgramTitle());
+ $sql = "SELECT SUBJECT_ID,TITLE FROM COURSE_SUBJECTS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."' ORDER BY TITLE";
+ $QI = DBQuery($sql);
+ $subjects_RET = DBGet($QI);
- if($_REQUEST['modfunc']!='choose_course')
- {
- if(AllowEdit())
- $delete_button = "<INPUT type=button class=btn_medium value=Delete onClick='javascript:window.location=\"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&subject_id=$_REQUEST[subject_id]&course_id=$_REQUEST[course_id]&course_period_id=$_REQUEST[course_period_id]\"'> ";
- // ADDING & EDITING FORM
- if($_REQUEST['course_period_id'])
- {
- if($_REQUEST['course_period_id']!='new')
- {
- $sql = "SELECT PARENT_ID,TITLE,SHORT_NAME,PERIOD_ID,DAYS,
- MP,MARKING_PERIOD_ID,TEACHER_ID,CALENDAR_ID,
- ROOM,TOTAL_SEATS,DOES_ATTENDANCE,
- GRADE_SCALE_ID,DOES_HONOR_ROLL,DOES_CLASS_RANK,
- GENDER_RESTRICTION,HOUSE_RESTRICTION,CREDITS,
- HALF_DAY,DOES_BREAKOFF
- FROM COURSE_PERIODS
- WHERE COURSE_PERIOD_ID='$_REQUEST[course_period_id]'";
- $QI = DBQuery($sql);
- $RET = DBGet($QI);
- $RET = $RET[1];
- $title = $RET['TITLE'];
- $new = false;
- }
- else
- {
- $sql = "SELECT TITLE
- FROM COURSES
- WHERE COURSE_ID='$_REQUEST[course_id]'";
- $QI = DBQuery($sql);
- $RET = DBGet($QI);
- $title = $RET[1]['TITLE'].' - New Period';
- unset($delete_button);
- unset($RET);
- $checked = 'CHECKED';
- $new = true;
- }
+ if($_REQUEST['modfunc']!='choose_course') {
+ if(AllowEdit())
+ $delete_button = "<INPUT type=button class=btn_medium value=" . get_string('delete', 'schoolsetup') . " onClick='javascript:window.location=\"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&subject_id=$_REQUEST[subject_id]&course_id=$_REQUEST[course_id]&course_period_id=$_REQUEST[course_period_id]\"'> ";
- echo "<FORM name=F2 id=F2 action=Modules.php?modname=$_REQUEST[modname]&subject_id=$_REQUEST[subject_id]&course_id=$_REQUEST[course_id]&course_period_id=$_REQUEST[course_period_id] method=POST>";
- DrawHeaderHome($title,$delete_button.SubmitButton('Save','','class=btn_medium onclick="formcheck_scheduling_course_F2();"'));
-
- $header .= '<TABLE cellpadding=3 width=760 >';
- $header .= '<TR>';
+ // ADDING & EDITING FORM
+ if($_REQUEST['course_period_id']) {
+ if($_REQUEST['course_period_id']!='new') {
+ $sql = "SELECT PARENT_ID,TITLE,SHORT_NAME,PERIOD_ID,DAYS,
+ MP,MARKING_PERIOD_ID,TEACHER_ID,CALENDAR_ID,
+ ROOM,TOTAL_SEATS,DOES_ATTENDANCE,
+ GRADE_SCALE_ID,DOES_HONOR_ROLL,DOES_CLASS_RANK,
+ GENDER_RESTRICTION,HOUSE_RESTRICTION,CREDITS,
+ HALF_DAY,DOES_BREAKOFF
+ FROM COURSE_PERIODS
+ WHERE COURSE_PERIOD_ID='$_REQUEST[course_period_id]'";
+ $QI = DBQuery($sql);
+ $RET = DBGet($QI);
+ $RET = $RET[1];
+ $title = $RET['TITLE'];
+ $new = false;
+ }
+ else {
+ $sql = "SELECT TITLE
+ FROM COURSES
+ WHERE COURSE_ID='$_REQUEST[course_id]'";
+ $QI = DBQuery($sql);
+ $RET = DBGet($QI);
+ $title = $RET[1]['TITLE'].' - ' . get_string('newPeriod', 'schoolsetup');
+ unset($delete_button);
+ unset($RET);
+ $checked = 'CHECKED';
+ $new = true;
+ }
- $header .= '<TD>' . TextInput($RET['SHORT_NAME'],'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][SHORT_NAME]','Short Name','class=cell_floating') . '</TD>';
+ echo "<FORM name=F2 id=F2 action=Modules.php?modname=$_REQUEST[modname]&subject_id=$_REQUEST[subject_id]&course_id=$_REQUEST[course_id]&course_period_id=$_REQUEST[course_period_id] method=POST>";
+ DrawHeaderHome($title,$delete_button.SubmitButton(get_string('save', 'schoolsetup'),'','class=btn_medium onclick="formcheck_scheduling_course_F2();"'));
- $teachers_RET = DBGet(DBQuery("SELECT STAFF_ID,LAST_NAME,FIRST_NAME,MIDDLE_NAME FROM STAFF WHERE (SCHOOLS IS NULL OR FIND_IN_SET('".UserSchool()."',SCHOOLS)>0) AND SYEAR='".UserSyear()."' AND PROFILE='teacher' ORDER BY LAST_NAME,FIRST_NAME"));
- if(count($teachers_RET))
- {
- foreach($teachers_RET as $teacher)
- $teachers[$teacher['STAFF_ID']] = $teacher['LAST_NAME'].', '.$teacher['FIRST_NAME'].' '.$teacher['MIDDLE_NAME'];
- }
- $header .= '<TD>' . SelectInput($RET['TEACHER_ID'],'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][TEACHER_ID]','Teacher',$teachers) . '</TD>';
+ $header .= '<TABLE cellpadding=3 width=760 >';
+ $header .= '<TR>';
- $header .= '<TD>' . TextInput($RET['ROOM'],'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][ROOM]','Room','class=cell_floating') . '</TD>';
+ $header .= '<TD>' . TextInput($RET['SHORT_NAME'],'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][SHORT_NAME]','Short Name','class=cell_floating') . '</TD>';
- $periods_RET = DBGet(DBQuery("SELECT PERIOD_ID,TITLE FROM SCHOOL_PERIODS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."' ORDER BY SORT_ORDER"));
- if(count($periods_RET))
- {
- foreach($periods_RET as $period)
- $periods[$period['PERIOD_ID']] = $period['TITLE'];
- }
- $header .= '<TD>' . SelectInput($RET['PERIOD_ID'],'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][PERIOD_ID]','Period',$periods) . '</TD>';
- $header .= '<TD>';
- if($new==false)
- $header .= '<DIV id=days><div onclick=\'addHTML("';
- $header .= '<TABLE><TR>';
- $days = array('U','M','T','W','H','F','S');
- foreach($days as $day)
- {
- if(strpos($RET['DAYS'],$day)!==false || ($new && $day!='S' && $day!='U'))
- $value = 'Y';
- else
- $value = '';
+ $teachers_RET = DBGet(DBQuery("SELECT STAFF_ID,LAST_NAME,FIRST_NAME,MIDDLE_NAME FROM STAFF WHERE (SCHOOLS IS NULL OR FIND_IN_SET('".UserSchool()."',SCHOOLS)>0) AND SYEAR='".UserSyear()."' AND PROFILE='teacher' ORDER BY LAST_NAME,FIRST_NAME"));
+ if(count($teachers_RET)) {
+ foreach($teachers_RET as $teacher)
+ $teachers[$teacher['STAFF_ID']] = $teacher['LAST_NAME'].', '.$teacher['FIRST_NAME'].' '.$teacher['MIDDLE_NAME'];
+ }
+ $header .= '<TD>' . SelectInput($RET['TEACHER_ID'],'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][TEACHER_ID]',get_string('teacher', 'schoolsetup'),$teachers) . '</TD>';
- $header .= '<TD>'.str_replace('"','\"',CheckboxInput($value,'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][DAYS]['.$day.']',($day=='U'?'S':$day),$checked,false,'','',false)).'</TD>';
- }
- $header .= '</TR></TABLE>';
-
- if($new==false)
- $header .= '","days",true);\'>'.$RET['DAYS'].'</div></DIV><small><FONT color='.Preferences('TITLES').'>Meeting Days</FONT></small>';
- $header .= '</TD>';
- $mp_RET = DBGet(DBQuery("SELECT MARKING_PERIOD_ID,SHORT_NAME,'2' AS t,SORT_ORDER FROM SCHOOL_QUARTERS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."' UNION SELECT MARKING_PERIOD_ID,SHORT_NAME,'1' AS t,SORT_ORDER FROM SCHOOL_SEMESTERS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."' UNION SELECT MARKING_PERIOD_ID,SHORT_NAME,'0' AS t,SORT_ORDER FROM SCHOOL_YEARS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."' ORDER BY 3,4"));
- unset($options);
- if($_REQUEST['course_period_id']!='new')
- {
- $available_seats = DBGet(DBQuery("SELECT (TOTAL_SEATS - FILLED_SEATS) AS AVAILABLE_SEATS FROM COURSE_PERIODS WHERE COURSE_PERIOD_ID='".$_REQUEST['course_period_id']."'"));
- $available_seats = $available_seats[1]['AVAILABLE_SEATS'];
- }
+ $header .= '<TD>' . TextInput($RET['ROOM'],'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][ROOM]',get_string('room', 'schoolsetup'),'class=cell_floating') . '</TD>';
- if(count($mp_RET))
- {
- foreach($mp_RET as $mp)
- $options[$mp['MARKING_PERIOD_ID']] = $mp['SHORT_NAME'];
- }
- $header .= '<TD>' . SelectInput($RET['MARKING_PERIOD_ID'],'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][MARKING_PERIOD_ID]','Marking Period',$options,false) . '</TD>';
- $header .= '<TD>' . TextInput($RET['TOTAL_SEATS'],'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][TOTAL_SEATS]','Seats','size=4 class=cell_floating') . '</TD>';
- if($_REQUEST['course_period_id']!='new')
- $header .= '<TD><FONT color=green>' .$available_seats. '</FONT><BR><FONT color=gray><SMALL>Available Seats</SMALL></FONT></TD>';
+ $periods_RET = DBGet(DBQuery("SELECT PERIOD_ID,TITLE FROM SCHOOL_PERIODS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."' ORDER BY SORT_ORDER"));
+ if(count($periods_RET)) {
+ foreach($periods_RET as $period)
+ $periods[$period['PERIOD_ID']] = $period['TITLE'];
+ }
+ $header .= '<TD>' . SelectInput($RET['PERIOD_ID'],'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][PERIOD_ID]',get_string('period', 'schoolsetup'),$periods) . '</TD>';
+ $header .= '<TD>';
+ if($new==false)
+ $header .= '<DIV id=days><div onclick=\'addHTML("';
+ $header .= '<TABLE><TR>';
+ //TODO ??
+ $days = array('U','M','T','W','H','F','S');
+ foreach($days as $day) {
+ if(strpos($RET['DAYS'],$day)!==false || ($new && $day!='S' && $day!='U'))
+ $value = 'Y';
+ else
+ $value = '';
- $header .= '</TR>';
+ $header .= '<TD>'.str_replace('"','\"',CheckboxInput($value,'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][DAYS]['.$day.']',($day=='U'?'S':$day),$checked,false,'','',false)).'</TD>';
+ }
+ $header .= '</TR></TABLE>';
- $header .= '<TR>';
+ if($new==false)
+ $header .= '",' . get_string('days', 'schoolsetup') . ',true);\'>'.$RET['DAYS'].'</div></DIV><small><FONT color='.Preferences('TITLES').'>' . get_string('meetingDays', 'schoolsetup') . '</FONT></small>';
+ $header .= '</TD>';
+ $mp_RET = DBGet(DBQuery("SELECT MARKING_PERIOD_ID,SHORT_NAME,'2' AS t,SORT_ORDER FROM SCHOOL_QUARTERS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."' UNION SELECT MARKING_PERIOD_ID,SHORT_NAME,'1' AS t,SORT_ORDER FROM SCHOOL_SEMESTERS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."' UNION SELECT MARKING_PERIOD_ID,SHORT_NAME,'0' AS t,SORT_ORDER FROM SCHOOL_YEARS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."' ORDER BY 3,4"));
+ unset($options);
+ if($_REQUEST['course_period_id']!='new') {
+ $available_seats = DBGet(DBQuery("SELECT (TOTAL_SEATS - FILLED_SEATS) AS AVAILABLE_SEATS FROM COURSE_PERIODS WHERE COURSE_PERIOD_ID='".$_REQUEST['course_period_id']."'"));
+ $available_seats = $available_seats[1]['AVAILABLE_SEATS'];
+ }
- $header .= '<TD>' . CheckboxInput($RET['DOES_ATTENDANCE'],'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][DOES_ATTENDANCE]','Takes Attendance',$checked,$new,'<IMG SRC=assets/check.gif height=15 vspace=0 hspace=0 border=0>','<IMG SRC=assets/x.gif height=15 vspace=0 hspace=0 border=0>') . '</TD>';
- $header .= '<TD>' . CheckboxInput($RET['DOES_HONOR_ROLL'],'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][DOES_HONOR_ROLL]','Affects Honor Roll',$checked,$new,'<IMG SRC=assets/check.gif height=15 vspace=0 hspace=0 border=0>','<IMG SRC=assets/x.gif height=15 vspace=0 hspace=0 border=0>') . '</TD>';
- $header .= '<TD>' . CheckboxInput($RET['DOES_CLASS_RANK'],'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][DOES_CLASS_RANK]','Affects Class Rank',$checked,$new,'<IMG SRC=assets/check.gif height=15 vspace=0 hspace=0 border=0>','<IMG SRC=assets/x.gif height=15 vspace=0 hspace=0 border=0>') . '</TD>';
- $header .= '<TD>' . SelectInput($RET['GENDER_RESTRICTION'],'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][GENDER_RESTRICTION]','Gender Restriction',array('N'=>'None','M'=>'Male','F'=>'Female'),false) . '</TD>';
+ if(count($mp_RET)) {
+ foreach($mp_RET as $mp)
+ $options[$mp['MARKING_PERIOD_ID']] = $mp['SHORT_NAME'];
+ }
+ $header .= '<TD>' . SelectInput($RET['MARKING_PERIOD_ID'],'tables[COURSE_PERIODS]['.$_REQUEST['course_period_id'].'][MARKING_PERIOD_I...
[truncated message content] |
|
From: <aec...@us...> - 2010-01-24 06:00:08
|
Revision: 409
http://opensis.svn.sourceforge.net/opensis/?rev=409&view=rev
Author: aecioneto
Date: 2010-01-24 06:00:00 +0000 (Sun, 24 Jan 2010)
Log Message:
-----------
First partial english terms for school setup.
Modified Paths:
--------------
trunk/modules/School_Setup/Calendar.php
trunk/modules/School_Setup/CopySchool.php
trunk/modules/School_Setup/CourseCatalog.php
trunk/modules/School_Setup/Courses.php
Added Paths:
-----------
trunk/lang/en_utf8/schoolsetup.php
Removed Paths:
-------------
trunk/lang/en_utf8/school_setup.php
Deleted: trunk/lang/en_utf8/school_setup.php
===================================================================
--- trunk/lang/en_utf8/school_setup.php 2010-01-24 05:58:47 UTC (rev 408)
+++ trunk/lang/en_utf8/school_setup.php 2010-01-24 06:00:00 UTC (rev 409)
@@ -1,41 +0,0 @@
-<?php
-#**************************************************************************
-# openSIS Community Edition is a free student information system for
-# public and non-public schools. It is web-based, open source, and comes
-# packed with features that include student demographic info, scheduling,
-# grade book, attendance, report cards, eligibility, transcripts,
-# parent portal, student portal and more.
-#
-# openSIS Communnity Edition is a derivitive work.
-# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
-# Portions Copyright (C) 2004-2007 The Miller Group
-# Portions Copyright (C) 2004-2007 Andrew Schmadeke
-# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
-# *************************************************************************
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, version 2 of the License. See license.txt.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#**************************************************************************
-$string['portal notes'] = 'Portal Notes tr';
-$string['marking periods'] = 'Marking Periods tr';
-$string['calendars'] = 'Calendars tr';
-$string['periods'] = 'Periods tr';
-$string['grade levels'] = 'Grade Levels tr';
-$string['school'] = 'School tr';
-$string['school information'] = 'School information tr';
-$string['add a school'] = 'Add a School tr';
-$string['copy school'] = 'Copy School tr';
-$string['courses'] = 'Courses tr';
-$string['course manager'] = 'Course Manager tr';
-$string['course catalog'] = 'Course Catalog tr';
-$string['print catalog by term'] = 'Print catalog by Term tr';
-$string['print all courses'] = 'Print All Courses tr';
-?>
\ No newline at end of file
Copied: trunk/lang/en_utf8/schoolsetup.php (from rev 386, trunk/lang/en_utf8/school_setup.php)
===================================================================
--- trunk/lang/en_utf8/schoolsetup.php (rev 0)
+++ trunk/lang/en_utf8/schoolsetup.php 2010-01-24 06:00:00 UTC (rev 409)
@@ -0,0 +1,111 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+$string['schoolSetup'] = 'School Setup tr';
+#
+#
+$string['title'] = 'Title tr';
+$string['defaultCalendar'] = 'Default Calendar for this School tr';
+$string['from'] = 'From tr';
+$string['to'] = ' To tr';
+$string['createANewCalendar'] = 'Create a new calendar tr';
+$string['noCalendarsYet'] = 'There are no calendars yet setup. tr';
+$string['date'] = 'Date tr';
+$string['title'] = 'Title tr';
+$string['teacher'] = 'Teacher tr';
+$string['notes'] = 'Notes tr';
+$string['backToCalendar'] = 'Back to Calendar tr';
+$string['event'] = 'Event tr';
+$string['events'] = 'Events tr';
+$string['deleteThisCalendar'] = 'Delete this calendar tr';
+$string['save'] = 'Save tr';
+$string['delete'] = 'Delete tr';
+#
+#
+$string['portalNotes'] = 'Portal Notes tr';
+$string['markingPeriods'] = 'Marking Periods tr';
+$string['calendars'] = 'Calendars tr';
+$string['periods'] = 'Periods tr';
+$string['gradeLevels'] = 'Grade Levels tr';
+$string['school'] = 'School tr';
+$string['schoolInformation'] = 'School information tr';
+$string['addASchool'] = 'Add a School tr';
+$string['copySchool'] = 'Copy School tr';
+$string['courses'] = 'Courses tr';
+$string['courseManager'] = 'Course Manager tr';
+$string['courseCatalog'] = 'Course Catalog tr';
+$string['printCatalogByTerm'] = 'Print catalog by Term tr';
+$string['printAllCourses'] = 'Print All Courses tr';
+#
+#
+$string['newSchoolTitle'] = 'New School\'s Title tr';
+$string['newSchool'] = 'New School tr';
+$string['confirmCopySchool'] = 'Confirm Copy School tr';
+$string['sureCopyDataFor'] = 'Are you sure you want to copy the data for ';
+$string['toNewSchool'] = ' to a new school?';
+$string['dataCopiedToNewSchool'] = 'The data have been copied to a new school called tr';
+$string['ok'] = 'OK tr';
+#
+#
+$string['shortName'] = 'Short Name tr';
+$string['location'] = 'Location tr';
+$string['period'] = 'Period tr';
+$string['days'] = 'Days tr';
+$string['markingPeriod'] = 'Marking Period tr';
+$string['totalSeats'] = 'Total Seats tr';
+$string['genderRestriction'] = 'Gender Restriction tr';
+$string['gradingScale'] = 'Grading Scale tr';
+$string['notGraded'] = 'Not Graded tr';
+$string['calendar'] = 'Calendar tr';
+$string['noCalendarSelected'] = 'No Calendar Selected tr';
+$string['takesAttendance'] = 'Takes Attendance tr';
+$string['affectsHonorRoll'] = 'Affects Honor Roll tr';
+$string['affectsClassRank'] = 'Affects Class Rank tr';
+$string['halfDay'] = 'Half Day tr';
+$string['allowTeacherGradescale'] = 'Allow Teacher Gradescale tr';
+
+$string['parentCourse'] = 'Parent Course tr';
+$string['noParentCourseSelected'] = 'No Parent Course Selected tr';
+$string['startTime'] = 'Start Time tr';
+$string['endTime'] = 'End Time tr';
+$string['print'] = 'Print tr';
+$string['selectMarkingPeriod'] = 'Select Marking Period tr';
+$string['course'] = 'Course tr';
+$string['noClassListFound'] = 'No Class List Found tr';
+$string['allAvailableClasses'] = 'All available classes tr';
+$string['allAvailableClassesFor'] = 'All available classes for tr';
+$string['studentSchedulesReport'] = 'Student Schedules Report tr';
+$string['poweredByOpensis'] = 'Powered by openSIS tr';
+$string['subject'] = 'Subject tr';
+$string['time'] = 'Time tr';
+$string['days'] = 'Days tr';
+$string['className'] = 'Class Name tr';
+$string['male'] = 'Male tr';
+$string['female'] = 'Female tr';
+$string['none'] = 'None tr';
+#
+#
+?>
\ No newline at end of file
Modified: trunk/modules/School_Setup/Calendar.php
===================================================================
--- trunk/modules/School_Setup/Calendar.php 2010-01-24 05:58:47 UTC (rev 408)
+++ trunk/modules/School_Setup/Calendar.php 2010-01-24 06:00:00 UTC (rev 409)
@@ -25,421 +25,384 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
if(!$_REQUEST['month'])
- $_REQUEST['month'] = date("n");
+ $_REQUEST['month'] = date("n");
else
- $_REQUEST['month'] = MonthNWSwitch($_REQUEST['month'],'tonum')*1;
+ $_REQUEST['month'] = MonthNWSwitch($_REQUEST['month'],'tonum')*1;
if(!$_REQUEST['year'])
- $_REQUEST['year'] = date("Y");
+ $_REQUEST['year'] = date("Y");
$time = mktime(0,0,0,$_REQUEST['month'],1,$_REQUEST['year']);
-DrawBC("School Setup >> ".ProgramTitle());
+DrawBC(get_string('schoolSetup','schoolsetup') . ' >> '.ProgramTitle());
-if($_REQUEST['modfunc']=='create')
-{
- $fy_RET = DBGet(DBQuery("SELECT START_DATE,END_DATE FROM SCHOOL_YEARS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."'"));
- $fy_RET = $fy_RET[1];
+if($_REQUEST['modfunc']=='create') {
+ $fy_RET = DBGet(DBQuery("SELECT START_DATE,END_DATE FROM SCHOOL_YEARS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."'"));
+ $fy_RET = $fy_RET[1];
- $message = '<TABLE cellspacing=0 cellpadding=0 border=0 ><TR><TD colspan=7 align=center>Title <INPUT type=text name=title class=cell_floating id=title> <INPUT type=checkbox name=default value=Y> Default Calendar for this School<BR><BR></TD></TR><TR><TD colspan=7 align=center>From '.PrepareDate($fy_RET['START_DATE'],'_min').' To '.PrepareDate($fy_RET['END_DATE'],'_max').'</TD></TR><tr><td class=clear></td></tr><TR><TD><INPUT type=checkbox value=Y name=weekdays[0]>Sunday</TD><TD><INPUT type=checkbox value=Y name=weekdays[1] CHECKED>Monday</TD><TD><INPUT type=checkbox value=Y name=weekdays[2] CHECKED>Tuesday</TD><TD><INPUT type=checkbox value=Y name=weekdays[3] CHECKED>Wednesday</TD><TD><INPUT type=checkbox value=Y name=weekdays[4] CHECKED>Thursday</TD><TD><INPUT type=checkbox value=Y name=weekdays[5] CHECKED>Friday</TD><TD><INPUT type=checkbox value=Y name=weekdays[6]>Saturday</TD></TR></TABLE>';
- if(Prompt_Calender('Create a new calendar','',$message))
- {
- $begin = mktime(0,0,0,MonthNWSwitch($_REQUEST['month_min'],'to_num'),$_REQUEST['day_min']*1,$_REQUEST['year_min']) + 43200;
- $end = mktime(0,0,0,MonthNWSwitch($_REQUEST['month_max'],'to_num'),$_REQUEST['day_max']*1,$_REQUEST['year_max']) + 43200;
+ $message = '<TABLE cellspacing=0 cellpadding=0 border=0 >
+ <TR><TD colspan=7 align=center>' . get_string('title', 'schoolsetup') . '<INPUT type=text name=title class=cell_floating id=title>
+ <INPUT type=checkbox name=default value=Y>' . get_string('defaultCalendar') . '<BR><BR></TD></TR>
+ <TR><TD colspan=7 align=center>' . get_string('from', 'schoolsetup') . ' '.PrepareDate($fy_RET['START_DATE'],'_min'). get_string('to', 'schoolsetup') .PrepareDate($fy_RET['END_DATE'],'_max').'</TD></TR>
+ <tr><td class=clear></td></tr>
+ <TR>
+ <TD><INPUT type=checkbox value=Y name=weekdays[0]>' . get_string('sunday', 'datetime') . '</TD>
+ <TD><INPUT type=checkbox value=Y name=weekdays[1] CHECKED>' . get_string('monday', 'datetime') . '</TD>
+ <TD><INPUT type=checkbox value=Y name=weekdays[2] CHECKED>' . get_string('tuesday', 'datetime') . '</TD>
+ <TD><INPUT type=checkbox value=Y name=weekdays[3] CHECKED>' . get_string('wednesday', 'datetime') . '</TD>
+ <TD><INPUT type=checkbox value=Y name=weekdays[4] CHECKED>' . get_string('thursday', 'datetime') . '</TD>
+ <TD><INPUT type=checkbox value=Y name=weekdays[5] CHECKED>' . get_string('friday', 'datetime') . '</TD>
+ <TD><INPUT type=checkbox value=Y name=weekdays[6]>' . get_string('saturday', 'datetime') . '</TD>
+ </TR></TABLE>';
+ if(Prompt_Calender(get_string('createANewCalendar', 'schoolsetup'),'',$message)) {
+ $begin = mktime(0,0,0,MonthNWSwitch($_REQUEST['month_min'],'to_num'),$_REQUEST['day_min']*1,$_REQUEST['year_min']) + 43200;
+ $end = mktime(0,0,0,MonthNWSwitch($_REQUEST['month_max'],'to_num'),$_REQUEST['day_max']*1,$_REQUEST['year_max']) + 43200;
- $weekday = date('w',$begin);
+ $weekday = date('w',$begin);
+
+ $calendar_id = DBGet(DBQuery("SELECT ".db_seq_nextval('CALENDARS_SEQ')." AS CALENDAR_ID ".FROM_DUAL));
+ $calendar_id = $calendar_id[1]['CALENDAR_ID'];
- $calendar_id = DBGet(DBQuery("SELECT ".db_seq_nextval('CALENDARS_SEQ')." AS CALENDAR_ID ".FROM_DUAL));
- $calendar_id = $calendar_id[1]['CALENDAR_ID'];
+ for($i=$begin;$i<=$end;$i+=86400) {
+ if($_REQUEST['weekdays'][$weekday]=='Y')
+ DBQuery("INSERT INTO ATTENDANCE_CALENDAR (SYEAR,SCHOOL_ID,SCHOOL_DATE,MINUTES,CALENDAR_ID) values('".UserSyear()."','".UserSchool()."','".date('Y-m-d',$i)."','999','".$calendar_id."')");
+ $weekday++;
+ if($weekday==7)
+ $weekday = 0;
+ }
+ DBQuery("INSERT INTO ATTENDANCE_CALENDARS (CALENDAR_ID,SYEAR,SCHOOL_ID,TITLE,DEFAULT_CALENDAR) values('".$calendar_id."','".UserSyear()."','".UserSchool()."','".$_REQUEST['title']."','".$_REQUEST['default']."')");
- for($i=$begin;$i<=$end;$i+=86400)
- {
- if($_REQUEST['weekdays'][$weekday]=='Y')
- DBQuery("INSERT INTO ATTENDANCE_CALENDAR (SYEAR,SCHOOL_ID,SCHOOL_DATE,MINUTES,CALENDAR_ID) values('".UserSyear()."','".UserSchool()."','".date('Y-m-d',$i)."','999','".$calendar_id."')");
- $weekday++;
- if($weekday==7)
- $weekday = 0;
- }
- DBQuery("INSERT INTO ATTENDANCE_CALENDARS (CALENDAR_ID,SYEAR,SCHOOL_ID,TITLE,DEFAULT_CALENDAR) values('".$calendar_id."','".UserSyear()."','".UserSchool()."','".$_REQUEST['title']."','".$_REQUEST['default']."')");
-
- $_REQUEST['calendar_id'] = $calendar_id;
- unset($_REQUEST['modfunc']);
- unset($_SESSION['_REQUEST_vars']['modfunc']);
- unset($_SESSION['_REQUEST_vars']['weekdays']);
- unset($_SESSION['_REQUEST_vars']['title']);
- }
+ $_REQUEST['calendar_id'] = $calendar_id;
+ unset($_REQUEST['modfunc']);
+ unset($_SESSION['_REQUEST_vars']['modfunc']);
+ unset($_SESSION['_REQUEST_vars']['weekdays']);
+ unset($_SESSION['_REQUEST_vars']['title']);
+ }
}
-if($_REQUEST['modfunc']=='delete_calendar')
-{
- if(DeletePrompt('calendar'))
- {
- DBQuery("DELETE FROM ATTENDANCE_CALENDAR WHERE CALENDAR_ID='$_REQUEST[calendar_id]'");
- DBQuery("DELETE FROM ATTENDANCE_CALENDARS WHERE CALENDAR_ID='$_REQUEST[calendar_id]'");
- $default_RET = DBGet(DBQuery("SELECT CALENDAR_ID FROM ATTENDANCE_CALENDARS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND DEFAULT_CALENDAR='Y'"));
- if(count($default_RET))
- $_REQUEST['calendar_id'] = $default_RET[1]['CALENDAR_ID'];
- else
- {
- $calendars_RET = DBGet(DBQuery("SELECT CALENDAR_ID FROM ATTENDANCE_CALENDARS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"));
- if(count($calendars_RET))
- $_REQUEST['calendar_id'] = $calendars_RET[1]['CALENDAR_ID'];
- else
- $error = array('There are no calendars yet setup.');
- }
- unset($_REQUEST['modfunc']);
- unset($_SESSION['_REQUEST_vars']['modfunc']);
- }
+if($_REQUEST['modfunc']=='delete_calendar') {
+ if(DeletePrompt('calendar')) {
+ DBQuery("DELETE FROM ATTENDANCE_CALENDAR WHERE CALENDAR_ID='$_REQUEST[calendar_id]'");
+ DBQuery("DELETE FROM ATTENDANCE_CALENDARS WHERE CALENDAR_ID='$_REQUEST[calendar_id]'");
+ $default_RET = DBGet(DBQuery("SELECT CALENDAR_ID FROM ATTENDANCE_CALENDARS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND DEFAULT_CALENDAR='Y'"));
+ if(count($default_RET))
+ $_REQUEST['calendar_id'] = $default_RET[1]['CALENDAR_ID'];
+ else {
+ $calendars_RET = DBGet(DBQuery("SELECT CALENDAR_ID FROM ATTENDANCE_CALENDARS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"));
+ if(count($calendars_RET))
+ $_REQUEST['calendar_id'] = $calendars_RET[1]['CALENDAR_ID'];
+ else
+ $error = array(get_string('noCalendarsYet','schoolsetup'));
+ }
+ unset($_REQUEST['modfunc']);
+ unset($_SESSION['_REQUEST_vars']['modfunc']);
+ }
}
-if(User('PROFILE')!='admin')
-{
- $course_RET = DBGet(DBQuery("SELECT CALENDAR_ID FROM COURSE_PERIODS WHERE COURSE_PERIOD_ID='".UserCoursePeriod()."'"));
- if($course_RET[1]['CALENDAR_ID'])
- $_REQUEST['calendar_id'] = $course_RET[1]['CALENDAR_ID'];
- else
- {
- $default_RET = DBGet(DBQuery("SELECT CALENDAR_ID FROM ATTENDANCE_CALENDARS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND DEFAULT_CALENDAR='Y'"));
- $_REQUEST['calendar_id'] = $default_RET[1]['CALENDAR_ID'];
- }
+if(User('PROFILE')!='admin') {
+ $course_RET = DBGet(DBQuery("SELECT CALENDAR_ID FROM COURSE_PERIODS WHERE COURSE_PERIOD_ID='".UserCoursePeriod()."'"));
+ if($course_RET[1]['CALENDAR_ID'])
+ $_REQUEST['calendar_id'] = $course_RET[1]['CALENDAR_ID'];
+ else {
+ $default_RET = DBGet(DBQuery("SELECT CALENDAR_ID FROM ATTENDANCE_CALENDARS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND DEFAULT_CALENDAR='Y'"));
+ $_REQUEST['calendar_id'] = $default_RET[1]['CALENDAR_ID'];
+ }
}
-elseif(!$_REQUEST['calendar_id'])
-{
- $default_RET = DBGet(DBQuery("SELECT CALENDAR_ID FROM ATTENDANCE_CALENDARS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND DEFAULT_CALENDAR='Y'"));
- if(count($default_RET))
- $_REQUEST['calendar_id'] = $default_RET[1]['CALENDAR_ID'];
- else
- {
- $calendars_RET = DBGet(DBQuery("SELECT CALENDAR_ID FROM ATTENDANCE_CALENDARS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"));
- if(count($calendars_RET))
- $_REQUEST['calendar_id'] = $calendars_RET[1]['CALENDAR_ID'];
- else
- $error = array('There are no calendars yet setup.');
- }
+elseif(!$_REQUEST['calendar_id']) {
+ $default_RET = DBGet(DBQuery("SELECT CALENDAR_ID FROM ATTENDANCE_CALENDARS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND DEFAULT_CALENDAR='Y'"));
+ if(count($default_RET))
+ $_REQUEST['calendar_id'] = $default_RET[1]['CALENDAR_ID'];
+ else {
+ $calendars_RET = DBGet(DBQuery("SELECT CALENDAR_ID FROM ATTENDANCE_CALENDARS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"));
+ if(count($calendars_RET))
+ $_REQUEST['calendar_id'] = $calendars_RET[1]['CALENDAR_ID'];
+ else
+ $error = array(get_string('noCalendarsYet','schoolsetup'));
+ }
}
unset($_SESSION['_REQUEST_vars']['calendar_id']);
-if($_REQUEST['modfunc']=='detail')
-{
- if($_REQUEST['month_values'] && $_REQUEST['day_values'] && $_REQUEST['year_values'])
- {
- $_REQUEST['values']['SCHOOL_DATE'] = $_REQUEST['day_values']['SCHOOL_DATE'].'-'.$_REQUEST['month_values']['SCHOOL_DATE'].'-'.$_REQUEST['year_values']['SCHOOL_DATE'];
- if(!VerifyDate($_REQUEST['values']['SCHOOL_DATE']))
- unset($_REQUEST['values']['SCHOOL_DATE']);
- }
+if($_REQUEST['modfunc']=='detail') {
+ if($_REQUEST['month_values'] && $_REQUEST['day_values'] && $_REQUEST['year_values']) {
+ $_REQUEST['values']['SCHOOL_DATE'] = $_REQUEST['day_values']['SCHOOL_DATE'].'-'.$_REQUEST['month_values']['SCHOOL_DATE'].'-'.$_REQUEST['year_values']['SCHOOL_DATE'];
+ if(!VerifyDate($_REQUEST['values']['SCHOOL_DATE']))
+ unset($_REQUEST['values']['SCHOOL_DATE']);
+ }
- if($_POST['button']=='Save' && AllowEdit())
- {
- if($_REQUEST['values'])
- {
- if($_REQUEST['event_id']!='new')
- {
- $sql = "UPDATE CALENDAR_EVENTS SET ";
+ if($_POST['button']=='Save' && AllowEdit()) {
+ if($_REQUEST['values']) {
+ if($_REQUEST['event_id']!='new') {
+ $sql = "UPDATE CALENDAR_EVENTS SET ";
- foreach($_REQUEST['values'] as $column=>$value)
- $sql .= $column."='".str_replace("\'","''",$value)."',";
+ foreach($_REQUEST['values'] as $column=>$value)
+ $sql .= $column."='".str_replace("\'","''",$value)."',";
- $sql = substr($sql,0,-1) . " WHERE ID='$_REQUEST[event_id]'";
- DBQuery($sql);
- }
- else
- {
- if(!$_REQUEST['values']['SCHOOL_DATE'])
- $_REQUEST['values']['SCHOOL_DATE'] = $_REQUEST['dd'];
-
- $sql = "INSERT INTO CALENDAR_EVENTS ";
+ $sql = substr($sql,0,-1) . " WHERE ID='$_REQUEST[event_id]'";
+ DBQuery($sql);
+ }
+ else {
+ if(!$_REQUEST['values']['SCHOOL_DATE'])
+ $_REQUEST['values']['SCHOOL_DATE'] = $_REQUEST['dd'];
- $fields = 'ID,SYEAR,SCHOOL_ID,';
- $values = db_seq_nextval('CALENDAR_EVENTS_SEQ').",'".UserSyear()."','".UserSchool()."',";
+ $sql = "INSERT INTO CALENDAR_EVENTS ";
- $go = 0;
- foreach($_REQUEST['values'] as $column=>$value)
- {
- if($value)
- {
- $fields .= $column.',';
- if($column=="SCHOOL_DATE")
- $values .= "'".date('Y-m-d',strtotime($value))."',";
- else
- $values .= "'".str_replace("\'","''",$value)."',";
- $go = true;
- }
- }
- $sql .= '(' . substr($fields,0,-1) . ') values(' . substr($values,0,-1) . ')';
+ $fields = 'ID,SYEAR,SCHOOL_ID,';
+ $values = db_seq_nextval('CALENDAR_EVENTS_SEQ').",'".UserSyear()."','".UserSchool()."',";
- if($go)
- DBQuery($sql);
- }
- echo '<SCRIPT language=javascript>opener.document.location = "Modules.php?modname='.$_REQUEST['modname'].'&year='.$_REQUEST['year'].'&month='.MonthNWSwitch($_REQUEST['month'],'tochar').'"; window.close();</script>';
- unset($_REQUEST['values']);
- unset($_SESSION['_REQUEST_vars']['values']);
- }
- }
- elseif($_REQUEST['button']=='Delete')
- {
- if(DeletePrompt('event'))
- {
- DBQuery("DELETE FROM CALENDAR_EVENTS WHERE ID='$_REQUEST[event_id]'");
- echo '<SCRIPT language=javascript>opener.document.location = "Modules.php?modname='.$_REQUEST['modname'].'&year='.$_REQUEST['year'].'&month='.MonthNWSwitch($_REQUEST['month'],'tochar').'"; window.close();</script>';
- unset($_REQUEST['values']);
- unset($_SESSION['_REQUEST_vars']['values']);
- unset($_REQUEST['button']);
- unset($_SESSION['_REQUEST_vars']['button']);
- }
- }
- else
- {
- if($_REQUEST['event_id'])
- {
- if($_REQUEST['event_id']!='new')
- {
- $RET = DBGet(DBQuery("SELECT TITLE,DESCRIPTION,DATE_FORMAT(SCHOOL_DATE,'%d-%b-%y') AS SCHOOL_DATE FROM CALENDAR_EVENTS WHERE ID='$_REQUEST[event_id]'"));
- $title = $RET[1]['TITLE'];
- }
- else
- {
- $title = 'New Event';
- $RET[1]['SCHOOL_DATE'] = $_REQUEST['school_date'];
- }
- echo "<FORM name=popform id=popform action=for_window.php?modname=$_REQUEST[modname]&dd=$_REQUEST[school_date]&modfunc=detail&event_id=$_REQUEST[event_id]&month=$_REQUEST[month]&year=$_REQUEST[year] METHOD=POST>";
- }
- else
- {
- $RET = DBGet(DBQuery("SELECT TITLE,STAFF_ID,DATE_FORMAT(DUE_DATE,'%d-%b-%y') AS SCHOOL_DATE,DESCRIPTION FROM GRADEBOOK_ASSIGNMENTS WHERE ASSIGNMENT_ID='$_REQUEST[assignment_id]'"));
- $title = $RET[1]['TITLE'];
- $RET[1]['STAFF_ID'] = GetTeacher($RET[1]['STAFF_ID']);
- }
+ $go = 0;
+ foreach($_REQUEST['values'] as $column=>$value) {
+ if($value) {
+ $fields .= $column.',';
+ if($column=="SCHOOL_DATE")
+ $values .= "'".date('Y-m-d',strtotime($value))."',";
+ else
+ $values .= "'".str_replace("\'","''",$value)."',";
+ $go = true;
+ }
+ }
+ $sql .= '(' . substr($fields,0,-1) . ') values(' . substr($values,0,-1) . ')';
- echo '<BR>';
- PopTableforWindow('header',$title);
+ if($go)
+ DBQuery($sql);
+ }
+ echo '<SCRIPT language=javascript>opener.document.location = "Modules.php?modname='.$_REQUEST['modname'].'&year='.$_REQUEST['year'].'&month='.MonthNWSwitch($_REQUEST['month'],'tochar').'"; window.close();</script>';
+ unset($_REQUEST['values']);
+ unset($_SESSION['_REQUEST_vars']['values']);
+ }
+ }
+ elseif($_REQUEST['button']=='Delete') {
+ if(DeletePrompt('event')) {
+ DBQuery("DELETE FROM CALENDAR_EVENTS WHERE ID='$_REQUEST[event_id]'");
+ echo '<SCRIPT language=javascript>opener.document.location = "Modules.php?modname='.$_REQUEST['modname'].'&year='.$_REQUEST['year'].'&month='.MonthNWSwitch($_REQUEST['month'],'tochar').'"; window.close();</script>';
+ unset($_REQUEST['values']);
+ unset($_SESSION['_REQUEST_vars']['values']);
+ unset($_REQUEST['button']);
+ unset($_SESSION['_REQUEST_vars']['button']);
+ }
+ }
+ else {
+ if($_REQUEST['event_id']) {
+ if($_REQUEST['event_id']!='new') {
+ $RET = DBGet(DBQuery("SELECT TITLE,DESCRIPTION,DATE_FORMAT(SCHOOL_DATE,'%d-%b-%y') AS SCHOOL_DATE FROM CALENDAR_EVENTS WHERE ID='$_REQUEST[event_id]'"));
+ $title = $RET[1]['TITLE'];
+ }
+ else {
+ $title = 'New Event';
+ $RET[1]['SCHOOL_DATE'] = $_REQUEST['school_date'];
+ }
+ echo "<FORM name=popform id=popform action=for_window.php?modname=$_REQUEST[modname]&dd=$_REQUEST[school_date]&modfunc=detail&event_id=$_REQUEST[event_id]&month=$_REQUEST[month]&year=$_REQUEST[year] METHOD=POST>";
+ }
+ else {
+ $RET = DBGet(DBQuery("SELECT TITLE,STAFF_ID,DATE_FORMAT(DUE_DATE,'%d-%b-%y') AS SCHOOL_DATE,DESCRIPTION FROM GRADEBOOK_ASSIGNMENTS WHERE ASSIGNMENT_ID='$_REQUEST[assignment_id]'"));
+ $title = $RET[1]['TITLE'];
+ $RET[1]['STAFF_ID'] = GetTeacher($RET[1]['STAFF_ID']);
+ }
- echo '<TABLE>';
- echo '<TR><TD>Date</TD><TD>'.DateInput($RET[1]['SCHOOL_DATE'],'values[SCHOOL_DATE]','',true).'</TD></TR>';
- echo '<TR><TD>Title</TD><TD>'.TextInput($RET[1]['TITLE'],'values[TITLE]').'</TD></TR>';
- if($RET[1]['STAFF_ID'])
- echo '<TR><TD>Teacher</TD><TD>'.TextAreaInput($RET[1]['STAFF_ID'],'values[STAFF_ID]').'</TD></TR>';
- echo '<TR><TD>Notes</TD><TD>'.TextAreaInput($RET[1]['DESCRIPTION'],'values[DESCRIPTION]').'</TD></TR>';
- if(AllowEdit())
- {
- echo '<TR><TD colspan=2 align=center><INPUT type=submit class=btn_medium name=button value=Save onclick="formload_ajax(\"popform\");">';
- echo ' ';
- if($_REQUEST['event_id']!='new')
- echo '<INPUT type=submit name=button class=btn_medium value=Delete onclick="formload_ajax(\"popform\");">';
- echo '</TD></TR>';
+ echo '<BR>';
+ PopTableforWindow('header',$title);
- }
- echo '</TABLE>';
- PopTableWindow('footer');
- echo '</FORM>';
+ echo '<TABLE>';
+ echo '<TR><TD>' . get_string('date','schoolsetup') . '</TD><TD>'.DateInput($RET[1]['SCHOOL_DATE'],'values[SCHOOL_DATE]','',true).'</TD></TR>';
+ echo '<TR><TD>' . get_string('title','schoolsetup') . '</TD><TD>'.TextInput($RET[1]['TITLE'],'values[TITLE]').'</TD></TR>';
+ if($RET[1]['STAFF_ID'])
+ echo '<TR><TD>' . get_string('teacher','schoolsetup') . '</TD><TD>'.TextAreaInput($RET[1]['STAFF_ID'],'values[STAFF_ID]').'</TD></TR>';
+ echo '<TR><TD>' . get_string('notes','schoolsetup') . '</TD><TD>'.TextAreaInput($RET[1]['DESCRIPTION'],'values[DESCRIPTION]').'</TD></TR>';
+ if(AllowEdit()) {
+ echo '<TR><TD colspan=2 align=center><INPUT type=submit class=btn_medium name=button value=Save onclick="formload_ajax(\"popform\");">';
+ echo ' ';
+ if($_REQUEST['event_id']!='new')
+ echo '<INPUT type=submit name=button class=btn_medium value=' . get_string('delete', 'schoolsetup') . ' onclick="formload_ajax(\"popform\");">';
+ echo '</TD></TR>';
- unset($_REQUEST['values']);
- unset($_SESSION['_REQUEST_vars']['values']);
- unset($_REQUEST['button']);
- unset($_SESSION['_REQUEST_vars']['button']);
- }
+ }
+ echo '</TABLE>';
+ PopTableWindow('footer');
+ echo '</FORM>';
+
+ unset($_REQUEST['values']);
+ unset($_SESSION['_REQUEST_vars']['values']);
+ unset($_REQUEST['button']);
+ unset($_SESSION['_REQUEST_vars']['button']);
+ }
}
-if($_REQUEST['modfunc']=='list_events')
-{
- if($_REQUEST['day_start'] && $_REQUEST['month_start'] && $_REQUEST['year_start'])
- {
- while(!VerifyDate($start_date = $_REQUEST['day_start'].'-'.$_REQUEST['month_start'].'-'.$_REQUEST['year_start']))
- $_REQUEST['day_start']--;
- }
- else
- {
- $min_date = DBGet(DBQuery("SELECT min(SCHOOL_DATE) AS MIN_DATE FROM ATTENDANCE_CALENDAR WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"));
- if($min_date[1]['MIN_DATE'])
- $start_date = $min_date[1]['MIN_DATE'];
- else
- $start_date = '01-'.strtoupper(date('M-y'));
- }
+if($_REQUEST['modfunc']=='list_events') {
+ if($_REQUEST['day_start'] && $_REQUEST['month_start'] && $_REQUEST['year_start']) {
+ while(!VerifyDate($start_date = $_REQUEST['day_start'].'-'.$_REQUEST['month_start'].'-'.$_REQUEST['year_start']))
+ $_REQUEST['day_start']--;
+ }
+ else {
+ $min_date = DBGet(DBQuery("SELECT min(SCHOOL_DATE) AS MIN_DATE FROM ATTENDANCE_CALENDAR WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"));
+ if($min_date[1]['MIN_DATE'])
+ $start_date = $min_date[1]['MIN_DATE'];
+ else
+ $start_date = '01-'.strtoupper(date('M-y'));
+ }
- if($_REQUEST['day_end'] && $_REQUEST['month_end'] && $_REQUEST['year_end'])
- {
- while(!VerifyDate($end_date = $_REQUEST['day_end'].'-'.$_REQUEST['month_end'].'-'.$_REQUEST['year_end']))
- $_REQUEST['day_end']--;
- }
- else
- {
- $max_date = DBGet(DBQuery("SELECT max(SCHOOL_DATE) AS MAX_DATE FROM ATTENDANCE_CALENDAR WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"));
- if($max_date[1]['MAX_DATE'])
- $end_date = $max_date[1]['MAX_DATE'];
- else
- $end_date = strtoupper(date('Y-m-d'));
- }
- DrawBC("School Setup >> ".ProgramTitle());
- echo '<FORM action=Modules.php?modname='.$_REQUEST['modname'].'&modfunc='.$_REQUEST['modfunc'].'&month='.$_REQUEST['month'].'&year='.$_REQUEST['year'].' METHOD=POST>';
- DrawHeaderHome(PrepareDateSchedule($start_date,'_start').' - '.PrepareDateSchedule($end_date,'_end').' <A HREF=Modules.php?modname='.$_REQUEST['modname'].'&month='.$_REQUEST['month'].'&year='.$_REQUEST['year'].'>Back to Calendar</A>','<INPUT type=submit class=btn_medium value="'.get_string('go', 'Common').'">');
- $functions = array('SCHOOL_DATE'=>'ProperDate'); // <A HREF=Modules.php?modname='.$_REQUEST["modname"].'&month='.$_REQUEST["month"].'&year='.$_REQUEST["year"].'>
- $events_RET = DBGet(DBQuery("SELECT ID,SCHOOL_DATE,TITLE,DESCRIPTION FROM CALENDAR_EVENTS WHERE SCHOOL_DATE BETWEEN '".$start_date."' AND '".$end_date."' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"),$functions);
- ListOutput($events_RET,array('SCHOOL_DATE'=>'Date','TITLE'=>'Event','DESCRIPTION'=>'Description'),'Event','Events');
- echo '</FORM>';
-}
+ if($_REQUEST['day_end'] && $_REQUEST['month_end'] && $_REQUEST['year_end']) {
+ while(!VerifyDate($end_date = $_REQUEST['day_end'].'-'.$_REQUEST['month_end'].'-'.$_REQUEST['year_end']))
+ $_REQUEST['day_end']--;
+ }
+ else {
+ $max_date = DBGet(DBQuery("SELECT max(SCHOOL_DATE) AS MAX_DATE FROM ATTENDANCE_CALENDAR WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"));
+ if($max_date[1]['MAX_DATE'])
+ $end_date = $max_date[1]['MAX_DATE'];
+ else
+ $end_date = strtoupper(date('Y-m-d'));
+ }
-if(!$_REQUEST['modfunc'])
-{
+ DrawBC(get_string('schoolSetup','schoolsetup') . ' >> '.ProgramTitle());
- DrawBC("School Setup >> ".ProgramTitle());
- $last = 31;
- while(!checkdate($_REQUEST['month'], $last, $_REQUEST['year']))
- $last--;
+ echo '<FORM action=Modules.php?modname='.$_REQUEST['modname'].'&modfunc='.$_REQUEST['modfunc'].'&month='.$_REQUEST['month'].'&year='.$_REQUEST['year'].' METHOD=POST>';
+ DrawHeaderHome(PrepareDateSchedule($start_date,'_start').' - '.PrepareDateSchedule($end_date,'_end').' <A HREF=Modules.php?modname='.$_REQUEST['modname'].'&month='.$_REQUEST['month'].'&year='.$_REQUEST['year'].'>' . get_string('backToCalendar', 'schoolsetup') . '</A>','<INPUT type=submit class=btn_medium value="'.get_string('go', 'Common').'">');
+ $functions = array('SCHOOL_DATE'=>'ProperDate');
+
+ $events_RET = DBGet(DBQuery("SELECT ID,SCHOOL_DATE,TITLE,DESCRIPTION FROM CALENDAR_EVENTS WHERE SCHOOL_DATE BETWEEN '".$start_date."' AND '".$end_date."' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"),$functions);
+ ListOutput($events_RET,array('SCHOOL_DATE'=>get_string('date','schoolsetup'),'TITLE'=>get_string('event','schoolsetup'),'DESCRIPTION'=>'Description'),get_string('event','schoolsetup'),get_string('events','schoolsetup'));
+ echo '</FORM>';
+}
- $calendar_RET = DBGet(DBQuery("SELECT DATE_FORMAT(SCHOOL_DATE,'%d-%b-%y') as SCHOOL_DATE,MINUTES,BLOCK FROM ATTENDANCE_CALENDAR WHERE SCHOOL_DATE BETWEEN '".date('Y-m-d',$time)."' AND '".date('Y-m-d',mktime(0,0,0,$_REQUEST['month'],$last,$_REQUEST['year']))."' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'"),array(),array('SCHOOL_DATE'));
- if($_REQUEST['minutes'])
- {
- foreach($_REQUEST['minutes'] as $date=>$minutes)
- {
- if($calendar_RET[$date])
- {
- if($minutes!='0' && $minutes!='')
- DBQuery("UPDATE ATTENDANCE_CALENDAR SET MINUTES='$minutes' WHERE SCHOOL_DATE='$date' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'");
- else
- DBQuery("DELETE FROM ATTENDANCE_CALENDAR WHERE SCHOOL_DATE='$date' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'");
- }
- elseif($minutes!='0' && $minutes!='')
- DBQuery("INSERT INTO ATTENDANCE_CALENDAR (SYEAR,SCHOOL_ID,SCHOOL_DATE,CALENDAR_ID,MINUTES) values('".UserSyear()."','".UserSchool()."','".$date."','".$_REQUEST['calendar_id']."','".$minutes."')");
- }
- $calendar_RET = DBGet(DBQuery("SELECT DATE_FORMAT(SCHOOL_DATE,'%d-%b-%y') as SCHOOL_DATE,MINUTES,BLOCK FROM ATTENDANCE_CALENDAR WHERE SCHOOL_DATE BETWEEN '".date('Y-m-d',$time)."' AND '".date('Y-m-d',mktime(0,0,0,$_REQUEST['month'],$last,$_REQUEST['year']))."' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'"),array(),array('SCHOOL_DATE'));
- unset($_REQUEST['minutes']);
- unset($_SESSION['_REQUEST_vars']['minutes']);
- }
- if($_REQUEST['all_day'])
- {
- foreach($_REQUEST['all_day'] as $date=>$yes)
- {
- if($yes=='Y')
- {
- if($calendar_RET[$date])
- DBQuery("UPDATE ATTENDANCE_CALENDAR SET MINUTES='999' WHERE SCHOOL_DATE='$date' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'");
- else
- DBQuery("INSERT INTO ATTENDANCE_CALENDAR (SYEAR,SCHOOL_ID,SCHOOL_DATE,CALENDAR_ID,MINUTES) values('".UserSyear()."','".UserSchool()."','".$date."','".$_REQUEST['calendar_id']."','999')");
- }
- else
- DBQuery("DELETE FROM ATTENDANCE_CALENDAR WHERE SCHOOL_DATE='$date' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'");
- }
- $calendar_RET = DBGet(DBQuery("SELECT DATE_FORMAT(SCHOOL_DATE,'%d-%b-%y') as SCHOOL_DATE,MINUTES,BLOCK FROM ATTENDANCE_CALENDAR WHERE SCHOOL_DATE BETWEEN '".date('Y-m-d',$time)."' AND '".date('Y-m-d',mktime(0,0,0,$_REQUEST['month'],$last,$_REQUEST['year']))."' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'"),array(),array('SCHOOL_DATE'));
- unset($_REQUEST['all_day']);
- unset($_SESSION['_REQUEST_vars']['all_day']);
- }
- if($_REQUEST['blocks'])
- {
- foreach($_REQUEST['blocks'] as $date=>$block)
- {
- if($calendar_RET[$date])
- {
- DBQuery("UPDATE ATTENDANCE_CALENDAR SET BLOCK='".$block."' WHERE SCHOOL_DATE='$date' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'");
- }
- }
- $calendar_RET = DBGet(DBQuery("SELECT DATE_FORMAT(SCHOOL_DATE,'%d-%b-%y') as SCHOOL_DATE,MINUTES,BLOCK FROM ATTENDANCE_CALENDAR WHERE SCHOOL_DATE BETWEEN '".date('Y-m-d',$time)."' AND '".date('Y-m-d',mktime(0,0,0,$_REQUEST['month'],$last,$_REQUEST['year']))."' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'"),array(),array('SCHOOL_DATE'));
- unset($_REQUEST['blocks']);
- unset($_SESSION['_REQUEST_vars']['blocks']);
- }
+if(!$_REQUEST['modfunc']) {
+ DrawBC(get_string('schoolSetup','schoolsetup') . ' >> '.ProgramTitle());
- echo "<FORM action=Modules.php?modname=$_REQUEST[modname] METHOD=POST>";
- $link = '';
- $title_RET = DBGet(DBQuery("SELECT CALENDAR_ID,TITLE FROM ATTENDANCE_CALENDARS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."' ORDER BY DEFAULT_CALENDAR ASC"));
- foreach($title_RET as $title)
- {
- $options[$title['CALENDAR_ID']] = $title['TITLE'];
- }
- if(AllowEdit())
- {
- $tmp_REQUEST = $_REQUEST;
- unset($tmp_REQUEST['calendar_id']);
- $link = "<table><tr><td>". SelectInput($_REQUEST['calendar_id'],'calendar_id','',$options,false," onchange='document.location.href=\"".PreparePHP_SELF($tmp_REQUEST).'&calendar_id="+this.form.calendar_id.value;\' ',false)." </td><td><a href='#' onclick='load_link(\"Modules.php?modname=$_REQUEST[modname]&modfunc=create\");'>".button('add')."</a></td><td><a href='#' onclick='load_link(\"Modules.php?modname=$_REQUEST[modname]&modfunc=create\");'>Create a new calendar</a> </td><td> | </td><td><a href='#' onclick='load_link(\"Modules.php?modname=$_REQUEST[modname]&modfunc=delete_calendar&calendar_id=$_REQUEST[calendar_id]\");'>".button('remove')."</a></td><td><a href='#' onclick='load_link(\"Modules.php?modname=$_REQUEST[modname]&modfunc=delete_calendar&calendar_id=$_REQUEST[calendar_id]\");'>Delete this calendar</a></td></tr></table>";
- }
- DrawHeaderHome(PrepareDate(strtoupper(date("d-M-y",$time)),'',false,array('M'=>1,'Y'=>1,'submit'=>true)).' <A HREF=Modules.php?modname='.$_REQUEST['modname'].'&modfunc=list_events&month='.$_REQUEST['month'].'&year='.$_REQUEST['year'].'>List Events</A>',SubmitButton('Save','','class=btn_medium'));
- DrawHeaderHome($link); // <A HREF=Modules.php?modname='.$_REQUEST['modname'].'&modfunc=list_events&month='.$_REQUEST['month'].'&year='.$_REQUEST['year'].'>List Events</A>
- if(count($error))
- {
- if($isajax!="ajax")
- echo ErrorMessage($error,'fatal');
- else
- echo ErrorMessage1($error,'fatal');
- }
- echo '<BR>';
+ $last = 31;
+ while(!checkdate($_REQUEST['month'], $last, $_REQUEST['year']))
+ $last--;
- $events_RET = DBGet(DBQuery("SELECT ID,DATE_FORMAT(SCHOOL_DATE,'%d-%b-%y') AS SCHOOL_DATE,TITLE FROM CALENDAR_EVENTS WHERE SCHOOL_DATE BETWEEN '".date('Y-m-d',$time)."' AND '".date('Y-m-d',mktime(0,0,0,$_REQUEST['month'],$last,$_REQUEST['year']))."' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"),array(),array('SCHOOL_DATE'));
- if(User('PROFILE')=='parent' || User('PROFILE')=='student')
- $assignments_RET = DBGet(DBQuery("SELECT ASSIGNMENT_ID AS ID,DATE_FORMAT(a.DUE_DATE,'%d-%b-%y') AS SCHOOL_DATE,a.TITLE,'Y' AS ASSIGNED FROM GRADEBOOK_ASSIGNMENTS a,SCHEDULE s WHERE (a.COURSE_PERIOD_ID=s.COURSE_PERIOD_ID OR a.COURSE_ID=s.COURSE_ID) AND s.STUDENT_ID='".UserStudentID()."' AND (a.DUE_DATE BETWEEN s.START_DATE AND s.END_DATE OR s.END_DATE IS NULL) AND (a.ASSIGNED_DATE<=CURRENT_DATE OR a.ASSIGNED_DATE IS NULL) AND a.DUE_DATE BETWEEN '".date('Y-m-d',$time)."' AND '".date('Y-m-d',mktime(0,0,0,$_REQUEST['month'],$last,$_REQUEST['year']))."'"),array(),array('SCHOOL_DATE'));
- elseif(User('PROFILE')=='teacher')
- $assignments_RET = DBGet(DBQuery("SELECT ASSIGNMENT_ID AS ID,DATE_FORMAT(a.DUE_DATE,'%d-%b-%y') AS SCHOOL_DATE,a.TITLE,CASE WHEN a.ASSIGNED_DATE<=CURRENT_DATE OR a.ASSIGNED_DATE IS NULL THEN 'Y' ELSE NULL END AS ASSIGNED FROM GRADEBOOK_ASSIGNMENTS a WHERE a.STAFF_ID='".User('STAFF_ID')."' AND a.DUE_DATE BETWEEN '".date('Y-m-d',$time)."' AND '".date('Y-m-d',mktime(0,0,0,$_REQUEST['month'],$last,$_REQUEST['year']))."'"),array(),array('SCHOOL_DATE'));
+ $calendar_RET = DBGet(DBQuery("SELECT DATE_FORMAT(SCHOOL_DATE,'%d-%b-%y') as SCHOOL_DATE,MINUTES,BLOCK FROM ATTENDANCE_CALENDAR WHERE SCHOOL_DATE BETWEEN '".date('Y-m-d',$time)."' AND '".date('Y-m-d',mktime(0,0,0,$_REQUEST['month'],$last,$_REQUEST['year']))."' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'"),array(),array('SCHOOL_DATE'));
+ if($_REQUEST['minutes']) {
+ foreach($_REQUEST['minutes'] as $date=>$minutes) {
+ if($calendar_RET[$date]) {
+ if($minutes!='0' && $minutes!='')
+ DBQuery("UPDATE ATTENDANCE_CALENDAR SET MINUTES='$minutes' WHERE SCHOOL_DATE='$date' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'");
+ else
+ DBQuery("DELETE FROM ATTENDANCE_CALENDAR WHERE SCHOOL_DATE='$date' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'");
+ }
+ elseif($minutes!='0' && $minutes!='')
+ DBQuery("INSERT INTO ATTENDANCE_CALENDAR (SYEAR,SCHOOL_ID,SCHOOL_DATE,CALENDAR_ID,MINUTES) values('".UserSyear()."','".UserSchool()."','".$date."','".$_REQUEST['calendar_id']."','".$minutes."')");
+ }
+ $calendar_RET = DBGet(DBQuery("SELECT DATE_FORMAT(SCHOOL_DATE,'%d-%b-%y') as SCHOOL_DATE,MINUTES,BLOCK FROM ATTENDANCE_CALENDAR WHERE SCHOOL_DATE BETWEEN '".date('Y-m-d',$time)."' AND '".date('Y-m-d',mktime(0,0,0,$_REQUEST['month'],$last,$_REQUEST['year']))."' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'"),array(),array('SCHOOL_DATE'));
+ unset($_REQUEST['minutes']);
+ unset($_SESSION['_REQUEST_vars']['minutes']);
+ }
+ if($_REQUEST['all_day']) {
+ foreach($_REQUEST['all_day'] as $date=>$yes) {
+ if($yes=='Y') {
+ if($calendar_RET[$date])
+ DBQuery("UPDATE ATTENDANCE_CALENDAR SET MINUTES='999' WHERE SCHOOL_DATE='$date' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'");
+ else
+ DBQuery("INSERT INTO ATTENDANCE_CALENDAR (SYEAR,SCHOOL_ID,SCHOOL_DATE,CALENDAR_ID,MINUTES) values('".UserSyear()."','".UserSchool()."','".$date."','".$_REQUEST['calendar_id']."','999')");
+ }
+ else
+ DBQuery("DELETE FROM ATTENDANCE_CALENDAR WHERE SCHOOL_DATE='$date' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'");
+ }
+ $calendar_RET = DBGet(DBQuery("SELECT DATE_FORMAT(SCHOOL_DATE,'%d-%b-%y') as SCHOOL_DATE,MINUTES,BLOCK FROM ATTENDANCE_CALENDAR WHERE SCHOOL_DATE BETWEEN '".date('Y-m-d',$time)."' AND '".date('Y-m-d',mktime(0,0,0,$_REQUEST['month'],$last,$_REQUEST['year']))."' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'"),array(),array('SCHOOL_DATE'));
+ unset($_REQUEST['all_day']);
+ unset($_SESSION['_REQUEST_vars']['all_day']);
+ }
+ if($_REQUEST['blocks']) {
+ foreach($_REQUEST['blocks'] as $date=>$block) {
+ if($calendar_RET[$date]) {
+ DBQuery("UPDATE ATTENDANCE_CALENDAR SET BLOCK='".$block."' WHERE SCHOOL_DATE='$date' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'");
+ }
+ }
+ $calendar_RET = DBGet(DBQuery("SELECT DATE_FORMAT(SCHOOL_DATE,'%d-%b-%y') as SCHOOL_DATE,MINUTES,BLOCK FROM ATTENDANCE_CALENDAR WHERE SCHOOL_DATE BETWEEN '".date('Y-m-d',$time)."' AND '".date('Y-m-d',mktime(0,0,0,$_REQUEST['month'],$last,$_REQUEST['year']))."' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND CALENDAR_ID='".$_REQUEST['calendar_id']."'"),array(),array('SCHOOL_DATE'));
+ unset($_REQUEST['blocks']);
+ unset($_SESSION['_REQUEST_vars']['blocks']);
+ }
- $skip = date("w",$time);
+ echo "<FORM action=Modules.php?modname=$_REQUEST[modname] METHOD=POST>";
+ $link = '';
+ $title_RET = DBGet(DBQuery("SELECT CALENDAR_ID,TITLE FROM ATTENDANCE_CALENDARS WHERE SCHOOL_ID='".UserSchool()."' AND SYEAR='".UserSyear()."' ORDER BY DEFAULT_CALENDAR ASC"));
+ foreach($title_RET as $title) {
+ $options[$title['CALENDAR_ID']] = $title['TITLE'];
+ }
+ if(AllowEdit()) {
+ $tmp_REQUEST = $_REQUEST;
+ unset($tmp_REQUEST['calendar_id']);
+ $link = "<table><tr><td>". SelectInput($_REQUEST['calendar_id'],'calendar_id','',$options,false," onchange='document.location.href=\"".PreparePHP_SELF($tmp_REQUEST).'&calendar_id="+this.form.calendar_id.value;\' ',false)." </td><td><a href='#' onclick='load_link(\"Modules.php?modname=$_REQUEST[modname]&modfunc=create\");'>".button('add')."</a></td><td><a href='#' onclick='load_link(\"Modules.php?modname=$_REQUEST[modname]&modfunc=create\");'>" . get_string('createANewCalendar','schoolsetup') . "</a> </td><td> | </td><td><a href='#' onclick='load_link(\"Modules.php?modname=$_REQUEST[modname]&modfunc=delete_calendar&calendar_id=$_REQUEST[calendar_id]\");'>".button('remove')."</a></td><td><a href='#' onclick='load_link(\"Modules.php?modname=$_REQUEST[modname]&modfunc=delete_calendar&calendar_id=$_REQUEST[calendar_id]\");'>" . get_string('deleteThisCalendar','schoolsetup') . "</a></td></tr></table>";
+ }
+ DrawHeaderHome(PrepareDate(strtoupper(date("d-M-y",$time)),'',false,array('M'=>1,'Y'=>1,'submit'=>true)).' <A HREF=Modules.php?modname='.$_REQUEST['modname'].'&modfunc=list_events&month='.$_REQUEST['month'].'&year='.$_REQUEST['year'].'>List Events</A>',SubmitButton(get_string('save', 'schoolsetup'),'','class=btn_medium'));
+ DrawHeaderHome($link);
- echo "<CENTER><TABLE border=0 cellpadding=0 cellspacing=0 class=pixel_border><TR><TD>";
- echo "<TABLE border=0 cellpadding=3 cellspacing=1><TR class=calendar_header align=center>";
- echo "<TD class=white>Sunday</TD><TD class=white>Monday</TD><TD class=white>Tuesday</TD><TD class=white>Wednesday</TD><TD class=white>Thursday</TD><TD class=white>Friday</TD><TD width=99 class=white>Saturday</TD>";
- echo "</TR><TR>";
+ if(count($error)) {
+ if($isajax!="ajax")
+ echo ErrorMessage($error,'fatal');
+ else
+ echo ErrorMessage1($error,'fatal');
+ }
+ echo '<BR>';
- if($skip)
- {
- echo "<td colspan=" . $skip . "></td>";
- $return_counter = $skip;
- }
- $blocks_RET = DBGet(DBQuery("SELECT DISTINCT BLOCK FROM SCHOOL_PERIODS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND BLOCK IS NOT NULL ORDER BY BLOCK"));
- for($i=1;$i<=$last;$i++)
- {
- $day_time = mktime(0,0,0,$_REQUEST['month'],$i,$_REQUEST['year']);
- $date = date('d-M-y',$day_time);
+ $events_RET = DBGet(DBQuery("SELECT ID,DATE_FORMAT(SCHOOL_DATE,'%d-%b-%y') AS SCHOOL_DATE,TITLE FROM CALENDAR_EVENTS WHERE SCHOOL_DATE BETWEEN '".date('Y-m-d',$time)."' AND '".date('Y-m-d',mktime(0,0,0,$_REQUEST['month'],$last,$_REQUEST['year']))."' AND SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."'"),array(),array('SCHOOL_DATE'));
+ if(User('PROFILE')=='parent' || User('PROFILE')=='student')
+ $assignments_RET = DBGet(DBQuery("SELECT ASSIGNMENT_ID AS ID,DATE_FORMAT(a.DUE_DATE,'%d-%b-%y') AS SCHOOL_DATE,a.TITLE,'Y' AS ASSIGNED FROM GRADEBOOK_ASSIGNMENTS a,SCHEDULE s WHERE (a.COURSE_PERIOD_ID=s.COURSE_PERIOD_ID OR a.COURSE_ID=s.COURSE_ID) AND s.STUDENT_ID='".UserStudentID()."' AND (a.DUE_DATE BETWEEN s.START_DATE AND s.END_DATE OR s.END_DATE IS NULL) AND (a.ASSIGNED_DATE<=CURRENT_DATE OR a.ASSIGNED_DATE IS NULL) AND a.DUE_DATE BETWEEN '".date('Y-m-d',$time)."' AND '".date('Y-m-d',mktime(0,0,0,$_REQUEST['month'],$last,$_REQUEST['year']))."'"),array(),array('SCHOOL_DATE'));
+ elseif(User('PROFILE')=='teacher')
+ $assignments_RET = DBGet(DBQuery("SELECT ASSIGNMENT_ID AS ID,DATE_FORMAT(a.DUE_DATE,'%d-%b-%y') AS SCHOOL_DATE,a.TITLE,CASE WHEN a.ASSIGNED_DATE<=CURRENT_DATE OR a.ASSIGNED_DATE IS NULL THEN 'Y' ELSE NULL END AS ASSIGNED FROM GRADEBOOK_ASSIGNMENTS a WHERE a.STAFF_ID='".User('STAFF_ID')."' AND a.DUE_DATE BETWEEN '".date('Y-m-d',$time)."' AND '".date('Y-m-d',mktime(0,0,0,$_REQUEST['month'],$last,$_REQUEST['year']))."'"),array(),array('SCHOOL_DATE'));
- echo "<TD width=100 class=".($calendar_RET[$date][1]['MINUTES']?$calendar_RET[$date][1]['MINUTES']=='999'?'calendar_active':'calendar_extra':'calendar_holiday')." valign=top><table width=100><tr><td width=5 valign=top>$i</td><td width=95 align=right>";
- if(AllowEdit())
- {
- if($calendar_RET[$date][1]['MINUTES']=='999')
- echo '<TABLE cellpadding=0 cellspacing=0 ><TR><TD>'.CheckboxInput($calendar_RET[$date],"all_day[$date]",'','',false,'<IMG SRC=assets/check.gif> ').'</TD></TR></TABLE>';
- else
- {
- echo "<TABLE cellpadding=0 cellspacing=0 ><TR><TD><INPUT type=checkbox name=all_day[$date] value=Y></TD>";
- echo '<TD>'.TextInput($calendar_RET[$date][1]['MINUTES'],"minutes[$date]",'','size=3 class=cell_small onkeydown="return numberOnly(event);"').'</TD></TR></TABLE>';
- }
- }
- if(count($blocks_RET)>0)
- {
- unset($options);
- foreach($blocks_RET as $block)
- $options[$block['BLOCK']] = $block['BLOCK'];
+ $skip = date("w",$time);
- echo SelectInput($calendar_RET[$date][1]['BLOCK'],"blocks[$date]",'',$options);
- }
- echo "</td></tr><tr><TD colspan=2 height=50 valign=top>";
+ echo '<CENTER><TABLE border=0 cellpadding=0 cellspacing=0 class=pixel_border><TR><TD>';
+ echo '<TABLE border=0 cellpadding=3 cellspacing=1><TR class=calendar_header align=center>';
+ echo '<TD class=white>' . get_string('sunday', 'datetime') . '</TD><TD class=white>' . get_string('monday', 'datetime') . '</TD><TD class=white>' . get_string('tuesday', 'datetime') . '</TD><TD class=white>' . get_string('wednesday', 'datetime') . '</TD><TD class=white>' . get_string('thursday', 'datetime') . '</TD><TD class=white>' . get_string('friday', 'datetime') . '</TD><TD width=99 class=white>' . get_string('saturday', 'datetime') . '</TD>';
+ echo '</TR><TR>';
- if(count($events_RET[$date]))
- {
- echo '<TABLE cellpadding=2 cellspacing=2 border=0>';
- foreach($events_RET[$date] as $event)
- echo "<TR><TD>".button('dot','0000FF','','6')."</TD><TD> <A HREF=# onclick='javascript:window.open(\"for_window.php?modname=$_REQUEST[modname]&modfunc=detail&event_id=$event[ID]&year=$_REQUEST[year]&month=".MonthNWSwitch($_REQUEST['month'],'tochar')."\",\"blank\",\"width=500,height=300\"); return false;'><b>".($event['TITLE']?$event['TITLE']:'***')."</b></A></TD></TR>";
- if(count($assignments_RET[$date]))
- {
- foreach($assignments_RET[$date] as $event)
- echo "<TR><TD>".button('dot',$event['ASSIGNED']=='Y'?'00FF00':'FF0000','',6)."</TD><TD><A HREF=# onclick='javascript:window.open(\"for_window.php?modname=$_REQUEST[modname]&modfunc=detail&assignment_id=$event[ID]&year=$_REQUEST[year]&month=".MonthNWSwitch($_REQUEST['month'],'tochar')."\",\"blank\",\"width=500,height=300\"); return false;'>".$event['TITLE']."</A></TD></TR>";
- }
- echo '</TABLE>';
- }
- elseif(count($assignments_RET[$date]))
- {
- echo '<TABLE cellpadding=0 cellspacing=0 border=0>';
- foreach($assignments_RET[$date] as $event)
- echo "<TR><TD>".button('dot',$event['ASSIGNED']=='Y'?'00FF00':'FF0000','',6)."</TD><TD><A HREF=# onclick='javascript:window.open(\"for_window.php?modname=$_REQUEST[modname]&modfunc=detail&assignment_id=$event[ID]&year=$_REQUEST[year]&month=".MonthNWSwitch($_REQUEST['month'],'tochar')."\",\"blank\",\"width=500,height=300\"); return false;'>".$event['TITLE']."</A></TD></TR>";
- echo '</TABLE>';
- }
+ if($skip) {
+ echo "<td colspan=" . $skip . "></td>";
+ $return_counter = $skip;
+ }
+ $blocks_RET = DBGet(DBQuery("SELECT DISTINCT BLOCK FROM SCHOOL_PERIODS WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND BLOCK IS NOT NULL ORDER BY BLOCK"));
+ for($i=1;$i<=$last;$i++) {
+ $day_time = mktime(0,0,0,$_REQUEST['month'],$i,$_REQUEST['year']);
+ $date = date('d-M-y',$day_time);
- echo "</td></tr>";
- if(AllowEdit())
- echo "<tr><td valign=bottom align=left>".button('add','',"# onclick='javascript:window.open(\"for_window.php?modname=$_REQUEST[modname]&modfunc=detail&event_id=new&school_date=$date&year=$_REQUEST[year]&month=".MonthNWSwitch($_REQUEST['month'],'tochar')."\",\"blank\",\"width=500,height=300\"); return false;'")."</td></tr>";
- echo "</table></TD>";
- $return_counter++;
+ echo "<TD width=100 class=".($calendar_RET[$date][1]['MINUTES']?$calendar_RET[$date][1]['MINUTES']=='999'?'calendar_active':'calendar_extra':'calendar_holiday')." valign=top><table width=100><tr><td width=5 valign=top>$i</td><td width=95 align=right>";
+ if(AllowEdit()) {
+ if($calendar_RET[$date][1]['MINUTES']=='999')
+ echo '<TABLE cellpadding=0 cellspacing=0 ><TR><TD>'.CheckboxInput($calendar_RET[$date],"all_day[$date]",'','',false,'<IMG SRC=assets/check.gif> ').'</TD></TR></TABLE>';
+ else {
+ echo "<TABLE cellpadding=0 cellspacing=0 ><TR><TD><INPUT type=checkbox name=all_day[$date] value=Y></TD>";
+ echo '<TD>'.TextInput($calendar_RET[$date][1]['MINUTES'],"minutes[$date]",'','size=3 class=cell_small onkeydown="return numberOnly(event);"').'</TD></TR></TABLE>';
+ }
+ }
+ if(count($blocks_RET)>0) {
+ unset($options);
+ foreach($blocks_RET as $block)
+ $options[$block['BLOCK']] = $block['BLOCK'];
- if($return_counter%7==0)
- echo "</TR><TR>";
- }
- echo "</TR></TABLE>";
+ echo SelectInput($calendar_RET[$date][1]['BLOCK'],"blocks[$date]",'',$options);
+ }
+ echo "</td></tr><tr><TD colspan=2 height=50 valign=top>";
- echo "</TD></TR></TABLE>";
- echo '<BR>'.SubmitButton('Save','','class=btn_medium');
- echo "</CENTER>";
- echo '</FORM>';
-}
+ if(count($events_RET[$date])) {
+ echo '<TABLE cellpadding=2 cellspacing=2 border=0>';
+ foreach($events_RET[$date] as $event)
+ echo "<TR><TD>".button('dot','0000FF','','6')."</TD><TD> <A HREF=# onclick='javascript:window.open(\"for_window.php?modname=$_REQUEST[modname]&modfunc=detail&event_id=$event[ID]&year=$_REQUEST[year]&month=".MonthNWSwitch($_REQUEST['month'],'tochar')."\",\"blank\",\"width=500,height=300\"); return false;'><b>".($event['TITLE']?$event['TITLE']:'***')."</b></A></TD></TR>";
+ if(count($assignments_RET[$date])) {
+ foreach($assignments_RET[$date] as $event)
+ echo "<TR><TD>".button('dot',$event['ASSIGNED']=='Y'?'00FF00':'FF0000','',6)."</TD><TD><A HREF=# onclick='javascript:window.open(\"for_window.php?modname=$_REQUEST[modname]&modfunc=detail&assignment_id=$event[ID]&year=$_REQUEST[year]&month=".MonthNWSwitch($_REQUEST['month'],'tochar')."\",\"blank\",\"width=500,height=300\"); return false;'>".$event['TITLE']."</A></TD></TR>";
+ }
+ echo '</TABLE>';
+ }
+ elseif(count($assignments_RET[$date])) {
+ echo '<TABLE cellpadding=0 cellspacing=0 border=0>';
+ foreach($assignments_RET[$date] as $event)
+ echo "<TR><TD>".button('dot',$event['ASSIGNED']=='Y'?'00FF00':'FF0000','',6)."</TD><TD><A HREF=# onclick='javascript:window.open(\"for_window.php?modname=$_REQUEST[modname]&modfunc=detail&assignment_id=$event[ID]&year=$_REQUEST[year]&month=".MonthNWSwitch($_REQUEST['month'],'tochar')."\",\"blank\",\"width=500,height=300\"); return false;'>".$event['TITLE']."</A></TD></TR>";
+ echo '</TABLE>';
+ }
+ echo "</td></tr>";
+ if(AllowEdit())
+ echo "<tr><td valign=bottom align=left>".button('add','',"# onclick='javascript:window.open(\"for_window.php?modname=$_REQUEST[modname]&modfunc=detail&event_id=new&school_date=$date&year=$_REQUEST[year]&month=".MonthNWSwitch($_REQUEST['month'],'tochar')."\",\"blank\",\"width=500,height=300\"); return false;'")."</td></tr>";
+ echo "</table></TD>";
+ $return_counter++;
+ if($return_counter%7==0)
+ echo "</TR><TR>";
+ }
+ echo "</TR></TABLE>";
+
+ echo "</TD></TR></TABLE>";
+ echo '<BR>'.SubmitButton(get_string('save', 'schoolsetup'),'','class=btn_medium');
+ echo "</CENTER>";
+ echo '</FORM>';
+}
?>
\ No newline at end of file
Modified: trunk/modules/School_Setup/CopySchool.php
===================================================================
--- trunk/modules/School_Setup/CopySchool.php 2010-01-24 05:58:47 UTC (rev 408)
+++ trunk/modules/School_Setup/CopySchool.php 2010-01-24 06:00:00 UTC (rev 409)
@@ -26,16 +26,16 @@
#**************************************************************************
$tables = array('SCHOOL_PERIODS'=>'School Periods','SCHOOL_YEARS'=>'Marking Periods','REPORT_CARD_GRADES'=>'Report Card Grade Codes','REPORT_CARD_COMMENTS'=>'Report Card Comment Codes','ELIGIBILITY_ACTIVITIES'=>'Eligibility Activity Codes','ATTENDANCE_CODES'=>'Attendance Codes','SCHOOL_GRADELEVELS'=>'Grade Levels');
-$table_list = '<TABLE align=center cellspacing="5" cellpadding="3" border=0><tr><td ><b>New School\'s Title: </b><INPUT type=text name=title value="New School" class="cell_medium_wide"></td></tr>';
+$table_list = '<TABLE align=center cellspacing="5" cellpadding="3" border=0><tr><td ><b>' . get_string('newSchoolTitle', 'schoolsetup') . ': </b><INPUT type=text name=title value="' . get_string('newSchool', 'schoolsetup') . '" class="cell_medium_wide"></td></tr>';
foreach($tables as $table=>$name)
{
$table_list .= '<TR><TD><INPUT type=checkbox value=Y name=tables['.$table.'] CHECKED> '.$name.'</TD></TR>';
}
$table_list .= '</TABLE>';
-DrawBC("School Setup > ".ProgramTitle());
+DrawBC(get_string('schoolSetup', 'schoolsetup') . ProgramTitle());
-if(Prompt_Copy_School('Confirm Copy School','Are you sure you want to copy the data for '.GetSchool(UserSchool()).' to a new school?',$table_list))
+if(Prompt_Copy_School(get_string('confirmCopySchool', 'schoolsetup'), get_string('sureCopyDataFor', 'schoolsetup') . GetSchool(UserSchool()) . get_string('toNewSchool', 'schoolsetup'),$table_list))
{
if(count($_REQUEST['tables']))
{
@@ -49,7 +49,7 @@
echo '<FORM action=Modules.php?modname='.$_REQUEST['modname'].' method=POST>';
echo '<script language=JavaScript>parent.side.location="'.$_SESSION['Side_PHP_SELF'].'?modcat="+parent.side.document.forms[0].modcat.value;</script>';
echo "<br><br>";
- DrawHeaderHome('<IMG SRC=assets/check.gif> The data have been copied to a new school called "'.$_REQUEST['title'].'".','<INPUT type=submit value=OK class="btn_medium">');
+ DrawHeaderHome('<IMG SRC=assets/check.gif> ' . get_string('dataCopiedToNewSchool', 'schoolsetup') . ' "'.$_REQUEST['title'].'".','<INPUT type=submit value=' . get_string('ok', 'schoolsetup') . ' class="btn_medium">');
echo '</FORM>';
unset($_SESSION['_REQUEST_vars']['tables']);
unset($_SESSION['_REQUEST_vars']['delete_ok']);
Modified: trunk/modules/School_Setup/CourseCatalog.php
===================================================================
--- trunk/modules/School_Setup/CourseCatalog.php 2010-01-24 05:58:47 UTC (rev 408)
++...
[truncated message content] |
|
From: <aec...@us...> - 2010-01-24 05:58:53
|
Revision: 408
http://opensis.svn.sourceforge.net/opensis/?rev=408&view=rev
Author: aecioneto
Date: 2010-01-24 05:58:47 +0000 (Sun, 24 Jan 2010)
Log Message:
-----------
Fixed a silly typo.
Modified Paths:
--------------
trunk/modules/Students/PrintStudentInfo.php
Modified: trunk/modules/Students/PrintStudentInfo.php
===================================================================
--- trunk/modules/Students/PrintStudentInfo.php 2010-01-12 20:40:17 UTC (rev 407)
+++ trunk/modules/Students/PrintStudentInfo.php 2010-01-24 05:58:47 UTC (rev 408)
@@ -98,7 +98,7 @@
fclose($file);
- $sql=DBGet(DBQuery("SELECT s.GENDER AS GENDER, s.ETHNICITY AS ETHNICITY, s.COMMON_NAME AS COMMON_NAME, s.BIRTHDAY AS BIRTHDAY, s.LANG AS LANGUAGE, s.CUSTOM_200000000 AS PHYSICIAN_NAME, s.CUSTOM_200000001 AS PHYSICIAN_PHONO,s.custom_200000002 AS HOSPITAL,s.custom_200000003 AS MCOMNT,s.custom_200000004 AS DNOTE,se.START_DATE AS START_DATE,sec.TITLE AS STATUS, se.NEXT_SCHOOL AS ROLLING FROM STUDENTS s, STUDENT_ENROLLMENT se,STUDENT_ENROLLMENT_CODES sec WHERE s.STUDENT_ID='".$_SESSION['student_id']."' AND s.STUDENT_ID=se.STUDENT_ID AND se.SYEAR=sec.SYEAR"));
+ $sql=DBGet(DBQuery("SELECT s.GENDER AS GENDER, s.ETHNICITY AS ETHNICITY, s.COMMON_NAME AS COMMON_NAME, s.BIRTHDAY AS BIRTHDAY, s.LANG AS LANGUAGE, s.CUSTOM_200000000 AS PHYSICIAN_NAME, s.CUSTOM_200000001 AS PHYSICIAN_PHONE,s.custom_200000002 AS HOSPITAL,s.custom_200000003 AS MCOMNT,s.custom_200000004 AS DNOTE,se.START_DATE AS START_DATE,sec.TITLE AS STATUS, se.NEXT_SCHOOL AS ROLLING FROM STUDENTS s, STUDENT_ENROLLMENT se,STUDENT_ENROLLMENT_CODES sec WHERE s.STUDENT_ID='".$_SESSION['student_id']."' AND s.STUDENT_ID=se.STUDENT_ID AND se.SYEAR=sec.SYEAR"));
$sql = $sql[1];
@@ -344,8 +344,6 @@
echo "<tr><td style='font-weight:bold'>Zipcode :</td><td>".$info['ADDN_ZIPCODE']."</td></tr>";
}
- /*echo '<tr><td style='font-weight:bold'>'.$info['TITLE'].'</td>';
- echo '<td>'.$info['VALUE'].'</td></tr>';*/
echo "<tr><td colspan=2 style=\"border-bottom:1px dashed #999999;\"> </td></tr>";
echo "<tr><td colspan=2 style=\"height:5px;\"> </td></tr>";
}
@@ -380,7 +378,7 @@
}
}
- if($_REQUEST['category']['2'] && ($sql['PHYSICIAN_NAME'] !='' || $sql['PHYSICIAN_PHONO'] !='' || $sql['HOSPITAL'] !='')) {
+ if($_REQUEST['category']['2'] && ($sql['PHYSICIAN_NAME'] !='' || $sql['PHYSICIAN_PHONE'] !='' || $sql['HOSPITAL'] !='')) {
echo "<table width='100%'><tr><td style=\"border-bottom:1px solid #333; font-size:14px; font-weight:bold;\">Medical Information</td></tr></table>";
echo "</td><td></td><td valign=top>";
echo "</td></tr>";
@@ -391,9 +389,9 @@
echo "<tr><td width=21% style='font-weight:bold'>Physician Name:</td>";
echo "<td width=79%>".$sql['PHYSICIAN_NAME'] ."</td></tr>";
}
- if($sql['PHYSICIAN_PHONO'] !='') {
+ if($sql['PHYSICIAN_PHONE'] !='') {
echo "<tr><td style='font-weight:bold'>Physicians Phone:</td>";
- echo "<td>".$sql['PHYSICIAN_PHONO'] ."</td></tr>";
+ echo "<td>".$sql['PHYSICIAN_PHONE'] ."</td></tr>";
}
if($sql['HOSPITAL'] !='') {
echo "<tr><td style='font-weight:bold'>Hospital Name:</td>";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ku...@us...> - 2010-01-12 20:40:23
|
Revision: 407
http://opensis.svn.sourceforge.net/opensis/?rev=407&view=rev
Author: kusum18
Date: 2010-01-12 20:40:17 +0000 (Tue, 12 Jan 2010)
Log Message:
-----------
Modified Paths:
--------------
trunk/lang/en_utf8/Eligibility.php
trunk/lang/en_utf8/Functions/Search.fnc.php
trunk/lang/en_utf8/Students/Menu.php
trunk/modules/Eligibility/Student.php
trunk/modules/Eligibility/TeacherCompletion.php
trunk/modules/Students/includes/General_Info.inc.php
Added Paths:
-----------
trunk/lang/en_utf8/Eligibility/
trunk/lang/en_utf8/Eligibility/TeacherCompletion.php
trunk/lang/en_utf8/Students/General_Info.inc.php
Added: trunk/lang/en_utf8/Eligibility/TeacherCompletion.php
===================================================================
--- trunk/lang/en_utf8/Eligibility/TeacherCompletion.php (rev 0)
+++ trunk/lang/en_utf8/Eligibility/TeacherCompletion.php 2010-01-12 20:40:17 UTC (rev 407)
@@ -0,0 +1,3 @@
+<?php
+$string['Teacher'] = 'Teacher tr ';
+?>
Modified: trunk/lang/en_utf8/Eligibility.php
===================================================================
--- trunk/lang/en_utf8/Eligibility.php 2010-01-12 20:38:55 UTC (rev 406)
+++ trunk/lang/en_utf8/Eligibility.php 2010-01-12 20:40:17 UTC (rev 407)
@@ -43,4 +43,11 @@
$string['allow eligibility posting'] = 'Allow Eligibility Posting tr';
$string['from'] = 'From tr';
$string['to'] = 'To tr';
+$string['add'] = 'add tr';
+$string['Starts'] = 'Starts tr';
+$string['Ends'] = 'Ends tr';
+$string['Activity'] = 'Activity tr';
+$string['Grade'] = 'Grade tr';
+$string['Course'] = 'Course tr';
+
?>
Modified: trunk/lang/en_utf8/Functions/Search.fnc.php
===================================================================
--- trunk/lang/en_utf8/Functions/Search.fnc.php 2010-01-12 20:38:55 UTC (rev 406)
+++ trunk/lang/en_utf8/Functions/Search.fnc.php 2010-01-12 20:40:17 UTC (rev 407)
@@ -1,4 +1,4 @@
-<?
+<?php
/*This are messages on Search function, in English*/
$string['lastname'] = "Last Name tr";
@@ -11,8 +11,8 @@
$string['notSpecified'] = "Not Specified tr";
$string['otherValue'] = "Other Value tr";
$string['between'] = "Between tr";
- $string['gender'] = "Gender tr";
- $string['ethnicity'] = "Ethnicity tr";
+ $string['Gender'] = "Gender tr";
+ $string['Ethnicity'] = "Ethnicity tr";
$string['Physician'] = "Physician tr";
$string['Physician Phone'] = "Physician Phone tr";
?>
Added: trunk/lang/en_utf8/Students/General_Info.inc.php
===================================================================
--- trunk/lang/en_utf8/Students/General_Info.inc.php (rev 0)
+++ trunk/lang/en_utf8/Students/General_Info.inc.php 2010-01-12 20:40:17 UTC (rev 407)
@@ -0,0 +1,46 @@
+<?php
+$string['demographic']="Demographic Information tr";
+$string['White']="White tr";
+$string['NonHispanic']= "Non-Hispanic tr";
+$string['BlackNonHispanic']="Black, Non-Hispanic tr";
+$string['AmerIndianorAlaskanNative']="Amer. Indian or Alaskan Native tr";
+$string['AsianorPacificIslander']="Asian or Pacific Islander tr";
+$string['Hispanic']="Hispanic tr";
+$string['Other']="Other tr";
+$string['Ethnicity']="Ethnicity tr";
+$string['Commonname']="Common name: tr";
+$string['Gender']="Gender tr";
+$string['Name']="Name tr";
+$string['First']="First tr";
+$string['Middle']="Middle tr";
+$string['Last']="Last tr";
+/*$string['']="";
+$string['']="";
+$string['']="";
+$string['']="";
+$string['']="";
+$string['']="";
+$string['']="";
+$string['']="";
+*/
+$string['Female']="Female tr";
+$string['Male']="Male tr";
+$string['Language']="Language: tr";
+$string['SchoolInformation']="School Information tr";
+$string['StudentID']="Student ID tr";
+$string['automaticallyassigned']="Will automatically be assigned tr";
+$string['AlternateID']="Alternate ID tr";
+$string['Grade']="Grade tr";
+$string['Rolling/RetentionOptions']="Rolling/Retention Options tr";
+$string['Calendar']="Calendar tr";
+$string['AccessInformation']="Access Information tr";
+$string['Username']="Username tr";
+$string['Password']="Password tr";
+$string['LastLogin']="Last Login tr";
+$string['EnrollmentInformation']="Enrollment Information tr";
+$string['AttendanceStartDate']="Attendance Start Date this School Year tr";
+$string['Dropped']="Dropped tr";
+$string['School']="School tr";
+
+
+?>
\ No newline at end of file
Modified: trunk/lang/en_utf8/Students/Menu.php
===================================================================
--- trunk/lang/en_utf8/Students/Menu.php 2010-01-12 20:38:55 UTC (rev 406)
+++ trunk/lang/en_utf8/Students/Menu.php 2010-01-12 20:40:17 UTC (rev 407)
@@ -2,28 +2,28 @@
/*Admin Menu for Students Module*/
-$string['studentinfo'] = "Student Info";
-$string['addastudent'] = "Add a Student";
-$string['groupassignstudentinfo'] = "Group Assign Student Info";
-$string['associateparentswithstudents'] = "Associate Parents With Students";
-$string['reports'] = "Reports";
-$string['advancedreport'] = "Advanced Report";
-$string['adddropreport'] = "Add Drop Report";
-$string['printletters'] = "Print Letters";
-$string['printmailinglabels'] = "Print Mailing Labels";
-$string['printstudentlabels'] = "Print Student Labels";
-$string['printstudentinfo'] = "Print Student Info";
-$string['setup'] = "Setup";
-$string['studentfields'] = "Student Fields";
-$string['addressfields'] = "Address Fields";
-$string['contactfields'] = "Contact Fields";
-$string['enrollmentcodes'] = "Enrollment Codes";
-$string['uploadstudentphoto'] = "Upload Student Photo";
-$string['updatestudentphoto'] = "Update Student Photo";
+$string['studentinfo'] = "Student Info tr";
+$string['addastudent'] = "Add a Student tr";
+$string['groupassignstudentinfo'] = "Group Assign Student Info tr";
+$string['associateparentswithstudents'] = "Associate Parents With Students tr";
+$string['reports'] = "Reports tr";
+$string['advancedreport'] = "Advanced Report tr" ;
+$string['adddropreport'] = "Add Drop Report tr";
+$string['printletters'] = "Print Letters tr";
+$string['printmailinglabels'] = "Print Mailing Labels tr";
+$string['printstudentlabels'] = "Print Student Labels tr";
+$string['printstudentinfo'] = "Print Student Info tr";
+$string['setup'] = "Setup tr";
+$string['studentfields'] = "Student Fields tr";
+$string['addressfields'] = "Address Fields tr";
+$string['contactfields'] = "Contact Fields tr";
+$string['enrollmentcodes'] = "Enrollment Codes tr";
+$string['uploadstudentphoto'] = "Upload Student Photo tr";
+$string['updatestudentphoto'] = "Update Student Photo tr";
/*Teacher Menu for Students Module*/
-$string['associatedparents'] = "Associated Parents";
+$string['associatedparents'] = "Associated Parents tr";
/* duplicated
$string['studentinfo'] = "Student Info";
Modified: trunk/modules/Eligibility/Student.php
===================================================================
--- trunk/modules/Eligibility/Student.php 2010-01-12 20:38:55 UTC (rev 406)
+++ trunk/modules/Eligibility/Student.php 2010-01-12 20:40:17 UTC (rev 407)
@@ -129,17 +129,17 @@
// $link['remove']['link'] = "#"." onclick='check_content(\"ajax.php?modname=$_REQUEST[modname]&modfunc=remove&start_date=$_REQUEST[start_date]\");'";
$link['remove']['variables'] = array('activity_id'=>'ACTIVITY_ID');
$link['add']['html']['TITLE'] = '<TABLE border=0 cellpadding=0 cellspacing=0><TR><TD>'.SelectInput('','new_activity','',$activities).' </TD><TD> <INPUT type=submit value=Add class=btn_go onclick=\'formload_ajax("elig_stud");\'></TD></TR></TABLE>';
- $link['add']['html']['remove'] = button('add');
+ $link['add']['html']['remove'] = button(''.get_string('add', 'Eligibility').'');
echo "<FORM action=Modules.php?modname=$_REQUEST[modname]&modfunc=add&start_date=$_REQUEST[start_date] method=POST>";
- $columns = array('TITLE'=>'Activity','START_DATE'=>'Starts','END_DATE'=>'Ends');
+ $columns = array('TITLE'=>''.get_string('Activity', 'Eligibility').'','START_DATE'=>''.get_string('Starts', 'Eligibility').'','END_DATE'=>''.get_string('Ends', 'Eligibility').'');
ListOutput($RET,$columns,'Activity','Activities',$link);
echo '</FORM>';
echo '</TD><TD width=50% valign=top>';
$RET = DBGet(DBQuery("SELECT e.ELIGIBILITY_CODE,c.TITLE as COURSE_TITLE FROM ELIGIBILITY e,COURSES c,COURSE_PERIODS cp WHERE e.STUDENT_ID='".UserStudentID()."' AND e.SYEAR='".UserSyear()."' AND e.COURSE_PERIOD_ID=cp.COURSE_PERIOD_ID AND cp.COURSE_ID=c.COURSE_ID AND e.SCHOOL_DATE BETWEEN '".date('Y-m-d',strtotime($start_date))."' AND '".date('Y-m-d',strtotime($end_date))."'"),array('ELIGIBILITY_CODE'=>'_makeLower'));
- $columns = array('COURSE_TITLE'=>'Course','ELIGIBILITY_CODE'=>'Grade');
+ $columns = array('COURSE_TITLE'=>''.get_string('Course', 'Eligibility').'','ELIGIBILITY_CODE'=>''.get_string('Grade', 'Eligibility').'');
ListOutput($RET,$columns,'Course','Courses');
echo '</TD></TR></TABLE>';
Modified: trunk/modules/Eligibility/TeacherCompletion.php
===================================================================
--- trunk/modules/Eligibility/TeacherCompletion.php 2010-01-12 20:38:55 UTC (rev 406)
+++ trunk/modules/Eligibility/TeacherCompletion.php 2010-01-12 20:40:17 UTC (rev 407)
@@ -119,7 +119,7 @@
$staff_RET[$i][$period_id] = '<IMG SRC=assets/x.gif>';
}
}
-$columns = array('FULL_NAME'=>'Teacher');
+$columns = array('FULL_NAME'=>''.get_string('Teacher', 'Eligibility/TeacherCompletion').'');
if(!$_REQUEST['period'])
{
foreach($periods_RET as $period)
Modified: trunk/modules/Students/includes/General_Info.inc.php
===================================================================
--- trunk/modules/Students/includes/General_Info.inc.php 2010-01-12 20:38:55 UTC (rev 406)
+++ trunk/modules/Students/includes/General_Info.inc.php 2010-01-12 20:40:17 UTC (rev 407)
@@ -74,7 +74,7 @@
if($add)
$link['add']['html'] = array('START_DATE'=>_makeStartInput('','START_DATE'),'SCHOOL_ID'=>_makeSchoolInput('','SCHOOL_ID'));
-$columns = array('START_DATE'=>'Attendance Start Date this School Year','END_DATE'=>'Dropped','SCHOOL_ID'=>'School');
+$columns = array('START_DATE'=>''.get_string('AttendanceStartDate','Students/General_Info.inc').'','END_DATE'=>''.get_string('Dropped','Students/General_Info.inc').'','SCHOOL_ID'=>''.get_string('School','Students/General_Info.inc').'');
$schools_RET = DBGet(DBQuery("SELECT ID,TITLE FROM SCHOOLS WHERE ID!='".UserSchool()."'"));
$next_school_options = array(UserSchool()=>'Next grade at current school','0'=>'Retain','-1'=>'Do not enroll after this school year');
@@ -115,13 +115,13 @@
echo '<TABLE width=100% border=0 cellpadding=3>';
-echo '<TR><td height="30px" colspan=2 class=hseparator><b>Demographic Information</b></td></tr>';
+echo '<TR><td height="30px" colspan=2 class=hseparator><b>'.get_string('demographic','Students/General_Info.inc').'</b></td></tr>';
echo '<TR><td valign="top">';
echo '<TABLE border=0>';
-echo '<tr><td style=width:120px>Name</td><td>:</td><td>';
+echo '<tr><td style=width:120px>'.get_string('Name','Students/General_Info.inc').'</td><td>:</td><td>';
if($_REQUEST['student_id']=='new') {
echo '<TABLE>';
- echo '<TR><TD >'.TextInput($student['FIRST_NAME'],'students[FIRST_NAME]','<FONT color=red>First</FONT>','size=12 class=cell_floating maxlength=50 style="font-size:14px; font-weight:bold;"').'</TD><TD>'.TextInput($student['MIDDLE_NAME'],'students[MIDDLE_NAME]','Middle','class=cell_floating maxlength=50 style="font-size:14px; font-weight:bold;"').'</TD><TD>'.TextInput($student['LAST_NAME'],'students[LAST_NAME]','<FONT color=red>Last</FONT>','size=12 class=cell_floating maxlength=50 style="font-size:14px; font-weight:bold;"').'</TD><TD>'.SelectInput($student['NAME_SUFFIX'],'students[NAME_SUFFIX]','Suffix',array('Jr.'=>'Jr.','Sr.'=>'Sr.','II'=>'II','III'=>'III','IV'=>'IV','V'=>'V'),'','style="font-size:14px; font-weight:bold;"').'</TD></TR>';
+ echo '<TR><TD >'.TextInput($student['FIRST_NAME'],'students[FIRST_NAME]','<FONT color=red>'.get_string('First','Students/General_Info.inc').'</FONT>','size=12 class=cell_floating maxlength=50 style="font-size:14px; font-weight:bold;"').'</TD><TD>'.TextInput($student['MIDDLE_NAME'],'students[MIDDLE_NAME]',''.get_string('Middle','Students/General_Info.inc').'','class=cell_floating maxlength=50 style="font-size:14px; font-weight:bold;"').'</TD><TD>'.TextInput($student['LAST_NAME'],'students[LAST_NAME]','<FONT color=red>'.get_string('Last','Students/General_Info.inc').'</FONT>','size=12 class=cell_floating maxlength=50 style="font-size:14px; font-weight:bold;"').'</TD><TD>'.SelectInput($student['NAME_SUFFIX'],'students[NAME_SUFFIX]','Suffix',array('Jr.'=>'Jr.','Sr.'=>'Sr.','II'=>'II','III'=>'III','IV'=>'IV','V'=>'V'),'','style="font-size:14px; font-weight:bold;"').'</TD></TR>';
#date of birth
echo '</TABLE>';
}
@@ -130,26 +130,26 @@
}
echo'</td></tr>';
-$options = array('Female'=>'Female','Male'=>'Male');
+$options = array('Female'=>''.get_string('Female','Students/General_Info.inc').'','Male'=>''.get_string('Male','Students/General_Info.inc').'');
echo '<TR>';
-echo '<TD>Gender</TD><TD>:</TD>';
+echo '<TD>'.get_string('Gender','Students/General_Info.inc').'</TD><TD>:</TD>';
echo '<TD>'.SelectInput($student['GENDER'],'students[GENDER]','',$options, 'N/A', '', true).'</TD>';
echo '</TR>';
-$options = array('White'=>'White','Non-Hispanic'=>'Non-Hispanic','Black, Non-Hispanic'=>'Black, Non-Hispanic','Amer. Indian or Alaskan Native'=>'Amer. Indian or Alaskan Native','Asian or Pacific Islander'=>'Asian or Pacific Islander','Hispanic'=>'Hispanic','Other'=>'Other');
+$options = array('White'=>''.get_string('White','Students/General_Info.inc').'','Non-Hispanic'=>''.get_string('NonHispanic','Students/General_Info.inc').'','Black, Non-Hispanic'=>''.get_string('BlackNonHispanic','Students/General_Info.inc').'','Amer. Indian or Alaskan Native'=>''.get_string('AmerIndianorAlaskanNative','Students/General_Info.inc').'','Asian or Pacific Islander'=>''.get_string('AsianorPacificIslander','Students/General_Info.inc').'','Hispanic'=>''.get_string('Hispanic','Students/General_Info.inc').'','Other'=>''.get_string('Other','Students/General_Info.inc').'');
echo '<TR>';
-echo '<TD>Ethnicity</TD><TD>:</TD>';
+echo '<TD>'.get_string('Ethnicity','Students/General_Info.inc').'</TD><TD>:</TD>';
echo '<TD>'.SelectInput($student['ETHNICITY'],'students[ETHNICITY]','',$options, 'N/A', '', true).'</TD>';
echo '</TR>';
echo '<TR>';
-echo '<TD>Common name:</TD><TD>:</TD>';
+echo '<TD>'.get_string('Commonname','Students/General_Info.inc').'</TD><TD>:</TD>';
echo '<TD>'.TextInput($student['COMMON_NAME'],'students[COMMON_NAME]','','size=12 maxlength=25').'</TD>';
echo '</TR>';
$options = array('English'=>'English','Spanish'=>'Spanish');
echo '<TR>';
-echo '<TD>Language:</TD><TD>:</TD>';
+echo '<TD>'.get_string('Language','Students/General_Info.inc').'</TD><TD>:</TD>';
echo '<TD>'.SelectInput($student['LANG'],'students[LANG]','',$options, 'N/A', '', true).'</TD>';
echo '</TR>';
@@ -318,12 +318,12 @@
}
echo '</td></TR>';
-echo '<TR><td height="30px" colspan=2 class=hseparator><b>School Information</b></td></tr><tr><td colspan="2">';
+echo '<TR><td height="30px" colspan=2 class=hseparator><b>'.get_string('SchoolInformation','Students/General_Info.inc').'</b></td></tr><tr><td colspan="2">';
echo '<TABLE border=0>';
-echo '<tr><td>Student ID</td><td>:</td><td>';
+echo '<tr><td>'.get_string('StudentID','Students/General_Info.inc').'</td><td>:</td><td>';
if($_REQUEST['student_id']=='new')
{
-echo NoInput('Will automatically be assigned','');
+echo NoInput(''.get_string('automaticallyassigned','Students/General_Info.inc').'','');
//echo TextInput('','assign_student_id','','maxlength=10 size=10 class=cell_medium onkeyup="usercheck_student_id(this)"');
echo '<span id="ajax_output_stid"></span>';
}
@@ -332,14 +332,14 @@
// ----------------------------- Alternate id ---------------------------- //
-echo '<tr><td>Alternate ID</td><td>:</td><td>';
+echo '<tr><td>'.get_string('AlternateID','Students/General_Info.inc').'</td><td>:</td><td>';
echo TextInput($student['ALT_ID'],'students[ALT_ID]','','size=10 class=cell_medium maxlength=10');
echo '</td></tr>';
// ----------------------------- Alternate id ---------------------------- //
echo'</td></tr>';
-echo '<tr><td>Grade</td><td>:</td><td>';
+echo '<tr><td>'.get_string('Grade','Students/General_Info.inc').'</td><td>:</td><td>';
if($_REQUEST['student_id']!='new' && $student['SCHOOL_ID'])
$school_id = $student['SCHOOL_ID'];
else
@@ -371,25 +371,25 @@
echo SelectInput($student['GRADE_ID'],'values[STUDENT_ENROLLMENT]['.$student_id.'][GRADE_ID]',(!$student['GRADE_ID']?'<FONT color=red>':'').''.(!$student['GRADE_ID']?'</FONT>':''),$options,'','class=cell_medium');
echo'</td></tr>';
-echo '<tr><td>Calendar</td><td>:</td><td>'.SelectInput($calendar,"values[STUDENT_ENROLLMENT][$id][CALENDAR_ID]",(!$calendar||!$div?'':'').''.(!$calendar||!$div?'':''),$calendar_options,false,'class=cell_medium',$div).'</td></tr>';
-echo '<tr><td>Rolling/Retention Options</td><td>:</td><td>'.SelectInput($next_school,"values[STUDENT_ENROLLMENT][$id][NEXT_SCHOOL]",(!$next_school||!$div?'':'').''.(!$next_school||!$div?'':''),$next_school_options,false,'class=cell_medium',$div).'</td></tr>';
+echo '<tr><td>'.get_string('Calendar','Students/General_Info.inc').'</td><td>:</td><td>'.SelectInput($calendar,"values[STUDENT_ENROLLMENT][$id][CALENDAR_ID]",(!$calendar||!$div?'':'').''.(!$calendar||!$div?'':''),$calendar_options,false,'class=cell_medium',$div).'</td></tr>';
+echo '<tr><td>'.get_string('Rolling/RetentionOptions','Students/General_Info.inc').'</td><td>:</td><td>'.SelectInput($next_school,"values[STUDENT_ENROLLMENT][$id][NEXT_SCHOOL]",(!$next_school||!$div?'':'').''.(!$next_school||!$div?'':''),$next_school_options,false,'class=cell_medium',$div).'</td></tr>';
echo'</table>';
echo '</td></TR>';
-echo '<TR><td height="30px" colspan=2 class=hseparator><b>Access Information</b></td></tr><tr><td colspan="2">';
+echo '<TR><td height="30px" colspan=2 class=hseparator><b>'.get_string('AccessInformation','Students/General_Info.inc').'</b></td></tr><tr><td colspan="2">';
echo '<TABLE border=0>';
-echo '<tr><td style=width:120px>Username</td><td>:</td><td>';
+echo '<tr><td style=width:120px>'.get_string('Username','Students/General_Info.inc').'</td><td>:</td><td>';
echo TextInput($student['USERNAME'],'students[USERNAME]','','class=cell_medium onkeyup="usercheck_init_student(this)"');
echo '<span id="ajax_output_st"></span>';
echo'</td></tr>';
-echo '<tr><td>Password</td><td>:</td><td>';
+echo '<tr><td>'.get_string('Password','Students/General_Info.inc').'</td><td>:</td><td>';
echo TextInput(array($student['PASSWORD'],str_repeat('*',strlen($student['PASSWORD']))),'students[PASSWORD]','','class=cell_medium');
echo '</td></tr>';
-echo '<tr><td>Last Login</td><td>:</td><td>';
+echo '<tr><td>'.get_string('LastLogin','Students/General_Info.inc').'</td><td>:</td><td>';
echo NoInput(ProperDate(substr($student['LAST_LOGIN'],0,10)).substr($student['LAST_LOGIN'],10),'');
echo '</td></tr>';
echo'</table>';
echo '</td></TR>';
-echo '<TR><td height="30px" colspan=2 class=hseparator><b>Enrollment Information</b></td></tr><tr><td colspan="2">';
+echo '<TR><td height="30px" colspan=2 class=hseparator><b>'.get_string('EnrollmentInformation','Students/General_Info.inc').'</b></td></tr><tr><td colspan="2">';
echo '</td></tr></table>';
echo '</TD></TR><tr><td colspan="2">';
if($_REQUEST['student_id']!='new')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ku...@us...> - 2010-01-12 20:39:02
|
Revision: 406
http://opensis.svn.sourceforge.net/opensis/?rev=406&view=rev
Author: kusum18
Date: 2010-01-12 20:38:55 +0000 (Tue, 12 Jan 2010)
Log Message:
-----------
Modified Paths:
--------------
trunk/lang/en_utf8/Modules.php
Modified: trunk/lang/en_utf8/Modules.php
===================================================================
--- trunk/lang/en_utf8/Modules.php 2010-01-01 22:40:44 UTC (rev 405)
+++ trunk/lang/en_utf8/Modules.php 2010-01-12 20:38:55 UTC (rev 406)
@@ -18,6 +18,5 @@
$string['version'] = 'Version tr';
$string['buildDate'] = 'Build Date tr';
$string[''] = ' tr';
- $string[''] = ' tr';
- $string[''] = ' tr';
+
?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <aec...@us...> - 2010-01-01 22:40:50
|
Revision: 405
http://opensis.svn.sourceforge.net/opensis/?rev=405&view=rev
Author: aecioneto
Date: 2010-01-01 22:40:44 +0000 (Fri, 01 Jan 2010)
Log Message:
-----------
Adding central date and time terms
Added Paths:
-----------
trunk/lang/en_utf8/datetime.php
Added: trunk/lang/en_utf8/datetime.php
===================================================================
--- trunk/lang/en_utf8/datetime.php (rev 0)
+++ trunk/lang/en_utf8/datetime.php 2010-01-01 22:40:44 UTC (rev 405)
@@ -0,0 +1,35 @@
+<?php
+#**************************************************************************
+# openSIS Community Edition is a free student information system for
+# public and non-public schools. It is web-based, open source, and comes
+# packed with features that include student demographic info, scheduling,
+# grade book, attendance, report cards, eligibility, transcripts,
+# parent portal, student portal and more.
+#
+# openSIS Communnity Edition is a derivitive work.
+# Portions Copyright (C) 2007-2008, Open Solutions for Education, Inc.
+# Portions Copyright (C) 2004-2007 The Miller Group
+# Portions Copyright (C) 2004-2007 Andrew Schmadeke
+# Visit the openSIS web site http://opensis.sourceforge.net/ to learn more.
+# *************************************************************************
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 2 of the License. See license.txt.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#**************************************************************************
+$string['sunday'] = 'Sunday tr';
+$string['monday'] = 'Monday tr';
+$string['tuesday'] = 'Tuesday tr';
+$string['wednesday'] = 'Wednesday tr';
+$string['thursday'] = 'Thursday tr';
+$string['friday'] = 'Friday tr';
+$string['saturday'] = 'Saturday tr';
+
+?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|