Jump to content

mythri

Members
  • Posts

    85
  • Joined

  • Last visited

Everything posted by mythri

  1. Hi, I am customising a opensource phreebookerp. I am trying to replace image icons for actions like Save, Edit, Print...etc. Instead of that i want to use buttons. But am not able to do it. Can somebody guide me how exactly i should do it and what is the logic behind it. Here is the code to (Existing to generate image icon) function add_icon($name, $params = '', $order = 98) { // adds some common icons, per request switch ($name) { case 'back': case 'previous': $image = 'actions/go-previous.png'; $text = TEXT_BACK; break; case 'continue': case 'next': $image = 'actions/go-next.png'; $text = TEXT_CONTINUE; break; case 'copy': $image = 'label1 label1-sm label1-info'; $text = TEXT_COPY; break; case 'edit': $image = 'actions/edit-find-replace.png'; $text = TEXT_EDIT; break; case 'email': $image = 'apps/internet-mail.png'; $text = GEN_EMAIL; break; case 'export': $image = 'actions/format-indent-more.png'; $text = TEXT_EXPORT; break; case 'export_csv': $image = 'mimetypes/x-office-spreadsheet.png'; $text = TEXT_EXPORT_CSV; break; case 'finish': $image = 'actions/document-save.png'; $text = TEXT_FINISH; break; case 'import': $image = 'actions/format-indent-less.png'; $text = TEXT_IMPORT; break; case 'new': $image = 'actions/document-new.png'; $text = TEXT_NEW; break; case 'recur': $image = 'actions/go-jump.png'; $text = TEXT_RECUR; break; case 'rename': $image = 'label1 label1-sm label1-info'; $text = TEXT_RENAME; break; case 'payment': $image = 'apps/accessories-calculator.png'; $text = TEXT_PAYMENT; break; case 'ship_all': $image = 'mimetypes/package-x-generic.png'; $text = TEXT_SHIP_ALL; break; case 'search': $image = 'actions/system-search.png'; $text = TEXT_SEARCH; break; case 'update': $image = 'apps/system-software-update.png'; $text = TEXT_UPDATE; break; default: $image = 'emblems/emblem-important.png'; $text = $name . ' ICON NOT FOUND'; } if ($image) $this->icon_list[$name] = array('show' => true, 'icon' => $image, 'params' => $params, 'text' => $text, 'order' => $order); } Can anybody help on this?
  2. . You have giving the link of this post only!
  3. Hi, i want to display consolidated marks sheet of students. Format is same as in the attached image I have saved my data like this exam information will be on exam_time_table like in the image (exam_time_table.jpg), Type of exams will be stored in exam_type (exam_type.jpg), subjects will be in subjects table, exams, subject and marks related to each student will be there in student_exam. I can extract the data, but not able to display in this format. I have made format in html, but not able to fit in my data there. Here is the query i am extracting $sql="SELECT student_exam.id as sid, student_exam.student_id, student_exam.enroll_no, student_exam.exam_id, student_exam.subject_id, student_exam.obtained_marks, exam_time_table.exam_name, exam_time_table.class, exam_time_table.section, exam_time_table.total_marks, subjects.subject, exam_type.exam, student.enroll_no, student.stud_name FROM student_exam INNER JOIN exam_time_table ON student_exam.exam_id=exam_time_table.id INNER JOIN subjects ON student_exam.subject_id=subjects.sub_id INNER JOIN exam_type ON exam_time_table.exam_name=exam_type.eid INNER JOIN student ON student_exam.enroll_no=student.enroll_no WHERE exam_time_table.class='".$class."' AND exam_time_table.section='".$section."' AND student_exam.enroll_no='".$enroll_no."'"; Can somebody please let me know how to do it? Please share if you have any tutorials Tables are like in the attachment
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.