</th>
    </tr>
	<tr>
	  <td><?php 
echo html_radio_field('ImgChoice', 'Upload') . RW_RPT_IMAGEUPLOAD;
?>
</td>
	  <td><input type="file" name="imagefile"></td>
    </tr>
	<tr>
	  <td><?php 
echo html_radio_field('ImgChoice', 'Select', true) . RW_RPT_IMAGESTORED;
?>
</td>
	  <td><?php 
echo html_pull_down_menu('ImgFileName', ReadImages(), $Params['filename'], 'size="6"');
?>
</td>
    </tr>
    <tr>
      <th colspan="2"><?php 
echo RW_RPT_STARTPOS;
?>
</th>
    </tr>
    <tr>
      <td width="50%" align="center">
	    <?php 
echo TEXT_ABSCISSA . html_input_field('LineXStrt', !$Params['LineXStrt'] ? '10' : $Params['LineXStrt'], 'size="4" maxlength="3"');
?>
      </td>
Exemplo n.º 2
0
function box_build($properties, $i)
{
    global $kFonts, $kFontSizes, $kFontAlign, $kFontColors, $cFields;
    global $kFields, $kTblFields, $pFields, $tProcessing, $BarCodeTypes;
    $output = NULL;
    switch ($properties->type) {
        case 'BarCode':
            $output = '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl;
            $output .= ' <thead class="ui-widget-header">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <th>' . TEXT_FIELDNAME . '</th>' . nl;
            $output .= '    <th>' . TEXT_TYPE . '</th>' . nl;
            $output .= '   </tr>' . nl;
            $output .= ' </thead><tbody class="ui-widget-content">' . nl;
            $output .= '   <tr>' . nl;
            $output .= '    <td>' . html_combo_box('box_fld_' . $i . '[]', $kFields, $properties->boxfield[0]->fieldname, 'onclick="updateFieldList(this)"') . '</td>' . nl;
            $output .= '    <td>' . html_pull_down_menu('box_proc_' . $i . '[]', gen_build_pull_down($BarCodeTypes), $properties->boxfield[0]->processing) . '</td>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </tbody></table>' . nl;
            $output .= box_build_attributes($properties, $i, false, false);
            break;
        case 'CBlk':
            $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><tr><td>' . nl;
            $output .= '  <table id="box_Cblk' . $i . '" class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><thead class="ui-widget-header">' . nl;
            $output .= '    <tr><th colspan="4">' . TEXT_FIELD_LIST . '</th></tr>' . nl;
            $output .= '    <tr>' . nl;
            $output .= '      <th>' . TEXT_FIELDNAME . '</th>' . nl;
            $output .= '      <th>' . TEXT_SEPARATOR . '</th>' . nl;
            $output .= '      <th>' . TEXT_PROCESSING . '</th>' . nl;
            $output .= '      <th>' . TEXT_ACTION . '</th>' . nl;
            $output .= '    </tr>' . nl;
            $output .= '	</thead><tbody class="ui-widget-content">' . nl;
            for ($j = 0; $j < sizeof($properties->boxfield); $j++) {
                $output .= '		  <tr>' . nl;
                $output .= '		    <td>' . html_pull_down_menu('box_fld_' . $i . '[]', $cFields, $properties->boxfield[$j]->fieldname) . '</td>' . nl;
                $output .= '		    <td>' . html_pull_down_menu('box_proc_' . $i . '[]', $tProcessing, $properties->boxfield[$j]->processing) . '</td>' . nl;
                $output .= '		    <td>' . html_pull_down_menu('box_fmt_' . $i . '[]', $pFields, $properties->boxfield[$j]->formatting) . '</td>' . nl;
                $output .= '		    <td nowrap="nowrap" align="right">';
                $output .= html_icon('actions/view-fullscreen.png', TEXT_MOVE, 'small', 'style="cursor:move"', '', '', 'move_cblk_' . $i . '_' . $j) . chr(10);
                $output .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . TEXT_DELETE_ENTRY . '\')) $(this).parent().parent().remove();"');
                $output .= '			</td>' . nl;
                $output .= '		  </tr>' . nl;
            }
            $output .= '    </tbody></table>' . nl;
            $output .= '  </td>' . nl;
            $output .= '  <td valign="bottom">' . html_icon('actions/list-add.png', TEXT_ADD, 'small', 'onclick="rowAction(\'box_Cblk\', \'add\', ' . $i . ')"') . '</td>' . nl;
            $output .= '</tr></table>' . nl;
            $output .= box_build_attributes($properties, $i);
            $output .= '<script type="text/javascript">tableInit[tableCount] = \'box_Cblk' . $i . '\'; tableCount++;</script>' . nl;
            break;
        case 'CDta':
            $output = '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl;
            $output .= ' <thead class="ui-widget-header">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <th>' . TEXT_FIELDNAME . '</th>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </thead><tbody class="ui-widget-content">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <td align="center">' . html_pull_down_menu('box_fld_' . $i . '[]', $cFields, $properties->boxfield[0]->fieldname) . '</td>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </tbody></table>' . nl;
            $output .= box_build_attributes($properties, $i);
            break;
        case 'Data':
            $output = '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl;
            $output .= ' <thead class="ui-widget-header">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <th>' . PHREEFORM_TBLFNAME . '</th>' . nl;
            $output .= '    <th>' . TEXT_PROCESSING . '</th>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </thead><tbody class="ui-widget-content">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <td>' . html_combo_box('box_fld_' . $i . '[]', $kFields, $properties->boxfield[0]->fieldname, 'onclick="updateFieldList(this)"') . '</td>' . nl;
            $output .= '    <td>' . html_pull_down_menu('box_proc_' . $i . '[]', $pFields, $properties->boxfield[0]->processing) . '</td>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </tbody></table>' . nl;
            $output .= box_build_attributes($properties, $i);
            break;
        case 'Img':
            $output = '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl;
            $output .= ' <thead class="ui-widget-header">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <td>' . TEXT_CURRENT_IMAGE . '</td>' . nl;
            $output .= '    <td align="center">' . nl;
            $output .= !$properties->filename ? TEXT_NO_IMAGE_SELECTED : html_image(PF_WEB_MY_REPORTS . 'images/' . $properties->filename, '', '', '32');
            $output .= '    </td>' . nl;
            $output .= '  </tr>' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <th colspan="2">' . PHREEFORM_IMAGESEL . '</th>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </thead><tbody class="ui-widget-content">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <td>' . html_radio_field('img_sel_' . $i, 'U', false) . TEXT_UPLOAD_MAGE . '</td>' . nl;
            $output .= '    <td>' . html_file_field('img_upload_' . $i) . '</td>' . nl;
            $output .= '  </tr>' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <td>' . html_radio_field('img_sel_' . $i, 'S', true) . TEXT_STORED_IMAGES . '</td>' . nl;
            $output .= '    <td>' . html_pull_down_menu('img_file_' . $i, ReadImages(), $properties->filename, 'size="6"') . '</td>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </tbody></table>' . nl;
            break;
        case 'ImgLink':
            $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl;
            $output .= ' <thead class="ui-widget-header">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <th>' . PHREEFORM_TBLFNAME . '</th>' . nl;
            $output .= '    <th>' . TEXT_PROCESSING . '</th>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </thead><tbody class="ui-widget-content">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <td>' . html_combo_box('box_fld_' . $i . '[]', $kFields, $properties->boxfield[0]->fieldname, 'onclick="updateFieldList(this)"') . '</td>' . nl;
            $output .= '    <td>' . html_pull_down_menu('box_proc_' . $i . '[]', $pFields, $properties->boxfield[0]->processing) . '</td>' . nl;
            $output .= '  </tr>' . nl;
            $output .= '  <tr class="ui-widget-header"><th colspan="2">' . TEXT_IMAGE_LINK . '</th></tr>' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <td align="center" colspan="2">' . html_input_field('box_txt_' . $i, $properties->text ? $properties->text : DIR_WS_MY_FILES, 'size="40"') . '</td>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </tbody></table>' . nl;
            //	  $output .= box_build_attributes($properties, $i, false, false, false, false);
            break;
        case 'Line':
            $output = '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl;
            $output .= ' <thead class="ui-widget-header">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <th colspan="3">' . PHREEFORM_LINE_TYPE . '</th>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </thead><tbody class="ui-widget-content">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <td>' . html_radio_field('box_ltype_' . $i, 'H', !$properties->linetype || $properties->linetype == 'H' ? true : false) . TEXT_HORIZONTAL . '</td>' . nl;
            $output .= '    <td>' . html_radio_field('box_ltype_' . $i, 'V', $properties->linetype == 'V' ? true : false) . TEXT_VERTICAL . '</td>' . nl;
            $output .= '    <td>' . TEXT_LENGTH . ' ' . html_input_field('box_len_' . $i, $properties->length, 'size="4" maxlength="3"') . '</td>' . nl;
            $output .= '  </tr>' . nl;
            $output .= '  <tr class="ui-widget-header">' . nl;
            $output .= '    <th colspan="3">' . PHREEFORM_ENDPOS . '</th>' . nl;
            $output .= '  </tr>' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <td>' . html_radio_field('box_ltype_' . $i, 'C', $properties->linetype == 'C' ? true : false) . TEXT_CUSTOM . '</td>' . nl;
            $output .= '    <td>' . TEXT_ABSCISSA . html_input_field('box_eabs_' . $i, $properties->endabscissa, 'size="4" maxlength="3"') . '</td>' . nl;
            $output .= '    <td>' . TEXT_ORDINATE . html_input_field('box_eord_' . $i, $properties->endordinate, 'size="4" maxlength="3"') . '</td>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </tbody></table>' . nl;
            $output .= box_build_attributes($properties, $i, false, false, true, false);
            break;
        case 'PgNum':
            $output .= box_build_attributes($properties, $i, false);
            break;
        case 'Rect':
            $output .= box_build_attributes($properties, $i, false, false, true, true);
            break;
        case 'Tbl':
            $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><tr><td>' . nl;
            $output .= '  <table id="box_Tbl' . $i . '" class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><thead class="ui-widget-header">' . nl;
            $output .= '    <tr><th colspan="9">' . TEXT_FIELD_LIST . '</th></tr>' . nl;
            $output .= '    <tr>' . nl;
            $output .= '      <th>' . TEXT_FIELDNAME . '</th>' . nl;
            $output .= '      <th>' . TEXT_DESCRIPTION . '</th>' . nl;
            $output .= '      <th>' . TEXT_PROCESSING . '</th>' . nl;
            $output .= '      <th>' . TEXT_FONT . '</th>' . nl;
            $output .= '      <th>' . TEXT_SIZE . '</th>' . nl;
            $output .= '      <th>' . TEXT_ALIGN . '</th>' . nl;
            $output .= '      <th>' . TEXT_COLOR . '</th>' . nl;
            $output .= '      <th>' . TEXT_WIDTH . '</th>' . nl;
            $output .= '      <th>' . '&nbsp;' . '</th>' . nl;
            $output .= '    </tr>' . nl;
            $output .= '	</thead><tbody class="ui-widget-content">' . nl;
            for ($j = 0; $j < sizeof($properties->boxfield); $j++) {
                $output .= '	  <tr>' . nl;
                $output .= '	    <td nowrap="nowrap">' . html_combo_box('box_fld_' . $i . '[]', $kTblFields, $properties->boxfield[$j]->fieldname, 'onclick="updateFieldList(this)"', '220px', '', 'box_fld_' . $i . $j) . '</td>' . nl;
                $output .= '	    <td>' . html_input_field('box_desc_' . $i . '[]', $properties->boxfield[$j]->description, 'size="15"') . '</td>' . nl;
                $output .= '	    <td>' . html_pull_down_menu('box_proc_' . $i . '[]', $pFields, $properties->boxfield[$j]->processing) . '</td>' . nl;
                $output .= '	    <td>' . html_pull_down_menu('box_fnt_' . $i . '[]', $kFonts, $properties->boxfield[$j]->font) . '</td>' . nl;
                $output .= '	    <td>' . html_pull_down_menu('box_size_' . $i . '[]', $kFontSizes, $properties->boxfield[$j]->size) . '</td>' . nl;
                $output .= '	    <td>' . html_pull_down_menu('box_aln_' . $i . '[]', $kFontAlign, $properties->boxfield[$j]->align) . '</td>' . nl;
                $output .= '	    <td>' . html_pull_down_menu('box_clr_' . $i . '[]', $kFontColors, $properties->boxfield[$j]->color) . '</td>' . nl;
                $output .= '	    <td>' . html_input_field('box_wid_' . $i . '[]', $properties->boxfield[$j]->width, 'size="4" maxlength="4"') . '</td>' . nl;
                $output .= '	    <td nowrap="nowrap" align="right">' . nl;
                $output .= html_icon('actions/view-fullscreen.png', TEXT_MOVE, 'small', 'style="cursor:move"', '', '', 'move_tbl_' . $i . '_' . $j);
                $output .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . TEXT_DELETE_ENTRY . '\')) $(this).parent().parent().remove();"');
                $output .= '</td>' . nl;
                $output .= '	  </tr>' . nl;
            }
            $output .= '  </tbody></table>' . nl;
            $output .= '</td>' . nl;
            $output .= '<td valign="bottom">' . html_icon('actions/list-add.png', TEXT_ADD, 'small', 'onclick="rowAction(\'box_Tbl\', \'add\', ' . $i . ')"') . '</td>' . nl;
            $output .= '</tr></table>' . nl;
            $output .= box_build_attributes($properties, $i, false, true, true, true, 'h', PHREEFORM_TABLE_HEADING_PROP);
            $output .= box_build_attributes($properties, $i, false, false, true, true, '', TEXT_TABLE_BODY_PROPERTIES);
            $output .= PHREEFORM_FORM_TABLE_NOTES;
            $output .= '<script type="text/javascript">tableInit[tableCount] = \'box_Tbl' . $i . '\'; tableCount++;</script>' . nl;
            break;
        case 'TBlk':
            $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><tr><td>' . nl;
            $output .= '  <table id="box_Tblk' . $i . '" class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><thead class="ui-widget-header">' . nl;
            $output .= '    <tr><th colspan="4">' . TEXT_FIELD_LIST . '</th></tr>' . nl;
            $output .= '    <tr>' . nl;
            $output .= '      <th>' . PHREEFORM_TBLFNAME . '</th>' . nl;
            $output .= '      <th>' . TEXT_SEPARATOR . '</th>' . nl;
            $output .= '      <th>' . TEXT_PROCESSING . '</th>' . nl;
            $output .= '      <th>' . TEXT_ACTION . '</th>' . nl;
            $output .= '    </tr>' . nl;
            $output .= '</thead><tbody class="ui-widget-content">' . nl;
            for ($j = 0; $j < sizeof($properties->boxfield); $j++) {
                $output .= '  <tr>' . nl;
                $output .= '    <td>' . html_combo_box('box_fld_' . $i . '[]', $kFields, $properties->boxfield[$j]->fieldname, 'onclick="updateFieldList(this)"', '220px', '', 'box_fld_' . $i . '_' . $j) . '</td>' . nl;
                $output .= '    <td>' . html_pull_down_menu('box_proc_' . $i . '[]', $tProcessing, $properties->boxfield[$j]->processing) . '</td>' . nl;
                $output .= '	<td>' . html_pull_down_menu('box_fmt_' . $i . '[]', $pFields, $properties->boxfield[$j]->formatting) . '</td>' . nl;
                $output .= '    <td nowrap="nowrap" align="right">' . nl;
                $output .= html_icon('actions/view-fullscreen.png', TEXT_MOVE, 'small', 'style="cursor:move"', '', '', 'move_tblk_' . $i . '_' . $j) . chr(10);
                $output .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . TEXT_DELETE_ENTRY . '\')) $(this).parent().parent().remove();"');
                $output .= '    </td>' . nl;
                $output .= '  </tr>' . nl;
            }
            $output .= '</tbody></table>' . nl;
            $output .= '</td>' . nl;
            $output .= '<td valign="bottom">' . html_icon('actions/list-add.png', TEXT_ADD, 'small', 'onclick="rowAction(\'box_Tblk\', \'add\', ' . $i . ')"');
            $output .= '</td></tr></table>' . nl;
            $output .= box_build_attributes($properties, $i);
            $output .= '<script type="text/javascript">tableInit[tableCount] = \'box_Tblk' . $i . '\'; tableCount++;</script>' . nl;
            break;
        case 'TDup':
            $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl;
            $output .= ' <tbody class="ui-widget-content">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <td align="center">' . TEXT_NO_PROPERTIES . '</td>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </tbody></table>' . nl;
            break;
        case 'LtrTpl':
            $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl;
            $output .= ' <thead class="ui-widget-header">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <th>' . PHREEFORM_TEXTDISP . '</th>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </thead><tbody class="ui-widget-content">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <td>' . html_textarea_field('box_txt_' . $i, '50', '20', $properties->text) . '</td>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </tbody></table>' . nl;
            $output .= box_build_attributes($properties, $i);
            break;
        case 'LtrData':
            $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><tr><td>' . nl;
            $output .= '  <table id="box_LtrData' . $i . '" class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><thead class="ui-widget-header">' . nl;
            $output .= '    <tr><th colspan="9">' . TEXT_FIELD_LIST . '</th></tr>' . nl;
            $output .= '    <tr>' . nl;
            $output .= '      <th>' . TEXT_FIELDNAME . '</th>' . nl;
            $output .= '      <th>' . TEXT_DESCRIPTION . '</th>' . nl;
            $output .= '      <th>' . TEXT_PROCESSING . '</th>' . nl;
            $output .= '      <th>' . '&nbsp;' . '</th>' . nl;
            $output .= '    </tr>' . nl;
            $output .= '	</thead><tbody class="ui-widget-content">' . nl;
            for ($j = 0; $j < sizeof($properties->boxfield); $j++) {
                $output .= '	  <tr>' . nl;
                $output .= '	    <td nowrap="nowrap">' . html_combo_box('box_fld_' . $i . '[]', $kTblFields, $properties->boxfield[$j]->fieldname, 'onclick="updateFieldList(this)"', '220px', '', 'box_fld_' . $i . $j) . '</td>' . nl;
                $output .= '	    <td>' . html_input_field('box_desc_' . $i . '[]', $properties->boxfield[$j]->description, 'size="15"') . '</td>' . nl;
                $output .= '	    <td>' . html_pull_down_menu('box_proc_' . $i . '[]', $pFields, $properties->boxfield[$j]->processing) . '</td>' . nl;
                $output .= '	    <td nowrap="nowrap" align="right">' . nl;
                $output .= html_icon('actions/view-fullscreen.png', TEXT_MOVE, 'small', 'style="cursor:move"', '', '', 'move_tbl_' . $i . '_' . $j);
                $output .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . TEXT_DELETE_ENTRY . '\')) $(this).parent().parent().remove();"');
                $output .= '</td>' . nl;
                $output .= '	  </tr>' . nl;
            }
            $output .= '  </tbody></table>' . nl;
            $output .= '</td>' . nl;
            $output .= '<td valign="bottom">' . html_icon('actions/list-add.png', TEXT_ADD, 'small', 'onclick="rowAction(\'box_LtrData\', \'add\', ' . $i . ')"') . '</td>' . nl;
            $output .= '</tr></table>' . nl;
            $output .= '<script type="text/javascript">tableInit[tableCount] = \'box_LtrData' . $i . '\'; tableCount++;</script>' . nl;
            break;
        case 'Text':
            $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl;
            $output .= ' <thead class="ui-widget-header">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <th>' . PHREEFORM_TEXTDISP . '</th>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </thead><tbody class="ui-widget-content">' . nl;
            $output .= '  <tr>' . nl;
            $output .= '    <td>' . html_textarea_field('box_txt_' . $i, '50', '3', $properties->text) . '</td>' . nl;
            $output .= '  </tr>' . nl;
            $output .= ' </tbody></table>' . nl;
            $output .= box_build_attributes($properties, $i);
            break;
        case 'Ttl':
            $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><tr><td>' . nl;
            $output .= '  <table id="box_Ttl' . $i . '" class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><thead class="ui-widget-header">' . nl;
            $output .= '    <tr><th colspan="3">' . TEXT_FIELD_LIST . '</th></tr>' . nl;
            $output .= '    <tr>' . nl;
            $output .= '      <th>' . PHREEFORM_TBLFNAME . '</th>' . nl;
            $output .= '      <th>' . TEXT_PROCESSING . '</th>' . nl;
            $output .= '      <th>' . TEXT_ACTION . '</th>' . nl;
            $output .= '    </tr>' . nl;
            $output .= ' </thead><tbody class="ui-widget-content">' . nl;
            for ($j = 0; $j < sizeof($properties->boxfield); $j++) {
                $output .= '  <tr>' . nl;
                $output .= '    <td>' . html_combo_box('box_fld_' . $i . '[]', $kFields, $properties->boxfield[$j]->fieldname, 'onclick="updateFieldList(this)"', '220px', '', 'box_fld_' . $i . $j) . '</td>' . nl;
                $output .= '    <td>' . html_pull_down_menu('box_proc_' . $i . '[]', $pFields, $properties->boxfield[$j]->processing) . '</td>' . nl;
                $output .= '    <td nowrap="nowrap" align="right">' . nl;
                $output .= html_icon('actions/view-fullscreen.png', TEXT_MOVE, 'small', 'style="cursor:move"', '', '', 'move_ttl_' . $i . '_' . $j) . chr(10);
                $output .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . TEXT_DELETE_ENTRY . '\')) $(this).parent().parent().remove();"');
                $output .= '    </td>' . nl;
                $output .= '  </tr>' . nl;
            }
            $output .= '</tbody></table>' . nl;
            $output .= '</td>' . nl;
            $output .= '<td valign="bottom">' . html_icon('actions/list-add.png', TEXT_ADD, 'small', 'onclick="rowAction(\'box_Ttl\', \'add\', ' . $i . ')"');
            $output .= '</td></tr></table>' . nl;
            $output .= box_build_attributes($properties, $i);
            $output .= '<script type="text/javascript">tableInit[tableCount] = \'box_Ttl' . $i . '\'; tableCount++;</script>' . nl;
            break;
    }
    return $output;
}