Ejemplo n.º 1
0
if (!isset($_GET['rowID'])) {
    echo createXmlHeader() . xmlEntry('error', 'Row ID was not passed!') . createXmlFooter();
    die;
}
if ($rID) {
    $report = get_report_details($rID);
}
$kFonts = gen_build_pull_down($Fonts);
$kFontSizes = gen_build_pull_down($FontSizes);
$kLineSizes = gen_build_pull_down($LineSizes);
$kFontColors = gen_build_pull_down($FontColors);
$kFontAlign = gen_build_pull_down($FontAlign);
$cFields = CreateCompanyArray();
$fFields = crit_build_pull_down($CritChoices);
$kFields = CreateSpecialDropDown($report);
$kTblFields = CreateFieldTblDropDown($report);
$kTables = CreateTableList($report);
$nyChoice = gen_build_pull_down($NoYesChoice);
$pFields = gen_build_pull_down($FormProcessing);
$tProcessing = gen_build_pull_down($TextProcessing);
if (!$type) {
    // use the first type of the FormEntries array since it will be shown first with a new line
    $temp = array_keys($FormEntries);
    $type = array_shift($temp);
}
$properties = new objectInfo();
$properties->type = $type;
$output = box_build($properties, $rowID);
$xml .= xmlEntry("rowID", $rowID);
$xml .= xmlEntry("html", $output);
//$xml .= xmlEntry("debug", 'sizeof kFields= ' . sizeof($kFields) . ' and rowID = ' . $rowID);
Ejemplo n.º 2
0
?>
';
	  temp    += '<?php 
echo str_replace("'", "\\'", html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . TEXT_DELETE_ENTRY . '\')) $(this).parent().parent().remove();"'));
?>
';
	  cell[8]  = temp.replace(/row_TBD/g, boxID);
	  attr[4]  = 'center';
	  attr[8]  = 'right';
	  wrap[0]  = 'nowrap';
	  wrap[8]  = 'nowrap';
 	  for (var i=0; i<cell.length; i++) cell[i] = cell[i].replace(/boxTBD/g, boxID);
      break;
	case 'box_LtrData':
	  var temp = '<?php 
echo str_replace("'", "\\'", html_combo_box('box_fld_boxTBD[]', CreateFieldTblDropDown($report), '', 'onclick="updateFieldList(this)"', '220px', '', 'box_combo_tbd'));
?>
';
	  cell[0]  = temp.replace(/box_combo_tbd/g, "box_combo_"+boxID+rowCnt);
	  cell[1]  = '<?php 
echo html_input_field('box_desc_boxTBD[]', '', 'size="15"');
?>
';
	  cell[2]  = '<?php 
echo str_replace("'", "\\'", html_pull_down_menu('box_proc_boxTBD[]', $pFields));
?>
';
	  temp     = '<?php 
echo str_replace("'", "\\'", html_icon('actions/view-fullscreen.png', TEXT_MOVE, 'small', 'style="cursor:move"', '', '', 'move_tbl_row_TBD'));
?>
';