Skip to content

Instantly share code, notes, and snippets.

@renatoschroepfer
Created November 24, 2016 18:01
Show Gist options
  • Save renatoschroepfer/bc640b947369a8590504ea4ae73726ef to your computer and use it in GitHub Desktop.
Save renatoschroepfer/bc640b947369a8590504ea4ae73726ef to your computer and use it in GitHub Desktop.
/* Renato Lazaro - Custom - Adicionado o campo Ramal de contato */
echo "<tr class='tab_bg_1'>";
echo "<th style='width:$colsize1%'>".$tt->getBeginHiddenFieldText('name');
printf(__('%1$s%2$s'), __('Ramal'), $tt->getMandatoryMark('name'));
echo $tt->getEndHiddenFieldText('name')."</th>";
echo "<td colspan='3'>";
if (!$ID
|| $canupdate_descr) {
echo $tt->getBeginHiddenFieldValue('name');
/* Renato Lazaro - Custom - Campo ramal obrigatório */
echo "<input type='text' style='width:98%' maxlength=250 required><required".
" value=\"".Html::cleanInputText($this->fields["name"])."\">";
echo $tt->getEndHiddenFieldValue('name', $this);
} else {
if (empty($this->fields["name"])) {
_e('Without title');
} else {
echo $this->fields["name"];
}
}
echo "</td>";
echo "</tr>";
/* Renato Lazaro - Custom - Adicionado o campo Ramal de contato*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment