function recover_password() { $email = $this->input->post('email'); $result = $this->email_model->password_reset_email($email); //SEND EMAIL ACCOUNT OPENING EMAIL if ($result == true) { $this->session->set_flashdata('flash_message', get_phrase('password_sent')); } else { if ($result == false) { $this->session->set_flashdata('flash_message', get_phrase('account_not_found')); } } redirect(base_url(), 'refresh'); }
<option value="unpaid"><?php echo get_phrase('unpaid'); ?> </option> </select> </div> </div> <div class="control-group"> <label class="control-label"><?php echo get_phrase('date'); ?> </label> <div class="controls"> <input type="text" class="datepicker fill-up" name="date"/> </div> </div> </div> <div class="form-actions"> <button type="submit" class="btn btn-gray"><?php echo get_phrase('add_invoice'); ?> </button> </div> </form> </div> </div> <!----CREATION FORM ENDS---> </div> </div> </div>
?> </div></th> <th><div><?php echo get_phrase('description'); ?> </div></th> <th><div><?php echo get_phrase('creation_timestamp'); ?> </div></th> <th><div><?php echo get_phrase('status'); ?> </div></th> <th><div><?php echo get_phrase('option'); ?> </div></th> </tr> </thead> <tbody> <?php $count = 1; foreach ($invoices as $row) { ?> <tr> <td><?php echo $count++; ?> </td> <td><?php
" href="<?php echo $row2['twitter_profile_link']; ?> " style="color:#bbb;" target="_blank"> <i class="entypo-twitter"></i> </a> <?php } ?> <?php if ($row2['linkedin_profile_link'] != '') { ?> <a class="tooltip-primary" data-toggle="tooltip" data-placement="top" data-original-title="<?php echo get_phrase('linkedin_profile'); ?> " href="<?php echo $row2['linkedin_profile_link']; ?> " style="color:#bbb;" target="_blank"> <i class="entypo-linkedin"></i> </a> <?php } ?> </td> </tr> </table>
?> </option> </select> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label"><?php echo get_phrase('date'); ?> </label> <div class="col-sm-6"> <input type="text" class="datepicker form-control" name="timestamp"/> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-5"> <button type="submit" class="btn btn-info"><?php echo get_phrase('add_expense'); ?> </button> </div> </div> <?php echo form_close(); ?> </div> </div> </div> </div>
<!-- DELETION LINK --> <li> <a href="#" onclick="confirm_modal('<?php echo base_url(); ?> index.php?staff/accounting_expense/delete/<?php echo $row['payment_id']; ?> ' , '<?php echo base_url(); ?> index.php?staff/reload_expense_list');" > <i class="entypo-trash"></i> <?php echo get_phrase('delete'); ?> </a> </li> </ul> </div> </td> </tr> <?php } ?> </tbody> </table>
function study_material($task = "", $document_id = "") { if ($this->session->userdata('student_login') != 1) { $this->session->set_userdata('last_page', current_url()); redirect(base_url(), 'refresh'); } $data['study_material_info'] = $this->crud_model->select_study_material_info_for_student(); $data['page_name'] = 'study_material'; $data['page_title'] = get_phrase('study_material'); $this->load->view('backend/index', $data); }
echo get_phrase('language'); ?> </label> <div class="col-sm-5"> <input type="text" class="form-control" name="language" data-validate="required" data-message-required="<?php echo get_phrase('value_required'); ?> "/> </div> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-5"> <button type="submit" class="btn btn-info"><?php echo get_phrase('add_language'); ?> </button> </div> </div> <?php echo form_close(); ?> </div> </div> <!----LANGUAGE ADDING FORM ENDS---> </div> </div> </div>
?> > <?php echo $row2['teacher_code']; ?> </option> <?php } ?> </select> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-5"> <button type="submit" class="btn btn-info"><?php echo get_phrase('edit_subject'); ?> </button> </div> </div> </form> </div> </div> </div> </div> <?php } ?>
$system_currency_id = $this->db->get_where('settings', array('type' => 'system_currency_id'))->row()->description; $currency = $this->db->get_where('currency', array('currency_id' => $system_currency_id))->row()->currency_symbol; echo $currency . $row['amount']; ?> </td> </tr> </tbody> </table> <table width="100%" border="0"> <tr> <td colspan="2"><hr style="margin:0px;"></td> </tr> <tr> <td align="right" width="80%"><h4><?php echo get_phrase('grand_total'); ?> :</h4></td> <td align="right"><h4><?php echo $currency . $row['amount']; ?> </h4></td> </tr> </table> </div> <?php } ?> <script>
<div class="form-group"> <label class="col-sm-3 control-label"><?php echo get_phrase('comment'); ?> </label> <div class="col-sm-5 controls"> <input type="text" class="form-control" name="comment" value="<?php echo $row['comment']; ?> "/> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-5"> <button type="submit" class="btn btn-info"><?php echo get_phrase('edit_grade'); ?> </button> </div> </div> </form> </div> </div> </div> </div> <?php } ?>
} } ?> <table class="table table-bordered" > <thead> <tr> <td><?php echo get_phrase('student'); ?> </td> <td><?php echo get_phrase('mark_obtained'); ?> (out of 100)</td> <td><?php echo get_phrase('attendance'); ?> </td> <td></td> </tr> </thead> <tbody> <?php $students = $this->crud_model->get_students($class_id); foreach ($students as $row) { $verify_data = array('exam_id' => $exam_id, 'class_id' => $class_id, 'subject_id' => $subject_id, 'student_id' => $row['student_id']); $query = $this->db->get_where('mark', $verify_data); $marks = $query->result_array(); foreach ($marks as $row2) {
<div class="col-sm-7"> <div class="checkbox checkbox-replace color-blue"> <input type="checkbox" name="notify_check" id="notify" value="yes" checked> <label> <?php echo get_phrase('notify_staff'); ?> </label> </div> </div> </div> <div class="form-group"> <div class="col-sm-offset-4 col-sm-6"> <button type="submit" class="btn btn-info" id="submit-button"> <?php echo get_phrase('assign_staff'); ?> </button> <span id="preloader-form"></span> </div> </div> <?php echo form_close(); ?> </div> </div> </div> </div> <div class="progress progress-striped active" id="progress_bar_holder" style="visibility:hidden;"> <div class="progress-bar progress-bar-info" id="progress_bar" style="width:0%; "> </div>
Action <span class="caret"></span> </button> <ul class="dropdown-menu dropdown-default pull-right" role="menu"> <!-- VIEW LINK --> <li> <a href="<?php echo base_url(); ?> index.php?staff/support_ticket_view/<?php echo $row['ticket_code']; ?> "> <i class="entypo-target"></i> <?php echo get_phrase('view_ticket'); ?> </a> </li> </ul> </div> </td> </tr> <?php } ?> </tbody> </table>
</option> <option value="student"><?php echo get_phrase('student'); ?> </option> <option value="parent"><?php echo get_phrase('parent'); ?> </option> </select> <input type="email" name="email" placeholder="<?php echo get_phrase('email'); ?> " style="margin-bottom: 0px !important;"/> <input type="submit" value="<?php echo get_phrase('reset'); ?> " class="btn btn-blue btn-medium"/> <?php echo form_close(); ?> </div> <div class="modal-footer"> <button class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> <!-----------password reset form ------> </body> </html>
</td>--> <td> <!--View Notice--> <a href="#" class="btn btn-success btn-sm"onclick="showAjaxModal('<?php echo base_url(); ?> index.php?modal/popup/modal_notice_view/<?php echo $row['notice_id']; ?> ');"> <i class="entypo-user"></i> <?php echo get_phrase('Read More'); ?> </a> </td> </tr> <?php } ?>
echo 'selected'; } ?> > <?php echo get_phrase('green'); ?> </option> </select> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-7"> <button type="submit" class="btn btn-info" id="submit-button"><?php echo get_phrase('submit'); ?> </button> <span id="preloader-form"></span> </div> </div> <?php echo form_close(); ?> </div> </div> </div> </div> <?php } ?>
?> </option> <?php } ?> </select> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-5"> <button type="submit" class="btn btn-info"><?php echo get_phrase('add_section'); ?> </button> </div> </div> <?php echo form_close(); ?> </div> </div> </div> </div>
<?php $current_project = $this->db->get_where('project', array('project_code' => $project_code))->result_array(); foreach ($current_project as $row) { ?> <div class="col-md-9"> <!-- project description --> <div class="panel panel-primary" data-collapsed="0"> <div class="panel-heading"> <div class="panel-title"><?php echo get_phrase('project_overview'); ?> </div> </div> <div class="panel-body"> <p> <?php echo $row['description']; ?> </p> <hr /> <p style="font-size: 10px;"> <i class="entypo-calendar" style="color: #ccc;"></i> <?php echo $row['timestamp_start'];
echo get_phrase('edit_profile'); ?> </span> </a> </li> <li> <a href="<?php echo base_url(); ?> index.php?<?php echo $account_type; ?> /manage_profile"> <i class="entypo-key"></i> <span><?php echo get_phrase('change_password'); ?> </span> </a> </li> </ul> </li> </ul> <ul class="list-inline links-list pull-right"> <!-- Language Selector <li class="dropdown language-selector"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-close-others="true">
> <?php echo $row2['name']; ?> </option> <?php } ?> </select> </div> </div> <div class="form-group"> <div class="col-sm-offset-4 col-sm-7"> <button type="submit" class="btn btn-info" id="submit-button"><?php echo get_phrase('update'); ?> </button> <span id="preloader-form"></span> </div> </div> <?php echo form_close(); ?> </div> </div> </div> </div> <?php } ?>
?> <!-- ACCOUNT --> <li class="<?php if ($page_name == 'manage_profile') { echo 'active'; } ?> "> <a href="<?php echo base_url(); ?> index.php?staff/manage_profile"> <i class="entypo-lock"></i> <span><?php echo get_phrase('account'); ?> </span> </a> </li> </ul> </div>
?> </label> <div class="col-sm-5"> <select name="status" class="form-control" style="width:100%;"> <option value="available"><?php echo get_phrase('available'); ?> </option> <option value="unavailable"><?php echo get_phrase('unavailable'); ?> </option> </select> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-5"> <button type="submit" class="btn btn-info"><?php echo get_phrase('add_book'); ?> </button> </div> </div> </form> </div> </div> <!----CREATION FORM ENDS---> </div> </div> </div>
</div> </div> </td> </tr> <tr> <div id="load_dados_turma"> </div> </tr> </table> <table> <tr> <td> <div class="control-group"> <label class="control-label"><?php echo get_phrase('nome'); ?> </label> <div class="controls"> <input type="text" onkeypress="this.value.toUpperCase();" name="aluno_busca" id="aluno_busca" /> </div> </div> </td> </tr> </table> <table> <tr> <td> <input type="button" value="PESQUISAR" class="btn btn-blue btn-small" onclick="buscar_paginacao();"> </td>
</div> </div> </div> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label"><?php echo get_phrase('date'); ?> </label> <div class="col-sm-5"> <input type="text" class="datepicker form-control" name="create_timestamp"/> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-5"> <button type="submit" class="btn btn-info"><?php echo get_phrase('add_notice'); ?> </button> </div> </div> </form> </div> </div> <!----CREATION FORM ENDS---> </div> </div> </div>
?> " class="validate[required]" name="ano"/> </div> </div> <div class="control-group"> <label class="control-label"><?php echo get_phrase('semestre'); ?> </label> <div class="controls"> <input type="text" value="<?php echo $row['semestre']; ?> " class="validate[required]" name="semestre"/> </div> </div> </div> <div class="form-actions"> <button type="submit" class="btn btn-gray"><?php echo get_phrase('editar_periodo_letivo'); ?> </button> </div> </form> <?php } ?> </div> </div>
function manage_profile($param1 = '', $param2 = '', $param3 = '') { if ($this->session->userdata('patient_login') != 1) { redirect(base_url() . 'index.php?login', 'refresh'); } if ($param1 == 'update_profile_info') { $data['name'] = $this->input->post('name'); $data['email'] = $this->input->post('email'); $data['address'] = $this->input->post('address'); $data['phone'] = $this->input->post('phone'); $data['sex'] = $this->input->post('sex'); $data['birth_date'] = $this->input->post('birth_date'); $data['age'] = $this->input->post('age'); $data['blood_group'] = $this->input->post('blood_group'); $this->db->where('patient_id', $this->session->userdata('patient_id')); $this->db->update('patient', $data); $this->session->set_flashdata('flash_message', get_phrase('profile_updated')); redirect(base_url() . 'index.php?patient/manage_profile/', 'refresh'); } if ($param1 == 'change_password') { $data['password'] = $this->input->post('password'); $data['new_password'] = $this->input->post('new_password'); $data['confirm_new_password'] = $this->input->post('confirm_new_password'); $current_password = $this->db->get_where('patient', array('patient_id' => $this->session->userdata('patient_id')))->row()->password; if ($current_password == $data['password'] && $data['new_password'] == $data['confirm_new_password']) { $this->db->where('patient_id', $this->session->userdata('patient_id')); $this->db->update('patient', array('password' => $data['new_password'])); $this->session->set_flashdata('flash_message', get_phrase('password_updated')); } else { $this->session->set_flashdata('flash_message', get_phrase('password_mismatch')); } redirect(base_url() . 'index.php?patient/manage_profile/', 'refresh'); } $page_data['page_name'] = 'manage_profile'; $page_data['page_title'] = get_phrase('manage_profile'); $page_data['edit_profile'] = $this->db->get_where('patient', array('patient_id' => $this->session->userdata('patient_id')))->result_array(); $this->load->view('index', $page_data); }
</label> <div class="col-sm-5"> <input type="text" class="datepicker form-control" name="create_timestamp" value="<?php echo date('m/d/Y', $row['create_timestamp']); ?> "/> </div> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-5"> <button type="submit" class="btn btn-info"><?php echo get_phrase('edit_notice'); ?> </button> </div> </div> </form> <?php } ?> </div> </div> <script> $('.jqte-test').jqte(); // settings of status
</select> </div> </div> </td> </tr> </tbody> </table> </div> <div class="form-actions"> <button type="submit" class="btn btn-gray"><?php echo get_phrase('avançar'); ?> </button> </div> </form> </div> </div> <!----CREATION FORM ENDS---> </div> </div> </div> <script> function readURL(input) { if (input.files && input.files[0]) {
if ($class_id == "") { ?> <center> <div class="span5" style="float:none !important;"> <div class="box"> <div class="box-header"> <span class="title"> <i class="icon-info-sign"></i> Please select a class to manage student.</span> </div> <div class="box-content padded"> <br /> <select name="class_id" onchange="window.location='<?php echo base_url(); ?> index.php?admin/student/'+this.value"> <option value=""><?php echo get_phrase('select_a_class'); ?> </option> <?php $classes = $this->db->get('class')->result_array(); foreach ($classes as $row) { ?> <option value="<?php echo $row['class_id']; ?> " <?php if ($class_id == $row['class_id']) { echo 'selected'; } ?>