<th>&nbsp;</th>
    </tr>
    <tr>
	  <td align="center">
		<?php 
if ($FieldListings['defaults']['buttonvalue'] == TEXT_ADD) {
    echo html_input_field('SeqNum', $FieldListings['defaults']['seqnum'], 'size="4" maxlength="3"');
} else {
    echo html_hidden_field('SeqNum', $FieldListings['defaults']['seqnum']) . $FieldListings['defaults']['seqnum'];
}
// end if
?>
	  </td>
	  <?php 
if ($Type != 'frm') {
    echo '<td>' . html_combo_box('FieldName', CreateSpecialDropDown($ReportID), $FieldListings['defaults']['fieldname']) . '</td>';
}
?>
      <td><?php 
echo html_input_field('DisplayDesc', $FieldListings['defaults']['displaydesc'], 'size="20" maxlength="25"');
?>
</td>
      <?php 
if ($Type != 'frm') {
    echo '<td align="center">' . html_checkbox_field('ColumnBreak', '1', $FieldListings['defaults']['columnbreak'] == '1' ? true : false) . '</td>';
    echo '<td align="center">' . html_input_field('ColumnWidth', $Params['columnwidth'] ? $Params['columnwidth'] : RW_DEFAULT_COLUMN_WIDTH, 'size="4" maxlength="3"') . '</td>';
    echo '<td align="center">&nbsp;</td>';
}
?>
      <td align="center"><?php 
echo html_checkbox_field('Visible', '1', $FieldListings['defaults']['visible'] == '1' ? true : false);
Пример #2
0
         $FormParams = PrepStep('prop', $Params['index']);
         $FormParams['id'] = $myrow['id'];
         break;
     } else {
         $Params['filename'] = $success['filename'];
     }
 }
 // reset the sequence defaults to null for Table type only
 if ($Params['index'] == 'Tbl' || $Params['index'] == 'TBlk' || $Params['index'] == 'CBlk') {
     $Params['TblSeqNum'] = '';
     $Params['TblField'] = '';
     $Params['TblDesc'] = '';
     $Params['Processing'] = '';
 }
 if ($Params['index'] == 'Tbl') {
     $TblFieldChoices = CreateSpecialDropDown($ReportID, 'table');
 }
 if ($todo == 'spFunc') {
     // for tables a special function change was made
     // clear the table columns
     $Params['Seq'] = '';
 }
 // Update field properties
 $sql = "update " . TABLE_REPORT_FIELDS . " set params = '" . serialize($Params) . "' \r\n\t\t\t\t\twhere id = " . $_POST['ID'];
 $result = $db->Execute($sql);
 // check for update errors and reload
 if ($todo == 'finish') {
     // no errors and finished so return to field setup
     $FieldListings = RetrieveFields('fieldlist');
     $FormParams = PrepStep('5');
 } else {
Пример #3
0
$type = $_GET['type'] ? $_GET['type'] : '';
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);
?>
<h2 align="center"><?php 
echo TEXT_FORM_FIELD . $DisplayName . ' - ' . TEXT_PROPERTIES;
?>
</h2>
  <table align="center" border="2" cellspacing="1" cellpadding="1">
    <tr>
      <th colspan="2" align="center"><?php 
echo RW_RPT_TBLFNAME;
?>
</th>
    </tr>
    <tr>
      <td id="field_list" colspan="2" align="center">
	  	<?php 
echo html_combo_box('DataField', CreateSpecialDropDown($ReportID), $Params['DataField']);
?>
	  </td>
    </tr>
    <tr>
      <th colspan="2" align="center"><?php 
echo RW_RPT_STARTPOS;
?>
</th>
    </tr>
    <tr>
      <td align="center">
	    <?php 
echo TEXT_ABSCISSA . ' ' . html_input_field('LineXStrt', !$Params['LineXStrt'] ? '10' : $Params['LineXStrt'], 'size="4" maxlength="3"');
?>
      </td>
Пример #5
0
echo PHREEFORM_TEXTPROC;
?>
</th>
      <th><?php 
echo TEXT_ACTION;
?>
</th>
    </tr>
	</thead>
	<tbody class="ui-widget-content">
<?php 
for ($i = 0; $i < sizeof($report->fieldlist); $i++) {
    ?>
    <tr>
	  <td><?php 
    echo html_combo_box('fld_fld[]', CreateSpecialDropDown($report), $report->fieldlist[$i]->fieldname, 'onclick="updateFieldList(this)"', '220px', '', 'fld_combo_' . $i);
    ?>
</td>
      <td><?php 
    echo html_input_field('fld_desc[]', $report->fieldlist[$i]->description, 'size="20" maxlength="25"');
    ?>
</td>
     <td><?php 
    echo html_pull_down_menu('fld_proc[]', $pFields, $report->fieldlist[$i]->processing);
    ?>
</td>
      <td nowrap="nowrap" align="right">
		<?php 
    echo html_icon('actions/view-fullscreen.png', TEXT_MOVE, 'small', 'style="cursor:move"', '', '', 'move_fld_' . $i) . chr(10);
    echo html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'class="imgIcon delete"') . chr(10);
    ?>
Пример #6
0
    echo TEXT_ALIGN;
    ?>
</th>
		  <th><?php 
    echo TEXT_ACTION;
    ?>
</th>
		</tr>
		</thead>
		<tbody  class="ui-widget-content">
	<?php 
    for ($i = 0; $i < sizeof($report->fieldlist); $i++) {
        ?>
		<tr>
		  <td nowrap="nowrap"><?php 
        echo html_combo_box('fld_fld[]', CreateSpecialDropDown($report), $report->fieldlist[$i]->fieldname, '', '220px', '', 'fld_combo_' . $i);
        ?>
</td>
		  <td><?php 
        echo html_input_field('fld_desc[]', $report->fieldlist[$i]->description, 'size="20" maxlength="25"');
        ?>
</td>
		  <td><?php 
        echo html_pull_down_menu('fld_brk[]', $nyChoice, $report->fieldlist[$i]->columnbreak, 'onchange="calculateWidth()"');
        ?>
</td>
		  <td><?php 
        echo html_input_field('fld_clmn[]', $report->fieldlist[$i]->columnwidth ? $report->fieldlist[$i]->columnwidth : PF_DEFAULT_COLUMN_WIDTH, 'size="4" maxlength="3" onchange="calculateWidth()"');
        ?>
</td>
		  <td align="center"><?php