$TEMainList .= '<form name="TEFormList" id="TEFormList">'; // Begin - 15 Nov 2008 - Checked All CheckBox Selected $TEMainList .= '<td style="text-align:center;">'; $TEMainList .= '<input type="checkbox" name="AllSelected" id="AllSelected" onclick="TESelectedAllCheckBox();" style="cursor:hand;" title="' . TECheckboxSelect . '">'; $TEMainList .= '</td>'; // End - 15 Nov 2008 - Checked All CheckBox Selected $CountFieldsTitles = 0; foreach ($this->fields as $field => $f) { $CountFieldsTitles++; if (empty($f['noDisplay'])) { if ($CountFieldsTitles == 1 && TEDisabledIdList == true) { } else { $TEMainList .= '<th>'; $TEMainList .= '<a href="javascript: TEorderBy(\'' . $field . ($this->orderby['field'] == $field && $this->orderby['direction'] == 1 ? ':desc' : '') . '\')" class="TEDefaultTit" '; $TEMainList .= 'title="Ordenar por: ' . TEDisplayFieldName($f['display']) . '">'; $TEMainList .= TEDisplayFieldName($f['display']) . ''; if ($this->orderby['field'] == $field) { $TEMainList .= '<span class="TEAscDescIndicator">' . ($this->orderby['direction'] == 1 ? '5' : '6') . '</span>'; } // $aux_nombres[]=$f['display']; print_r($f); $aux_nombres[] = $field; $TEMainList .= '</a>'; $TEMainList .= '</th>'; } } if (!empty($this->extraFunc)) { foreach ($this->extraFunc as $title => $datos) { if ($datos['DESPUES_DE'] == $field) { $TEMainList .= '<th><span class="TEDefaultTit"/>' . $title . '</span></th>'; } }
} echo "<tr><td></td>"; // echo '<form name="TEFormList" id="TEFormList">'; // Para multi select y deselect, lo quite y funciona????? if ($HIJO_ActionButtons) { $TEMainList .= '<td style="text-align:center;">'; $TEMainList .= '<input type="checkbox" name="AllSelected" id="AllSelected" onclick="TESelectedAllCheckBox();" style="cursor:hand;" title="' . TECheckboxSelect . '">'; $TEMainList .= '</td>'; echo $TEMainList; // Para multi select y deselect } else { echo "<td></td>"; } // print_r($NUEVO_editor_hijo[$TABLA_HIJO["TABLA_HIJO"]]); foreach ($campos as $valor) { if ($valor != $llave_tabla_hijo) { echo '<th style="text-align:center;" class="TEDefaultTit"><p title="' . $NUEVO_editor_hijo[$TABLA_HIJO["TABLA_HIJO"]]->fields[$valor]['title'] . '">' . (!empty($NUEVO_editor_hijo[$TABLA_HIJO["TABLA_HIJO"]]->fields[$valor]['required']) ? TERequiredAsterisk : '') . ' ' . TEDisplayFieldName($NUEVO_editor_hijo[$TABLA_HIJO["TABLA_HIJO"]]->fields[$valor]['display']) . ' </p></th>'; } if (!empty($NUEVO_editor_hijo[$TABLA_HIJO["TABLA_HIJO"]]->extraFunc)) { foreach ($NUEVO_editor_hijo[$TABLA_HIJO["TABLA_HIJO"]]->extraFunc as $title => $datos) { if ($datos['DESPUES_DE'] == $valor) { echo '<th><span class="TEDefaultTit"/>' . $title . '</span></th>'; } } } } if (!empty($this->extraFunc)) { foreach ($this->extraFunc as $title => $function) { if ($datos['DESPUES_DE'] == "") { $TEMainList .= '<th><span class="TEDefaultTit"/>' . $title . '</span></th>'; } }
if ($this->fields[$field]['FieldHidden']) { echo '<input type="hidden" value="' . $FieldValue . '" name="' . $FieldName . '" id="' . $FieldName . '" readonly />'; } else { if ($_POST["{$field}"] != "") { $value = $_POST["{$field}"]; } elseif ($_GET["{$field}"] != "") { $value = $_GET["{$field}"]; } echo '<tr id="tr_' . $field . '">'; if ($input_size[$table][$FieldName]["BGCOLOR"] != "") { $bgcolor = $input_size[$table][$FieldName]["BGCOLOR"]; } else { $bgcolor = ""; } //if($bgcolor) echo $bgcolor; echo '<th style="text-align:right;background-color:' . $bgcolor . '" class="TEDefaultTit"><p title="' . $this->fields[$field]['title'] . '">' . (!empty($this->fields[$field]['required']) ? TERequiredAsterisk : '') . ' ' . TEDisplayFieldName($this->fields[$field]['display']) . ': </p></th>'; if ($this->config['useFunctions']) { echo '<td valign="top">'; echo '<select name="function[' . $field . ']"><option></option>'; foreach (array_keys($this->config['functions']) as $f) { echo '<option value="' . $f . '">' . $f . '</option>'; } echo '</select>'; echo '</td>'; } $RowName = 'Row' . $field; echo '<td style="vertical-align:middle; text-align:left;" class="TEDefaultTxt" name="' . $RowName . '" id="' . $RowName . '">'; if (file_exists("" . TEditorPath . "TE_TODAS_LAS_TABLAS_FieldsActions.php")) { include "" . TEditorPath . "TE_TODAS_LAS_TABLAS_FieldsActions.php"; } if (file_exists("" . TEditorPath . "TE_" . $table . "_FieldsActions.php")) {
<?php $MainView = ''; $MainView .= '<table border="0" cellpadding="0" cellspacing="0" align="center">'; $MainView .= '<tr><td><img src="' . TEImagesPath . 'space.gif" width="1" height="10" border="0" /></td></tr>'; foreach ($row as $field => $value) { if ($value) { if (isset($this->fields[$field]['FieldTypeList']["html"])) { $value = $value; } else { $value = nl2br(htmlspecialchars($value)); } $MainView .= '<tr>'; $MainView .= '<th style="text-align:right; font-weight:bold; padding-left:30px;">' . TEDisplayFieldName($this->fields[$field]['display']) . ':</th>'; $MainView .= '<td style="text-align:left;font-weight:normal;padding-left:1px;"><div class="TEInputTextNoRequired" style="width:300px;padding:2px;">' . $value . '</div></td>'; $MainView .= '</tr>'; } } $MainView .= '<tr><td><img src="' . TEImagesPath . 'space.gif" width="1" height="10" border="0" /></td></tr>'; $MainView .= '<tr>'; $MainView .= '<td colspan="2" align="center">'; if ($this->getConfig('allowAdd')) { $MainView .= '<img src="' . TEImagesPath . 'TEActionAdd.gif" srcover="' . TEImagesPath . 'TEActionAddOver.gif" class="TEInputButton" onclick="document.location=\'' . $AddURL . '\';" title="' . TEButtonAdd . '" alt="' . TEButtonAdd . '"> '; } if ($this->getConfig('allowEdit')) { $MainView .= '<img src="' . TEImagesPath . 'TEActionEdit.gif" srcover="' . TEImagesPath . 'TEActionEditOver.gif" class="TEInputButton" onclick="document.location=\'' . $editURL . '\';" title="' . TEButtonEdit . '" alt="' . TEButtonEdit . '"> '; } if ($this->getConfig('allowDelete')) { $MainView .= '<img src="' . TEImagesPath . 'TEActionDel.gif" srcover="' . TEImagesPath . 'TEActionDelOver.gif" class="TEInputButton" onclick="if(confirm(\'En realidad deseas borrar este registro?\')) document.location=\'' . $DelURL . '\';" title="' . TEButtonDel . '" alt="' . TEButtonDel . '"> '; } if ($this->getConfig('allowCopy')) {