echo <<<EOF <script type="text/javascript"> var init_height = screen.height; var init_width = screen.width; if(init_height > 500 && init_width > 500) self.location = "approvallist.php"; if({$userbasicmobileweb}) self.location = "basicmobile.php"; else self.location = "newmobile.php"; </script> EOF; $approvallist = new Approvallist(); $workflowapi = new WorkflowAPI(); $action = $_REQUEST['action']; $day = $_REQUEST['day']; if (!$xoopsUser) { echo <<<EOF \t<div id="checkPage" class="jPintPage IconMenu" > <h1>Welcome To SimEDU System \t\t\t<div class="EditModeInvisible"> \t\t\t\t<a class="BackButton">Back</a> \t\t\t</div> \t\t</h1> <br/><br/> <div class="txtLogin">Please Login</div><br/> <div class="frmLoginMobile"> <form action="../user.php" method="post">
$userbasicmobileweb = "true"; } echo <<<EOF <script type="text/javascript"> var init_height = screen.height; var init_width = screen.width; if(init_height > 500 && init_width > 500) self.location = "approvallist.php"; else if({$userbasicmobileweb}) self.location = "basicmobile.php"; </script> EOF; $approvallist = new Approvallist(); $workflowapi = new WorkflowAPI(); $action = $_REQUEST['action']; $day = $_REQUEST['day']; //$app_para = date("YmdHis", time()) ; switch ($action) { //compulsory action for Workflow API case "next_node": $workflowstatus_id = $_REQUEST['status_node']; $workflowtransaction_id = $_POST['workflowtransaction_id']; $workflowtransaction_feedback = $_REQUEST['workflowtransaction_feedback']; $approvallist->window_workflow = $_REQUEST['window_workflow']; $tablename = $_REQUEST['tablename']; $primarykey_name = $_REQUEST['primarykey_name']; $approvallist->primarykey_value = $_REQUEST['primarykey_value']; $approvallist->person_id = $_REQUEST['person_id'];
<?php include "system.php"; include_once 'class/Approvallist.php'; include_once "../simantz/class/datepicker/class.datepicker.php"; include_once "../simantz/class/WorkflowAPI.inc.php"; error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); $dp = new datepicker("{$url}"); $dp->dateFormat = 'Y-m-d'; //$log = new Log(); $o = new Approvallist(); $s = new XoopsSecurity(); $o->getIncludeFileMenu(); $orgctrl = ""; $action = ""; $o->primarykey_value = 0; if (isset($_POST['action'])) { $action = $_POST['action']; $o->primarykey_value = $_POST["primarykey_value"]; } elseif (isset($_GET['action'])) { $action = $_GET['action']; $o->primarykey_value = $_GET["primarykey_value"]; } else { $action = ""; } $token = $_POST['token']; $o->primarykey_name = $_REQUEST["primarykey_name"]; $o->tablename = $_REQUEST["tablename"]; $o->workflowtransaction_id = $_REQUEST["workflowtransaction_id"]; $o->person_id = $_REQUEST["person_id"]; $o->leave_date = $_POST["leave_date"];