Changeset 890
- Timestamp:
- 07/23/08 07:41:40 (1 month ago)
- Files:
-
- trunk/admin/Public/form_data/FG_var_config.inc (modified) (3 diffs)
- trunk/common/lib/Form/Class.FormHandler.EditForm.inc.php (modified) (1 diff)
- trunk/common/lib/Form/Class.ViewHandler.inc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/admin/Public/form_data/FG_var_config.inc
r853 r890 31 31 32 32 if($cur_value[1] != '1') { 33 $yesno[$ key] = array($cur_value[0],$cur_value[2]);33 $yesno[$cur_value[2]] = array($cur_value[0],$cur_value[2]); 34 34 } else { 35 35 if($cur_value[0] == '1') { 36 $yesno[$ key] = array("Yes",$cur_value[2]);36 $yesno[$cur_value[2]] = array("Yes",$cur_value[2]); 37 37 } else if($cur_value[0] == '0') { 38 $yesno[$ key] = array("No",$cur_value[2]);38 $yesno[$cur_value[2]] = array("No",$cur_value[2]); 39 39 } else { 40 $yesno[$ key] = array($cur_value[0],$cur_value[2]);40 $yesno[$cur_value[2]] = array($cur_value[0],$cur_value[2]); 41 41 } 42 42 } 43 43 } 44 45 44 $HD_Form = new FormHandler("cc_config ccc LEFT JOIN cc_config_group ccg ON ccg.id = ccc.config_group_id","Configuration"); 46 45 $HD_Form -> FG_DEBUG = 0; … … 51 50 if ($groupselect != "") { 52 51 $HD_Form = new FormHandler("cc_config ccc ,cc_config_group ccg","Configuration"); 53 $HD_Form -> FG_TABLE_ID ="ccc.id";52 $HD_Form -> FG_TABLE_ID = "ccc.id"; 54 53 $HD_Form -> FG_TABLE_CLAUSE = "ccg.id = ccc.config_group_id"; 55 54 $HD_Form -> FG_TABLE_CLAUSE .= " AND ccc.config_group_id = ".$groupselect; … … 66 65 $HD_Form -> FG_TABLE_CLAUSE = $_SESSION['ss_groupselect']; 67 66 } 67 68 // $HD_Form -> FG_TABLE_CLAUSE .= " AND config_key='callplan_deck_minute_threshold'"; 68 69 69 70 $HD_Form -> FG_EDITION_CLAUSE = " ccc.config_group_id = ccg.id AND ccc.id = %id"; trunk/common/lib/Form/Class.FormHandler.EditForm.inc.php
r706 r890 129 129 { 130 130 ?> 131 <span class="form_input_span"name=<?php echo $this->FG_TABLE_EDITION[$i][1]?> <?php echo $this->FG_TABLE_EDITION[$i][4]?>><?php if($this->VALID_SQL_REG_EXP){ echo stripslashes($list[0][$i]); }else{ echo $_POST[$this->FG_TABLE_ADITION[$i][1]]; }?></span>131 <span name=<?php echo $this->FG_TABLE_EDITION[$i][1]?> <?php echo $this->FG_TABLE_EDITION[$i][4]?>><?php if($this->VALID_SQL_REG_EXP){ echo stripslashes($list[0][$i]); }else{ echo $_POST[$this->FG_TABLE_ADITION[$i][1]]; }?></span> 132 132 <?php 133 133 }elseif (strtoupper ($this->FG_TABLE_EDITION[$i][3])==strtoupper ("SELECT")) trunk/common/lib/Form/Class.ViewHandler.inc.php
r866 r890 172 172 </TR> 173 173 <?php 174 /********************** START BUILDING THE TABLE WITH BROWSING VALUES ************************/ 175 for ($ligne_number=0;$ligne_number<count($list);$ligne_number++){ 176 174 /********************** START BUILDING THE TABLE WITH BROWSING VALUES ************************/ 175 for ($ligne_number=0;$ligne_number<count($list);$ligne_number++){ 177 176 ?> 178 177 179 <TR bgcolor="<?php echo $this->FG_TABLE_ALTERNATE_ROW_COLOR[$ligne_number%2]?>" onmouseover="bgColor='#FFDEA6'" onMouseOut="bgColor='<?php echo $this->FG_TABLE_ALTERNATE_ROW_COLOR[$ligne_number%2]?>'">178 <TR bgcolor="<?php echo $this->FG_TABLE_ALTERNATE_ROW_COLOR[$ligne_number%2]?>" onmouseover="bgColor='#FFDEA6'" onMouseOut="bgColor='<?php echo $this->FG_TABLE_ALTERNATE_ROW_COLOR[$ligne_number%2]?>'"> 180 179 <?php 181 180 $k=0; … … 222 221 }elseif ($this->FG_TABLE_COL[$i][6]=="list-conf"){ 223 222 $select_list = $this->FG_TABLE_COL[$i][7]; 224 $key_config = $list[$ligne_number][$i-$k + 3] - 1;223 $key_config = $list[$ligne_number][$i-$k + 3]; 225 224 $record_display = $select_list[$key_config][0]; 225 //print_r ($select_list); 226 226 }elseif ($this->FG_TABLE_COL[$i][6]=="value"){ 227 227 $record_display = $this->FG_TABLE_COL[$i][7];
