diff --git a/.bzrignore b/.bzrignore index 7b1ec8ca..b0d067e1 100644 --- a/.bzrignore +++ b/.bzrignore @@ -1 +1,2 @@ no vars +./config.inc.local.php diff --git a/admin/callhistory.php b/admin/callhistory.php index c281ed45..102e3cca 100644 --- a/admin/callhistory.php +++ b/admin/callhistory.php @@ -110,6 +110,7 @@ if ($operator_id) $rs = $db->Execute($sql); if (empty($rs)) { + xhtml_head(T_("Call History List"),true,$css,$js_head); print "

" . T_("No calls ever made") . "

"; } else diff --git a/admin/extensionstatus.php b/admin/extensionstatus.php index b04853fa..97022fba 100644 --- a/admin/extensionstatus.php +++ b/admin/extensionstatus.php @@ -185,7 +185,7 @@ if (isset($_GET['edit']) || isset($_GET['addext'])) WHERE extension_id = " . intval($_GET['edit']); $rs = $db->GetRow($sql); - } + } else $rs = array(); print "" . T_("Go back") . ""; ?> diff --git a/admin/operatorlist.php b/admin/operatorlist.php index 42ee50b2..8a6d95d2 100644 --- a/admin/operatorlist.php +++ b/admin/operatorlist.php @@ -402,11 +402,11 @@ if ($display) $titles[] = T_("Win file");//Windows VoIP $titles[] = T_("*nix flle");//*nix VoIP } - echo "
"; + echo "
"; xhtml_table($rs,$columns,$titles); echo "
"; - echo "
+ echo "
diff --git a/admin/operatorquestionnaire.php b/admin/operatorquestionnaire.php index adec1d2c..b6a9760d 100644 --- a/admin/operatorquestionnaire.php +++ b/admin/operatorquestionnaire.php @@ -164,7 +164,7 @@ xhtml_head(T_("Assign operators to questionnaires"),true,array("../include/boots print "questionnaire_id = new Array("; $s = ""; - +$q = array(); foreach($questionnaires as $q) { $s .= "'{$q['questionnaire_id']}',"; @@ -251,7 +251,7 @@ foreach($questionnaires as $q) } print ""; - +$v = array(); foreach($operators as $v) { diff --git a/admin/questionnairelist.php b/admin/questionnairelist.php index 8e689346..99ed8803 100644 --- a/admin/questionnairelist.php +++ b/admin/questionnairelist.php @@ -538,7 +538,7 @@ else if (isset($_GET['delete'])) } else { - xhtml_head(T_("Questionnaire management"),true,$css,$js_head, false, false, false, "Questionnaire list"); + xhtml_head(T_("Questionnaire management"),true,$css,$js_head, false, false, false,T_("Questionnaire list")); echo "
 " . T_("Go back") . "  " . T_("Create a new questionnaire") . " diff --git a/admin/samplelist.php b/admin/samplelist.php index d0516f9c..e9ef4938 100644 --- a/admin/samplelist.php +++ b/admin/samplelist.php @@ -116,7 +116,7 @@ if (isset($_POST['ed'])) if (isset($_POST['type'])){ //check that we have correct var types and quantity - $prph = 0; $pcd = 0; $st = 0; $fn = 0; $eml =0; + $prph = 0; $pcd = 0; $st = 0; $fn = 0; $eml =0; $ln =0; foreach($_POST['type'] as $key => $val) { if ($val == 3) $prph++; else if ($val == 5) $pcd++; @@ -293,17 +293,17 @@ if (isset($_GET['edit']) ) $sql = "SELECT * FROM sample_import WHERE sample_import_id = $sample_import_id"; $sd = $db->GetRow($sql); - if($sd['enabled'] == 1) $dis = disabled; // -> disable edit and delete if sample is enabled + if($sd['enabled'] == 1) $dis = "disabled"; else $dis = false;// -> disable edit and delete if sample is enabled $sql = "SELECT type, description FROM sample_var_type"; $rd = $db->GetAll($sql); - + $selected = "selected=\"selected\""; $sql = "SELECT sir.var_id, CONCAT('') as var, CONCAT (' +