public function info_students() { $session = new session_supervisor(); $id = $session->Get_id_user(); $db = new data_base(tpl_students::students(), array(tpl_students::id(), tpl_students::first_name(), tpl_students::last_name(), data_base::select_multiple_table(tpl_college::college(), tpl_college::college() . '.' . tpl_college::id(), tpl_students::students() . '.' . tpl_students::id_college(), tpl_college::name(), tpl_college::college() . '_' . tpl_college::name()), data_base::select_multiple_table(tpl_university::university(), tpl_university::university() . '.' . tpl_university::id(), tpl_students::students() . '.' . tpl_students::id_college(), tpl_university::name(), tpl_university::university() . '_' . tpl_university::name()), data_base::select_multiple_table(tpl_specialty::specialty(), tpl_specialty::specialty() . '.' . tpl_specialty::id(), tpl_students::students() . '.' . tpl_students::id_college(), tpl_specialty::name(), tpl_specialty::specialty() . '_' . tpl_specialty::name())), array(tpl_students::id_supervisor() => $id, tpl_students::status() => 1)); return $db->get_where(); }
?> " data-halign="center" data-sortable="true"> specialty </th> </tr> </thead> </table> </div> </div> </div> </div> <script type="text/javascript"> function operate<?php echo tpl_university::university(); ?> (value, row) { return '<a href="<?php echo site_url('admin/university/view_student/?id='); ?> '+row.<?php echo tpl_university::id(); ?> +'">'+value+'</a>' } </script>
public function count_university() { $db = new data_base(tpl_university::university(), array(tpl_university::id()), array(tpl_university::active() => 1)); return count($db->get_where()); }
?> "/> </div> <div class="form-group"> <label for=""><?php echo tpl_university::address() . ' ' . tpl_university::university(); ?> : </label> <input type="text" class="form-control" id="<?php echo tpl_university::university() . '_' . tpl_university::address() . '_update'; ?> " name="<?php echo tpl_university::university() . '_' . tpl_university::address() . '_update'; ?> "/> </div> <button type="submit" class="btn btn-success" id="update" name="update">Save</button> </form> </br> </br> <div class="" id="result_massages_update"></div> </div> </div> </div> </div>
public function ajax_find_students() { $db = new data_base(tpl_models::models(), array(tpl_models::id(), tpl_models::id_companies(), data_base::select_multiple_table(tpl_students::students(), tpl_students::students() . '.' . tpl_students::id(), tpl_models::models() . '.' . tpl_models::id_student(), tpl_students::first_name(), tpl_students::students() . '_' . tpl_students::first_name()), data_base::select_multiple_table(tpl_students::students(), tpl_students::students() . '.' . tpl_students::id(), tpl_models::models() . '.' . tpl_models::id_student(), tpl_students::last_name(), tpl_students::students() . '_' . tpl_students::last_name()), data_base::select_multiple_table(tpl_supervisor::supervisor(), tpl_supervisor::supervisor() . '.' . tpl_supervisor::id(), data_base::select_multiple_table(tpl_students::students(), tpl_students::students() . '.' . tpl_students::id(), tpl_models::models() . '.' . tpl_models::id_student(), tpl_students::id_supervisor()), tpl_supervisor::name(), tpl_supervisor::supervisor() . '_' . tpl_supervisor::name()), data_base::select_multiple_table(tpl_university::university(), tpl_university::university() . '.' . tpl_university::id(), data_base::select_multiple_table(tpl_students::students(), tpl_students::students() . '.' . tpl_students::id(), tpl_models::models() . '.' . tpl_models::id_student(), tpl_students::id_supervisor()), tpl_university::name(), tpl_university::university() . '_' . tpl_university::name()), data_base::select_multiple_table(tpl_college::college(), tpl_college::college() . '.' . tpl_college::id(), data_base::select_multiple_table(tpl_students::students(), tpl_students::students() . '.' . tpl_students::id(), tpl_models::models() . '.' . tpl_models::id_student(), tpl_students::id_supervisor()), tpl_college::name(), tpl_college::college() . '_' . tpl_college::name()), data_base::select_multiple_table(tpl_specialty::specialty(), tpl_specialty::specialty() . '.' . tpl_specialty::id(), data_base::select_multiple_table(tpl_students::students(), tpl_students::students() . '.' . tpl_students::id(), tpl_models::models() . '.' . tpl_models::id_student(), tpl_students::id_supervisor()), tpl_specialty::name(), tpl_specialty::specialty() . '_' . tpl_specialty::name()), data_base::select_multiple_table(tpl_department::department(), tpl_department::department() . '.' . tpl_department::id(), data_base::select_multiple_table(tpl_students::students(), tpl_students::students() . '.' . tpl_students::id(), tpl_models::models() . '.' . tpl_models::id_student(), tpl_students::id_supervisor()), tpl_department::name(), tpl_department::department() . '_' . tpl_department::name()), data_base::select_multiple_table(tpl_section::section(), tpl_section::section() . '.' . tpl_section::id(), data_base::select_multiple_table(tpl_students::students(), tpl_students::students() . '.' . tpl_students::id(), tpl_models::models() . '.' . tpl_models::id_student(), tpl_students::id_supervisor()), tpl_section::name(), tpl_section::section() . '_' . tpl_section::name())), array(tpl_models::id_companies() => $_GET['id'])); echo json_encode($db->get_where()); }
<th data-field="<?php echo tpl_supervisor::supervisor() . '_' . tpl_supervisor::name(); ?> " data-halign="center" data-sortable="true"> supervisor </th> <th data-field="<?php echo tpl_specialty::specialty() . '_' . tpl_specialty::name(); ?> " data-halign="center" data-sortable="true"> specialty </th> <th data-field="<?php echo tpl_university::university() . '_' . tpl_university::name(); ?> " data-halign="center" data-sortable="true"> university </th> <th data-field="operate" data-formatter="operateFormatter" data-events="operateEvents" data-align="center">Action </th> </tr> </thead> </table> </div>
public function find_university() { $db = new data_base(tpl_university::university(), array(tpl_university::id(), tpl_university::name()), array(tpl_university::active() => 1)); $data = $db->get_where(); $w = ''; foreach ($data as $row) { $w = $w . '<option value="' . $row[tpl_university::id()] . '">' . $row[tpl_university::name()] . '</option>'; } return $w; }
</div> <?php foreach ($lib->info_students() as $row) { ?> <div class="row"> <hr> <h4>Name : <?php echo $row[tpl_students::first_name()] . ' ' . $row[tpl_students::last_name()]; ?> </h4> <h4>Specialty : <?php echo $row[tpl_specialty::specialty() . '_' . tpl_specialty::name()]; ?> </h4> <h4>University : <?php echo $row[tpl_university::university() . '_' . tpl_university::name()]; ?> </h4> <h4>College : <?php echo $row[tpl_college::college() . '_' . tpl_college::name()]; ?> </h4> <table class="table table-bordered"> <thead> <tr> <td>onus name</td> <td>onus description</td> <td>degree name</td>
function operate<?php echo tpl_college::college(); ?> (value, row) { return '<a href="<?php echo site_url('admin/college/view_student/?id='); ?> '+row.<?php echo tpl_supervisor::id_college(); ?> +'">'+value+'</a>' } function operate<?php echo tpl_university::university(); ?> (value, row) { return '<a href="<?php echo site_url('admin/university/view_student/?id='); ?> '+row.<?php echo tpl_supervisor::id_university(); ?> +'">'+value+'</a>' } function operate<?php echo tpl_supervisor::supervisor(); ?>
public function find_all_ajax() { $db = new data_base(tpl_college::college(), array(tpl_college::id(), tpl_college::active(), tpl_college::name(), tpl_college::id_university(), data_base::select_multiple_table(tpl_university::university(), tpl_university::university() . '.' . tpl_university::id(), tpl_college::college() . '.' . tpl_college::id_university(), tpl_university::name(), tpl_university::university() . '_' . tpl_university::name()))); echo json_encode($db->get()); }
<div class="col-sm-6"> <h4>Name : <?php echo $data[tpl_students::first_name()] . ' ' . $data[tpl_students::last_name()]; ?> </h4> <h4>Supervisor : <?php echo $data[tpl_supervisor::supervisor() . '_' . tpl_supervisor::name()]; ?> </h4> <h4>Specialty : <?php echo $data[tpl_specialty::specialty() . '_' . tpl_specialty::name()]; ?> </h4> <h4>University : <?php echo $data[tpl_university::university() . '_' . tpl_university::name()]; ?> </h4> <h4>College : <?php echo $data[tpl_college::college() . '_' . tpl_college::name()]; ?> </h4> </div> <div class="col-sm-6"> <h4>companies : <?php echo $data_co[tpl_companies::companies() . '_' . tpl_companies::name()]; ?> </h4>
" data-cache="false" data-height="400" data-show-refresh="true" data-show-toggle="true" data-show-columns="true" data-pagination="true" data-page-list="[5, 10, 20, 50, 100, 200]" data-search="true" data-flat="true"> <thead> <tr> <th data-field="<?php echo tpl_companies::id(); ?> " data-halign="center" data-sortable="true"> ID</th> <th data-field="<?php echo tpl_companies::name(); ?> " data-halign="center" data-sortable="true"> Name <th data-field="<?php echo tpl_category::category() . '_' . tpl_university::name(); ?> " data-halign="center" data-sortable="true"> Category </th> </tr> </thead> </table> </div> </div> </div> <div class="row"> <div class="col-sm-4"> <h3 class="page-header">Degree</h3> <div class="table-responsive">