query("SELECT * FROM `cms` ORDER BY `type`,`name`"); while($r = $q->fetch_assoc()) { $cms_pages[$r['name']] = $r['head']; } $action = ''; if(array_key_exists('action', $_POST)) { $action = $_POST['action']; } switch($action) { case 'get': $name = $_POST['name']; if(!array_key_exists($name, $cms_pages)) { exit(); } $q = $mysqli->query("SELECT `text`,`desc`,`type` FROM cms WHERE name='$name'"); $r = $q->fetch_row(); $vals = array(); $vals['text'] = $r[0]; $vals['desc'] = $r[1]; form_ajax_response(array('status'=>0, 'val'=>$vals)); exit(); case 'save': $name = $_POST['name']; if(!array_key_exists($name, $cms_pages)) { exit(); } $text = ''; post_text($text,'text'); $text = $mysqli->real_escape_string($text); $mysqli->real_query("UPDATE cms SET `text`='$text', `language`='en', `use`='1' WHERE `name`='$name'"); form_ajax_response(0); exit(); } sfiab_page_begin($u, "Edit Page Text", $page_id); ?>

Page Text and Signature Form Text

query("SELECT `text`,`desc` FROM cms WHERE name='main'"); $r = $q->fetch_row(); $text = $r[0]; $desc = $r[1]; form_begin($form_id, 'c_config_cms.php'); $v = 'main'; form_select($form_id, 'name', "Page/Item", $cms_pages, $v); ?>

Email Replacement Keys


Download Sample Signature Form / Electronic Signature Pages

$c) { if($c['max_grade'] > $max_grade) { $max_grade = $c['max_grade']; $max_cat = (int)$c['cat_id']; } } $sig_form_id = $page_id.'_sig_form'; form_begin($sig_form_id, 's_signature.php', false, false); form_hidden($sig_form_id, 'pdf', 1); form_radio_h($sig_form_id, 'cat_id', "Category", $cats, $max_cat); $d = 1; form_radio_h($sig_form_id, 'num_students', "Number of Students", array(1=>'1', 2=>'2') , $d); form_button($sig_form_id, 'sample', "Download Sample Paper Signature Form"); form_end($sig_form_id); ?>
View Sample Student Electronic Signature Page View Sample Parent/Guardian Electronic Signature Page View Sample Teacher Electronic Signature Page