/** * [__construct description] * * @method __construct * @author Ken Auberry <*****@*****.**> */ public function __construct() { parent::__construct(); $this->load->model('Reporting_model', 'rep'); $this->load->library('EUS', '', 'eus'); $this->load->helper(array('network', 'file_info', 'inflector', 'time', 'item', 'search_term', 'cookie')); $this->last_update_time = get_last_update(APPPATH); $this->accepted_object_types = array('instrument', 'user', 'proposal'); $this->accepted_time_basis_types = array('submit_time', 'create_time', 'modified_time'); $this->local_resources_folder = $this->config->item('local_resources_folder'); }
/** * Constructor * * Defines the base set of scripts/CSS files for every * page load */ public function __construct() { parent::__construct(); $this->load->model('status_model', 'status'); $this->load->model('Myemsl_model', 'myemsl'); $this->load->model('Cart_model', 'cart'); $this->load->helper(array('inflector', 'item', 'url', 'opwhse_search', 'form', 'network')); $this->load->library(array('table')); $this->status_list = array(0 => 'Submitted', 1 => 'Received', 2 => 'Processing', 3 => 'Verified', 4 => 'Stored', 5 => 'Available', 6 => 'Archived'); $this->valid_search_term_types = array(); $this->last_update_time = get_last_update(APPPATH); $this->page_data['script_uris'] = array('/resources/scripts/spinner/spin.min.js', '/resources/scripts/fancytree/jquery.fancytree-all.js', '/resources/scripts/jquery-crypt/jquery.crypt.js', '/resources/scripts/myemsl_file_download.js', '/project_resources/scripts/status_common.js', '/resources/scripts/select2-4/dist/js/select2.js', '/resources/scripts/moment.min.js'); $this->page_data['css_uris'] = array('/resources/scripts/fancytree/skin-lion/ui.fancytree.min.css', '/resources/stylesheets/status.css', '/resources/stylesheets/status_style.css', '/resources/scripts/select2-4/dist/css/select2.css', '/resources/stylesheets/file_directory_styling.css', '/resources/stylesheets/bread_crumbs.css'); }
$tweet = stripslashes($_REQUEST['tweet_data']); header("Content-type: text/javascript"); if ($dm == "false") { $rsp = send_tweet($tw_user, $tw_pass, $tweet, $reply_to); echo $rsp; } else { //send a direct message $rsp = send_dm($tw_user, $tw_pass, $tweet, $reply_to_name); echo $rsp; } } elseif ($func == 'get_last_update') { $panel_id = $_REQUEST['panel']; $tw_user = $_SESSION['panels'][$panel_id]->user; $tw_pass = $_SESSION['panels'][$panel_id]->pass; header("Content-type: text/javascript"); echo get_last_update($tw_user, $tw_pass); } elseif ($func == 'get_user_tweets') { $user = $_REQUEST['user']; header("Content-type: text/javascript"); echo get_user_tweets($user); } elseif ($func == 'toggle_favorite') { $panel_id = $_REQUEST['panel']; $tw_user = $_SESSION['panels'][$panel_id]->user; $tw_pass = $_SESSION['panels'][$panel_id]->pass; $fav_id = $_REQUEST['tweet_id']; $fav = $_REQUEST['favorite']; header("Content-type: text/javascript"); echo toggle_favorite($tw_user, $tw_pass, $fav_id, $fav); } elseif ($func == 'follow_user') { $panel_id = $_REQUEST['panel']; $tw_user = $_SESSION['panels'][$panel_id]->user;
} ?> </select> </div> <div class="col-xs-1" style="margin-top:10">คน</div> </div> <fieldset class="scheduler-border" id="personal_fieldset"> <legend class="scheduler-border"><h4>ข้อมูลส่วนตัว</h4></legend> <div class="row"> <input type="text" name="data_id" id="data_id" style="visibility:hidden" value="<?php echo $id; ?> "> <input type="text" name="time_old" id="time_old" style="visibility:hidden" value="<?php echo get_last_update($id); ?> "> <div class="col-xs-2"> <h5>คำนำหน้า</h5> </div> <div class="col-xs-2" style="margin-top: 5px"> <select class="form-control" autofocus name="title" disabled=""> <?php $sql = mysql_query("SELECT * FROM `title` WHERE 1"); while ($rs = mysql_fetch_array($sql)) { if ($rs['ID'] == $person['TITLE_ID']) { echo "<option value='" . $rs["ID"] . "' selected='selected'>" . $rs["TITLE_NAME"] . " </option>"; } else { echo "<option value='" . $rs["ID"] . "'>" . $rs["TITLE_NAME"] . " </option>"; }
<th>Solicitado</th> <th>Asunto</th> <th>Fecha apertura</th> <th>Fecha ultima actualizacion</th> </tr> </thead> <tbody> <tr> <?php foreach ($outsiders as $outsider) { echo '<tr class="boton_fila" id="' . $outsider['id_solicitud'] . '">'; echo '<td>' . $outsider['departamento'] . '</td>'; echo '<td>' . $outsider['encargado'] . '</td>'; echo '<td>' . $outsider['cliente'] . '</td>'; echo '<td>' . $outsider['solicitante'] . '</td>'; echo '<td>' . $outsider['asunto'] . '</td>'; $fecha_tramite = imprimir_fecha($outsider['fecha_inicio']); echo '<td>' . $fecha_tramite . '</td>'; $fecha_ultima_actualizacion = imprimir_fecha(get_last_update($outsider['id_solicitud'])); echo '<td>' . $fecha_ultima_actualizacion . '</td>'; echo '</tr>'; } ?> </tbody> </table> </div> <?php include "footer.php"; write_footer('solicitudes_pendientes');
<?php include 'db_connect.php'; connect_database(); if (isset($_POST['registerall'])) { $old = $_POST['registerall']; $new = get_numall_register(); if ($old != $new) { echo "reload"; } } if (isset($_POST['id'])) { $id = $_POST["id"]; $time_old = $_POST["time"]; $new_time = get_last_update($id); if ($new_time != $time_old) { echo "reload"; } } if (isset($_POST['number_old'])) { $number_old = $_POST['number_old']; $number = get_num_register(); if ($number != $number_old) { echo "reload"; } }