// instantiate the object $dp=new datepicker(); // allow selection of time also $dp->enableTimePicker = true; // restrict the selectable hours range to every second hour between 12 and 20 // and minutes to every 15 minute $dp->selectableTimesRange = array( array(12, 20, 2, 0, 60, 15) ); ?> <input type="text" id="date"> <input type="button" value="..." onclick="<?=$dp->show("date")?>"> </pre> <p>Click on the button to see it work</p> <input type="text" id="date"> <input type="button" value="..." onclick="<?php echo $dp->show("date"); ?> "> </body> </html>
$o->iscomplete = $_POST['iscomplete']; $o->period_id = $_POST['period_id']; $o->statementbalance = $_POST['statementbalance']; $o->bankreconcilationdate = $_POST['bankreconcilationdate']; $o->laststatementdate = $_POST['laststatementdate']; $o->laststatementbalance = $_POST['laststatementbalance']; $o->account_balance = $_POST['account_balance']; $o->reconcilamt = $_POST['reconcilamt']; $o->unreconcilamt = $_POST['unreconcilamt']; $o->createdby = $xoopsUser->getVar('uid'); $o->updatedby = $o->createdby; $trans->createdby = $o->createdby; $trans->updatedby = $trans->createdby; $trans->linetrans_id = $_POST['linetrans_id']; $trans->linechecked = $_POST['linechecked']; $o->showcalendar = $dp->show("bankreconcilationdate"); $o->bankreconcilationdatefrom = $_POST['bankreconcilationdatefrom']; $o->bankreconcilationdateto = $_POST['bankreconcilationdateto']; switch ($action) { //When user submit new organization case "create": // if the token is exist and not yet expired $log->showLog(4, "Accessing create record event, with bankreconcilation name={$o->bankreconcilation_name}"); if ($s->check(false, $token, "CREATE_ACG")) { if ($o->insertBankReconcilation()) { $latest_id = $o->getLatestBankReconcilationID(); $trans->updateBankReconcilationInfo($latest_id); redirect_header("bankreconcilation.php?action=edit&bankreconcilation_id={$latest_id}", $pausetime, "Your data is saved, the new id={$latest_id}"); } else { $token = $s->createToken($tokenlife, "CREATE_ACG"); $o->accountsctrl = $simbizctrl->getSelectAccounts($o->accounts_id, 'Y', "onchange='refreshAccounts(this.value)'", "accounts_id", 'and account_type=4');
$o->receipt_prefix = $_POST['receipt_prefix']; $o->receipt_no = $_POST['receipt_no']; $o->amt = $_POST['amt']; $o->chequeno = $_POST['chequeno']; $o->originalamt = $_POST['originalamt']; $o->paidfrom = $_POST['paidfrom']; $o->batch_id = $_POST['batch_id']; $o->accountsfrom_id = $_POST['accountsfrom_id']; //$o->accountsto_id=$_POST['accountsto_id']; $o->exchangerate = $_POST['exchangerate']; $o->receipt_date = $_POST['receipt_date']; $o->receivedby = $_POST['receivedby']; $o->isAdmin = $xoopsUser->isAdmin(); $o->createdby = $xoopsUser->getVar('uid'); $o->updatedby = $xoopsUser->getVar('uid'); $o->showCalendar = $dp->show('receipt_date'); $o->showDateFrom = $dp->show('datefrom'); $o->showDateTo = $dp->show('dateto'); $chkAddNew = $_POST['chkAddNew']; $pl->linereceiptline_id = $_POST['linereceiptline_id']; $pl->linesubject = $_POST['linesubject']; $pl->lineamt = $_POST['lineamt']; $pl->linechequeno = $_POST['linechequeno']; $pl->lineaccounts_id = $_POST['lineaccounts_id']; $pl->linedescription = $_POST['linedescription']; $pl->linedel = $_POST['linedel']; $chkAddNew = $_POST['chkAddNew']; $o->addreceiptlineqty = $_POST['addreceiptlineqty']; if ($iscomplete == 1 or $iscomplete == "on") { $o->iscomplete = 1; } else {
//display pdf $pdf->Output(); exit(1); } else { include_once "menu.php"; include_once 'class/Log.php'; include_once 'class/SelectCtrl.php'; include_once "../../class/datepicker/class.datepicker.php"; $dp = new datepicker("{$tableprefix}"); $dp->dateFormat = 'Y-m-d'; error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); $ctrl = new SelectCtrl(); $accountsctrl = $ctrl->getSelectAccounts(0, 'N'); $periodfrom = $ctrl->getSelectPeriod(0, 'Y', "", "period_from"); $periodto = $ctrl->getSelectPeriod(0, 'Y', "", "period_to"); $showDateFrom = $dp->show("datefrom"); $showDateTo = $dp->show("dateto"); $datefrom = getMonth(date("Ymd", time()), 0); $dateto = getMonth(date("Ymd", time()), 1); echo <<<EOF <table border='1'> <tbody> <tr><TH colspan='4' style='text-align: center'>Criterial</TH></tr> \t<FORM name='frmIncome' method='POST' atarget="_blank" action="viewincome.php"> \t<tr> \t\t<Td class='head'>Account From</Td> \t\t<Td class='odd'><input name='accounts_codefrom' value="{$accounts_codefrom}"></Td> \t\t<Td class='head'>Account To</Td> \t\t<Td class='odd'><input name='accounts_codeto' value="{$accounts_codeto}"></Td> \t\t \t</tr>
if (isset($_GET['aktion'])) { $aktion = $_GET['aktion']; } if ($aktion == "") { echo 'Admin Area'; } if ($aktion == "add") { if (empty($_POST['fecha']) and empty($_POST['analisisobjetivos']) and empty($_POST['analisissatisfaccionclientes']) and empty($_POST['analisisreclamacionesclientes']) and empty($_POST['analisisnoconformidadesporarea']) and empty($_POST['analisiscierresncs']) and empty($_POST['analisisincidenciasinspecciones']) and empty($_POST['analisisformacion']) and empty($_POST['analisisincidenciasalmacen']) and empty($_POST['analisisincidenciasproveedor']) and empty($_POST['analisisauditorias']) and empty($_POST['analisisnoconformidades']) and empty($_POST['analisispolitica']) and empty($_POST['analiscambios']) and empty($_POST['recomendaciones'])) { echo '<span class="analisis_revsistema">' . REVSISTEMA_USTEDESTA . '</span>'; echo '<form action="" method="POST">'; echo '<h1>' . GENERAL_FECHA . ':</h1>'; echo '<input type="text" id="date" class="inputfecha" name="fecha" value="">'; ?> <input type="button" value="::" onclick="<?php echo $db->show('date'); ?> "> <?php echo '<h1>1. ' . OBJETIVOS_OBJETIVOS . '</h1><br /><br /><br />'; /*---------------------------------Mostramos los objetivos al modo mangui -------------------------------*/ @($date = $_POST['seleccione']); $sql = mysql_query("SELECT * FROM objetivosdatosgenerales WHERE Fecha > '{$date}' ORDER BY Id DESC"); $result = mysql_fetch_row($sql); echo "<table class=sortable' summary='Esta tabla imprime un objetivo en pantalla'>"; echo "<tbody>"; echo "<tr>"; echo '<th>' . OBJETIVOS_NOMBRE_OBJETIVO . '</th>'; //echo "<th>Origen</th><th>Detección</th><th>Causas</th><th>Recursos</th>"; echo "<th>Indicador</th>"; //echo "<th>Fuente</th><th>Frecuencia</th><th>Plazo</th><th>Ejecuta</th><th>Persigue</th><th>VºBº</th>";
<?php /* *Developed by kstan@simit.com.my 2008-12-25 */ include_once "system.php"; include_once "menu.php"; //include_once '../system/class/Log.php'; //include_once 'class/Accounts.php'; //include_once 'class/SelectCtrl.php'; include_once "../simantz/class/datepicker/class.datepicker.php"; include_once '../simantz/class/fpdf/fpdf.php'; $dp = new datepicker("{$url}"); $dp->dateFormat = 'Y-m-d'; $showDateFrom1 = $dp->show('datefrom1'); $showDateTo1 = $dp->show('dateto1'); $showDateFrom2 = $dp->show('datefrom2'); $showDateTo2 = $dp->show('dateto2'); error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); //$log = new Log(); $s = new XoopsSecurity(); //$ctrl= new SelectCtrl(); $periodfromctrl = $simbizctrl->getSelectPeriod(0, 'N', "onchange=updatePeriodTo(reporttype.value)", "periodfrom_id"); $periodtoctrl = $simbizctrl->getSelectPeriod(0, 'N', "", "periodto_id"); //$yearfromctrl=$simbizctrl->getSelectFinancialYear(0,'N',"","financialyearfrom_id"); //$yeartoctrl=$simbizctrl->getSelectFinancialYear(0,'N',"","financialyearto_id"); if ($defaultDateSession == "") { $defaultDateSession = date("Y-m-d", time()); } $datefrom1 = left($defaultDateSession, 7) . "-01"; $dateto1 = getLastDayByMonth(left($defaultDateSession, 7));
/* *Developed by kstan@simit.com.my 2008-12-25 */ include_once "system.php"; include_once "menu.php"; //include_once '../system/class/Log.php'; //include_once 'class/Accounts.php'; //include_once 'class/SelectCtrl.php'; //include_once "../../class/datepicker/class.datepicker.php"; include_once '../simantz/class/fpdf/fpdf.php'; include_once "../simantz/class/datepicker/class.datepicker.php"; $dp = new datepicker("{$url}"); $dp->dateFormat = 'Y-m-d'; $datefrom = getMonth(date("Ymd", time()), 0); $dateto = getMonth(date("Ymd", time()), 1); $showDateFrom = $dp->show('datefrom'); $showDateTo = $dp->show('dateto'); error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); $log = new Log(); $s = new XoopsSecurity(); $ctrl = new SelectCtrl(); $uid = $xoopsUser->getVar('uid'); $orgctrl = $ctrl->selectionOrg($uid, $defaultorganization_id, 'N', "", 'N'); echo <<<EOF <script type='text/javascript'> function autofocus(){ changereport(); } function changereport(){ //alert(value);
//display standard web component if ($action == "view" || $action == "edit" || $action == "" || $action == "search") { include "menu.php"; $xoTheme->addStylesheet("{$url}/modules/simantz/include/popup.css"); $xoTheme->addScript("{$url}/modules/simantz/include/popup.js"); $xoTheme->addStylesheet("{$url}/modules/simantz/include/nitobi/nitobi.grid/nitobi.grid.css"); $xoTheme->addStylesheet("{$url}/modules/simantz/include/nitobi/nitobi.combo/nitobi.combo.css"); $xoTheme->addScript("{$url}/modules/simantz/include/nitobi/nitobi.toolkit.js"); $xoTheme->addScript("{$url}/modules/simantz/include/nitobi/nitobi.grid/nitobi.grid.js"); $xoTheme->addScript("{$url}/modules/simantz/include/nitobi/nitobi.combo/nitobi.combo.js"); $xoTheme->addScript("{$url}/modules/simantz/include/firefox3_6fix.js"); $xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js'); include_once "../simantz/class/datepicker/class.datepicker.php"; $dp = new datepicker("{$url}"); $dp->dateFormat = 'Y-m-d'; $o->showCalendar = $dp->show("document_date"); $o->defineHeaderButton(); } switch ($action) { case "search": echo $o->showSearchForm(); require XOOPS_ROOT_PATH . '/footer.php'; break; case "ajaxsearch": $o->showSearchGrid("where i.issotrx=1 and i.payment_id>0 "); break; case "view": echo $o->gridjs(); if ($o->fetchPayment($_GET['payment_id'])) { if ($o->iscomplete == 0) { redirect_header("{$o->paymentfilename}?action=edit&payment_id={$o->payment_id}", "2", "This transaction not yet complete, redirect to edit mode.");
public function showEditFollowUpLayer($followup_id) { global $xoTheme, $nitobigridthemes, $url, $issuedatecal, $nextfollowupdatecal; include "../bpartner/class/BPSelectCtrl.inc.php"; include "../hr/class/HRSelectCtrl.inc.php"; include_once "../simantz/class/datepicker/class.datepicker.php"; $dp = new datepicker("{$url}"); $dp->dateFormat = 'Y-m-d'; $issuedatecal = $dp->show('issuedate'); $nextfollowupdatecal = $dp->show('nextfollowupdate'); $bpctrl = new BPSelectCtrl(); if ($followup_id == 0) { $bpcontrol = $bpctrl->getSelectBPartner(0, "Y"); $followtypectrl = $bpctrl->getSelectFollowUpType(0, 'N'); $ischecked = "checked"; $issuedate = date("Y-m-d", time()); $nextfollowupdate = date("Y-m-d", time()); } else { $sql = "SELECT f.*,bp.bpartner_name,bp.bpartner_no,ft.followuptype_name,f.employee_name\r\n FROM sim_followup f\r\n inner join sim_bpartner bp on f.bpartner_id=bp.bpartner_id\r\n inner join sim_followuptype ft on f.followuptype_id =ft.followuptype_id\r\n where followup_id={$followup_id}"; $query = $this->xoopsDB->query($sql); while ($row = $this->xoopsDB->fetchArray($query)) { $bpartner_name = htmlspecialchars($row['bpartner_name']); $bpartner_no = htmlspecialchars($row['bpartner_no']); $bpartner_id = $row['bpartner_id']; $followup_name = htmlspecialchars($row['followup_name']); $followuptype_id = $row['followuptype_id']; $employee_name = htmlspecialchars($row['employee_name']); $description = htmlspecialchars($row['description']); $issuedate = $row['issuedate']; $contactperson = htmlspecialchars($row['contactperson']); $contactnumber = htmlspecialchars($row['contactnumber']); $nextfollowupdate = htmlspecialchars($row['nextfollowupdate']); $isactive = $row['isactive']; $followtypectrl = $bpctrl->getSelectFollowUpType($followuptype_id, 'N'); $bpcontrol = "<a href='bpartner.php?action=viewsummary&bpartner_id={$bpartner_id}'>{$bpartner_no}-{$bpartner_name}</a>"; // $empcontrol="<a href='../hr/employee.php?action=viewsummary&employee_id=$employee_id'>$employee_name</a>"; //Netgate if ($isactive == 1) { $ischecked = "checked"; } else { $ischecked = ""; } } } echo <<<EOF <div class="dimBackground"></div> <form name="getFWform" id="getFWformid" method="post" action="bpartner.php" onsubmit="return false" > <div align="center"> <table style="width:950px;" align="center" class="searchformblock" > <tr> <td colspan="8" > <table class="tdListRightTitle"><tr > <td align="center">Follow Up</td> <td align="right"><img src="images/close.png" onclick="closeWindow();" style="cursor:pointer" title="Close"></td> </tr></table> </td> </tr> <tr><td class="searchformblock"> <table> <tr> <td class="head" >Business Partner</td> <td>{$bpcontrol}</td> <td class="head" >Type</td> <td><select id="followuptype_id" name="followuptype_id">{$followtypectrl}</select></td> </tr> <tr> <td class="head" >Title</td> <td><input {$colstyle} id="followup_name" name="followup_name" size="60" type="text" value="{$followup_name}" onfocus="this.style.backgroundColor='#efefef'" onblur="this.style.backgroundColor=''" /></td> <td class="head" >Date</td> <td><input {$colstyle} id="issuedate" name="issuedate" type="text" value="{$issuedate}" onfocus="this.style.backgroundColor='#efefef'" onblur="this.style.backgroundColor=''" /><input type="button" onclick="{$issuedatecal}" value='Date'></td> </tr> <tr> <td class="head" >Contact Person</td> <td><input {$colstyle} id="contactperson" name="contactperson" type="text" value="{$contactperson}" onfocus="this.style.backgroundColor='#efefef'" onblur="this.style.backgroundColor=''" /></td> <td class="head" >Contact Number</td> <td><input {$colstyle} id="contactnumber" name="contactnumber" type="text" value="{$contactnumber}" onfocus="this.style.backgroundColor='#efefef'" onblur="this.style.backgroundColor=''" /></td> </tr> <tr> <td class="head">Employee</td> <td><input {$colstyle} id="employee_name" name="employee_name" size="60" type="text" value="{$employee_name}" onfocus="this.style.backgroundColor='#efefef'" onblur="this.style.backgroundColor=''" /></td> <td class="head" >Next Follow Up Date</td> <td><input {$colstyle} id="nextfollowupdate" name="nextfollowupdate" type="text" value="{$nextfollowupdate}" onfocus="this.style.backgroundColor='#efefef'" onblur="this.style.backgroundColor=''" /><input type="button" onclick="{$nextfollowupdatecal}" value='Date'></td> </tr> <tr> <td class="head" >Description</td> <td colspan="3"><textarea {$colstyle} cols="70" rows="10" id="description" name="description" onfocus="this.style.backgroundColor='#efefef'" onblur="this.style.backgroundColor=''">{$description}</textarea> <Label>Active <input name="isactive" id="isactive" type="checkbox" {$ischecked}></Label></td> </tr> <tr> <td class="head"></td> <td colspan="3"><input name="submit" value="save" type="submit" onclick="save()"/> <input name="action" value="savefollowuplayer" type="hidden"/> <input name="followup_id" value="{$followup_id}" type="hidden"/></td> </tr> </table> </td></tr> </table> </div> </form> EOF; }
$iscomplete = $_POST['iscomplete']; } else { $iscomplete = $_GET['iscomplete']; } $o->organization_id = $_POST['organization_id']; $o->defaultlevel = $_POST['defaultlevel']; $o->createdby = $xoopsUser->getVar('uid'); $o->updatedby = $xoopsUser->getVar('uid'); $o->updated = date("y/m/d H:i:s", time()); $o->created = date("y/m/d H:i:s", time()); $o->isAdmin = $xoopsUser->isAdmin(); $o->currentdate = date("Y-m-d", time()); $uid = $xoopsUser->getVar('uid'); $o->start_date = $_POST['start_date']; $o->end_date = $_POST['end_date']; $o->startctrl = $dp->show("start_date"); $o->endctrl = $dp->show("end_date"); $o->leavedatectrl = $dp->show("leave_date"); $o->leavefromdatectrl = $dp->show("leave_fromdate", "", "", "", "", "validateTotalApprovallist()"); $o->leavetodatectrl = $dp->show("leave_todate", "", "", "", "", "validateTotalApprovallist()"); /* define nitobi default value */ $o->employee_id = $_REQUEST["employee_id"]; $o->leavetype_id = $_REQUEST["leavetype_id"]; /* end */ $o->failfeedback = ""; //$log->showLog(3,"in window_workflow: $o->window_workflow"); /* define workflow API */ $workflowapi = new WorkflowAPI(); $o->parameter_array = $o->defineWorkflowParameter(); /* end */ $o->defineHeaderButton();
if (isset($_POST['showtt'])) { $o->showtt = $_POST['showtt']; } else { $o->showtt = $_GET['showtt']; } if ($isactive == "1" || $isactive == "on") { $o->isactive = 1; } else { if ($isactive == "null") { $o->isactive = "null"; } else { $o->isactive = 0; } } $o->isdeleteline = $_POST['isdeleteline']; $o->generateinvoicedatectrl = $dp->show("generateinvoice_date"); $o->subjectclasssearch_id = $_POST['subjectclasssearch_id']; $o->subjectsearch_id = $_POST['subjectsearch_id']; $o->ischeckexist = $_POST['ischeckexist']; $o->stylewidthstudent = "style='width:200px'"; switch ($action) { //When user submit new organization case "create": //$o->copyGenerateinvoiceWeek(); // if the token is exist and not yet expired $log->showLog(4, "Accessing create record event, with generateinvoice name={$o->generateinvoice_name}"); if ($s->check(false, $token, "CREATE_ACG")) { if ($o->isempty == "1") { $isemptytrue = true; } else { $isemptytrue = false;
<?php /* *Developed by kstan@simit.com.my 2009-01-04 */ include_once "system.php"; include_once "menu.php"; //include_once '../system/class/Log.php'; //include_once 'class/Accounts.php'; //include_once 'class/SelectCtrl.php'; include_once "../simantz/class/datepicker/class.datepicker.php"; include_once '../simantz/class/fpdf/fpdf.php'; $dp = new datepicker("{$url}"); $dp->dateFormat = 'Y-m-d'; $showDate1 = $dp->show('date1'); $showDate2 = $dp->show('date2'); error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); //$log = new Log(); $s = new XoopsSecurity(); //$ctrl= new SelectCtrl(); $periodfromctrl = $simbizctrl->getSelectPeriod(0, 'N', "", "periodfrom_id"); $periodtoctrl = $simbizctrl->getSelectPeriod(0, 'N', "", "periodto_id"); $uid = $xoopsUser->getVar('uid'); $orgctrl = $ctrl->selectionOrg($uid, $defaultorganization_id, 'N', "", 'N'); echo <<<EOF <script type='text/javascript'> function autofocus(){ } function changereport(){
} else { $followuptype_id = 0; } $bpartnerctrl = $ctrl->getSelectBPartner($bpartner_id, "Y"); $employeectrl = $ctrl->getSelectEmployee($employee_id, "Y"); $followuptypectrl = $ctrl->getSelectFollowUpType($followuptype_id, 'Y'); //global $log ; $nextfollowupdatefrom = $_GET['nextfollowupdatefrom']; $nextfollowupdateto = $_GET['nextfollowupdateto']; $issuedatefrom = $_GET['issuedatefrom']; $issuedateto = $_GET['issuedateto']; $isactive = $_GET['isactive']; eval("\$select{$isactive}=\"Selected='selected'\";"); $o = new FollowUp(); $s = new XoopsSecurity(); $showNextFollowUpDateFrom = $dp->show('nextfollowupdatefrom'); $showNextFollowUpDateTo = $dp->show('nextfollowupdateto'); $showIssueDateFrom = $dp->show('issuedatefrom'); $showIssueDateTo = $dp->show('issuedateto'); $wherestring = "WHERE bp.organization_id={$defaultorganization_id} AND"; if ($employee_id > 0) { $wherestring .= " fl.employee_id={$employee_id} AND"; } if ($bpartner_id > 0) { $wherestring .= " bp.bpartner_id={$bpartner_id} AND"; } if ($followuptype_id > 0) { $wherestring .= " fl.followuptype_id={$followuptype_id} AND"; } if ($isactive != 'n') { $wherestring .= " fl.isactive={$isactive} AND";
if (empty($_POST['fecha']) and empty($_POST['ai']) and empty($_POST['auditor1']) and empty($_POST['auditor2']) and empty($_POST['auditor3']) and empty($_POST['docum']) and empty($_POST['trabajador1']) and empty($_POST['trabajador2']) and empty($_POST['trabajador3']) and empty($_POST['servicio1']) and empty($_POST['servicio2']) and empty($_POST['vehiculos']) and empty($_POST['obstrat']) and empty($_POST['obscal']) and empty($_POST['obsalmac']) and empty($_POST['obscompras']) and empty($_POST['obsformac']) and empty($_POST['obsdocum']) and empty($_POST['obslegio'])) { echo '<form action="" method="POST">'; echo '<table class="print" style="width:80%" summary="Modificar auditorías">'; echo '<caption>'; echo AUDITORIAS_ANADIR_AUDITORIA; echo '</caption>'; echo '<tbody>'; echo '<tr>'; echo '<th>'; echo GENERAL_FECHA; echo '</th>'; echo '<td><input input type="text" id="date" class="inputfecha" name="fecha" value="">'; ?> <input type="button" value="::" onclick="<?php echo $db->show("date"); ?> "> <?php echo '</td>'; echo '</tr>'; echo '<tr>'; echo '<th>'; echo AUDITORIAS_NUMERO_AUDITORIA; echo '</th>'; echo '<td><input class="inputchico" name="ai" value=""></td>'; echo '</tr>'; echo '<tr>'; echo '<th>'; echo AUDITORIAS_AUDITOR;
$islecturer = $_POST['islecturer']; $isovertime = $_POST['isovertime']; $isfulltime = $_POST['isfulltime']; $issalesrepresentative = $_POST['issalesrepresentative']; if (isset($_POST['isactive'])) { $isactive = $_POST['isactive']; } else { $isactive = $_GET['isactive']; } $o->organization_id = $_POST['organization_id']; $o->description = $_POST['description']; $o->defaultlevel = $_POST['defaultlevel']; $o->createdby = $xoopsUser->getVar('uid'); $o->updatedby = $xoopsUser->getVar('uid'); $o->isAdmin = $xoopsUser->isAdmin(); $o->dobdatectrl = $dp->show("employee_dob"); $o->confirmdatectrl = $dp->show("employee_confirmdate"); $o->joindatectrl = $dp->show("employee_joindate"); $o->disciplinedatectrl = $dp->show("disciplineline_date"); $o->activitydatefromctrl = $dp->show("activityline_datefrom"); $o->activitydatetoctrl = $dp->show("activityline_dateto"); if (isset($_POST['issearch'])) { $o->issearch = $_POST['issearch']; } else { $o->issearch = $_GET['issearch']; } if ($isactive == "1" || $isactive == "on") { $o->isactive = 1; } else { if ($isactive == "null") { $o->isactive = "null";
* To change this template, choose Tools | Templates * and open the template in the editor. */ include "system.php"; error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); include "../class/LoginHistory.php"; include "../class/datepicker/class.datepicker.php"; $url = XOOPS_URL . "/modules/simantz"; $o = new LoginHistory(); $dp = new datepicker($url); $dp->dateFormat = 'Y-m-d'; $action = $_POST['action']; $o->activity = $_POST['activity']; $o->datefrom = $_POST['datefrom']; $o->dateto = $_POST['dateto']; $o->showcalendarfrom = $dp->show("datefrom"); $o->showcalendarto = $dp->show("dateto"); if (isset($_POST['user_id'])) { $o->user_id = $_POST['user_id']; } else { $o->user_id; } switch ($action) { case "search": $o->showSearchForm(); $wherestring = $o->genWhereString($o->user_id, $o->activity, $o->datefrom, $o->dateto, $action); $o->showTable($wherestring, "ORDER BY e.eventdatetime DESC"); break; case "delete": $wherestring = $o->genWhereString($o->user_id, $o->activity, $o->datefrom, $o->dateto, $action); if ($o->deleteEventRecord($wherestring)) {
$o->updatedby = $o->createdby; $trans->createdby = $o->createdby; $trans->updatedby = $trans->createdby; $trans->linedebitamt = $_POST['linedebitamt']; $trans->linetrans_id = $_POST['linetrans_id']; $trans->linecreditamt = $_POST['linecreditamt']; $trans->linedocument_no = $_POST['linedocument_no']; $trans->linedocument_no2 = $_POST['linedocument_no2']; $trans->linedesc = $_POST['linedesc']; $trans->lineaccounts_id = $_POST['lineaccounts_id']; $trans->linebpartner_id = $_POST['linebpartner_id']; $trans->linetranstype = $_POST['linetranstype']; $trans->linetrans_id = $_POST['linetrans_id']; $trans->linedel = $_POST['linedel']; $trans->maxlineno = $_POST['maxlineno']; $o->showcalendar = $dp->show("batchdate"); $trans->defaultbpartner_id = $_POST['defaultbpartner_id']; $trans->defaultaccountsref_id = $_POST['defaultaccountsref_id']; $trans->defaultbpartnerref_id = $_POST['defaultbpartnerref_id']; $trans->defaultline = $_POST['defaultline']; $trans->refamtvaluedebit = $_POST['refamtvaluedebit']; $trans->refamtvaluecredit = $_POST['refamtvaluecredit']; if ($trans->defaultaccounts_id == "") { $trans->defaultaccounts_id = 0; } if ($trans->defaultbpartner_id == "") { $trans->defaultbpartner_id = 0; } if ($trans->defaultaccountsref_id == "") { $trans->defaultaccountsref_id = 0; }
$o->paymentvoucher_no = $_POST['paymentvoucher_no']; $o->chequeno = $_POST['chequeno']; $o->amt = $_POST['amt']; $o->originalamt = $_POST['originalamt']; $o->paidto = $_POST['paidto']; $o->batch_id = $_POST['batch_id']; $o->accountsfrom_id = $_POST['accountsfrom_id']; //$o->accountsto_id=$_POST['accountsto_id']; $o->exchangerate = $_POST['exchangerate']; $o->paymentvoucher_date = $_POST['paymentvoucher_date']; $o->paymentvoucher_type = $_POST['paymentvoucher_type']; $o->preparedby = $_POST['preparedby']; $o->isAdmin = $xoopsUser->isAdmin(); $o->createdby = $xoopsUser->getVar('uid'); $o->updatedby = $xoopsUser->getVar('uid'); $o->showCalendar = $dp->show('paymentvoucher_date'); $o->showDateFrom = $dp->show('datefrom'); $o->showDateTo = $dp->show('dateto'); $chkAddNew = $_POST['chkAddNew']; $pl->linepaymentvoucherline_id = $_POST['linepaymentvoucherline_id']; $pl->linesubject = $_POST['linesubject']; $pl->lineamt = $_POST['lineamt']; $pl->linechequeno = $_POST['linechequeno']; $pl->lineaccounts_id = $_POST['lineaccounts_id']; $pl->linebpartner_id = $_POST['linebpartner_id']; $pl->linedescription = $_POST['linedescription']; $pl->linedel = $_POST['linedel']; $chkAddNew = $_POST['chkAddNew']; $o->addpaymentvoucherlineqty = $_POST['addpaymentvoucherlineqty']; if ($iscomplete == 1 or $iscomplete == "on") { $o->iscomplete = 1;
array(2000, date("Y") - 1, 1), // and also any year between 1990 and 1998 array(1990, 1998, 1) ); // notice that you now have a select box for years! ?> <input type="text" id="date"> <-- also note below that we make current year minus 1 the default selected year because the current year not being in the selectable list, 1990 would've been the year selected by default --> <input type="button" value="..." onclick="<?=$dp->show("date", date("m") , date("Y") - 1)?>"> </pre> <p>Click on the button to see it work</p> <input type="text" id="date"> <input type="button" value="..." onclick="<?php echo $dp->show("date", date("m"), date("Y") - 1); ?> "> </body> </html>
$isactive = "null"; } else { $isactive = 0; } } $sessionpost_name = $_POST['sessionpost_name']; $yearpost_name = $_POST['yearpost_name']; $coursepost_name = $_POST['coursepost_name']; //$semesterpost_name=$_POST['semesterpost_name']; $subjectpost_name = $_POST['subjectpost_name']; $total_outstandingline = $_POST['total_outstandingline']; $total_previousoutstandingline = $_POST['total_previousoutstandingline']; $studentline_id = $_POST['studentline_id']; $start_date = $_POST['start_date']; $end_date = $_POST['end_date']; $startctrl = $dp->show("start_date"); $endctrl = $dp->show("end_date"); $studentpayment_categorypost = $_POST['studentpayment_category']; $studentpayment_typepost = $_POST['studentpayment_type']; if ($studentpayment_categorypost == "I") { $studentpayment_categoryname = "By Invoice"; } else { if ($studentpayment_categorypost == "O") { $studentpayment_categoryname = "Others"; } } if ($studentpayment_typepost == "C") { $studentpayment_typename = "Cash"; } else { if ($studentpayment_typepost == "Q") { $studentpayment_typename = "Cheque";
} $token = $_POST['token']; $o->functiontype = $_POST["functiontype"]; $o->activitysummary_name = $_POST["activitysummary_name"]; $o->filename = $_POST['filename']; $isactive = $_POST['isactive']; $o->seqno = $_POST['seqno']; $o->createdby = $xoopsUser->getVar('uid'); $o->updatedby = $xoopsUser->getVar('uid'); $o->issearch = $_POST["issearch"]; if ($isactive == "Y" or $isactive == "on") { $o->isactive = 'Y'; } else { $o->isactive = 'N'; } $o->showcalendar1 = $dp->show("datefrom"); $o->showcalendar2 = $dp->show("dateto"); $o->organization_id = $_POST['organization_id']; $o->table_name = $_POST['table_name']; $o->uid = $_POST['uid']; $o->datefrom = $_POST['datefrom']; $o->dateto = $_POST['dateto']; $o->activitytype = $_POST['activitytype']; if ($o->organization_id == "") { $o->organization_id = $defaultorganization_id; } if ($uid == "") { $uid = 0; } $userid = $xoopsUser->getVar('uid'); $o->orgctrl = $ctrl->selectionOrg($userid, $o->organization_id);
$action = $_GET['action']; $o->debitcreditnote_id = $_GET["debitcreditnote_id"]; } else { $action = ""; } $token = $_POST['token']; $o->document_no = $_POST["document_no"]; $o->debitcreditnote_prefix = $_POST["debitcreditnote_prefix"]; $o->documenttype = $_POST['documenttype']; $o->debitcreditnote_no_from = $_POST["debitcreditnote_no_from"]; $o->debitcreditnote_no_to = $_POST["debitcreditnote_no_to"]; $o->document_date = $_POST['document_date']; $o->document_datefrom = $_POST['document_datefrom']; $o->document_dateto = $_POST['document_dateto']; $o->organization_id = $_POST['organization_id']; $o->showcalendar = $dp->show("document_date"); $o->showcalendarfrom = $dp->show("document_datefrom"); $o->showcalendarto = $dp->show("document_dateto"); $o->createdby = $xoopsUser->getVar('uid'); $o->updatedby = $xoopsUser->getVar('uid'); $o->bpartner_id = $_POST['bpartner_id']; $o->ref_no = $_POST['ref_no']; $o->currency_id = $_POST['currency_id']; $o->exchangerate = $_POST['exchangerate']; $o->amt = $_POST['amt']; $o->originalamt = $_POST['originalamt']; $o->itemqty = $_POST['itemqty']; $o->lineqty = $_POST['lineqty']; $o->remarks = $_POST['remarks']; $o->description = $_POST['description']; $o->bpartneraccounts_id = $_POST['bpartneraccounts_id'];
require "../class.datepicker.php"; // instantiate the object $dp=new datepicker(); // allow selection of time also $dp->enableTimePicker = true; ?> <input type="text" id="date"> <-- we're showing the current month of the current year and also have the current time preselected --> <input type="button" value="..." onclick="<?=$dp->show("date", date("m") , date("Y"), date("H"), date("i"))?>"> </pre> <p>Click on the button to see it work</p> <input type="text" id="date"> <input type="button" value="..." onclick="<?php echo $dp->show("date", date("m"), date("Y"), date("H"), date("i")); ?> "> </body> </html>