Enhance ticket module
This commit is contained in:
parent
ea08dfff5a
commit
5bb2531364
@ -169,13 +169,15 @@ class FormTicket
|
|||||||
if ($this->withref) {
|
if ($this->withref) {
|
||||||
// Ref
|
// Ref
|
||||||
$defaultref = $ticketstat->getDefaultRef();
|
$defaultref = $ticketstat->getDefaultRef();
|
||||||
print '<tr><td class="titlefieldcreate"><span class="fieldrequired">'.$langs->trans("Ref").'</span></td><td><input size="18" type="text" name="ref" value="'.(GETPOST("ref", 'alpha') ? GETPOST("ref", 'alpha') : $defaultref).'"></td></tr>';
|
print '<tr><td class="titlefieldcreate"><span class="fieldrequired">'.$langs->trans("Ref").'</span></td><td>';
|
||||||
|
print '<input type="text" name="ref" value="'.dol_escape_htmltag(GETPOST("ref", 'alpha') ? GETPOST("ref", 'alpha') : $defaultref).'">';
|
||||||
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// TITLE
|
// TITLE
|
||||||
if ($this->withemail) {
|
if ($this->withemail) {
|
||||||
print '<tr><td class="titlefield"><label for="email"><span class="fieldrequired">'.$langs->trans("Email").'</span></label></td><td>';
|
print '<tr><td class="titlefield"><label for="email"><span class="fieldrequired">'.$langs->trans("Email").'</span></label></td><td>';
|
||||||
print '<input class="text minwidth200" id="email" name="email" value="'.(GETPOST('email', 'alpha') ? GETPOST('email', 'alpha') : $subject).'" />';
|
print '<input class="text minwidth200" id="email" name="email" value="'.(GETPOST('email', 'alpha') ? GETPOST('email', 'alpha') : $subject).'" autofocus>';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -313,7 +315,7 @@ class FormTicket
|
|||||||
if ($this->withfile == 2) { // Can add other files
|
if ($this->withfile == 2) { // Can add other files
|
||||||
$out .= '<input type="file" class="flat" id="addedfile" name="addedfile" value="'.$langs->trans("Upload").'" />';
|
$out .= '<input type="file" class="flat" id="addedfile" name="addedfile" value="'.$langs->trans("Upload").'" />';
|
||||||
$out .= ' ';
|
$out .= ' ';
|
||||||
$out .= '<input type="submit" class="button smallpaddingimp" id="addfile" name="addfile" value="'.$langs->trans("MailingAddFile").'" />';
|
$out .= '<input type="submit" class="button smallpaddingimp reposition" id="addfile" name="addfile" value="'.$langs->trans("MailingAddFile").'" />';
|
||||||
}
|
}
|
||||||
$out .= "</td></tr>\n";
|
$out .= "</td></tr>\n";
|
||||||
|
|
||||||
@ -453,6 +455,8 @@ class FormTicket
|
|||||||
}
|
}
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
|
print '<input type="hidden" name="page_y">'."\n";
|
||||||
|
|
||||||
print "</form>\n";
|
print "</form>\n";
|
||||||
print "<!-- End form TICKET -->\n";
|
print "<!-- End form TICKET -->\n";
|
||||||
}
|
}
|
||||||
@ -1083,7 +1087,7 @@ class FormTicket
|
|||||||
if ($this->withfile == 2) { // Can add other files
|
if ($this->withfile == 2) { // Can add other files
|
||||||
$out .= '<input type="file" class="flat" id="addedfile" name="addedfile" value="'.$langs->trans("Upload").'" />';
|
$out .= '<input type="file" class="flat" id="addedfile" name="addedfile" value="'.$langs->trans("Upload").'" />';
|
||||||
$out .= ' ';
|
$out .= ' ';
|
||||||
$out .= '<input type="submit" class="button smallpaddingimp" id="'.$addfileaction.'" name="'.$addfileaction.'" value="'.$langs->trans("MailingAddFile").'" />';
|
$out .= '<input type="submit" class="button smallpaddingimp reposition" id="'.$addfileaction.'" name="'.$addfileaction.'" value="'.$langs->trans("MailingAddFile").'" />';
|
||||||
}
|
}
|
||||||
$out .= "</td></tr>\n";
|
$out .= "</td></tr>\n";
|
||||||
|
|
||||||
@ -1100,6 +1104,8 @@ class FormTicket
|
|||||||
}
|
}
|
||||||
print "</center>\n";
|
print "</center>\n";
|
||||||
|
|
||||||
|
print '<input type="hidden" name="page_y">'."\n";
|
||||||
|
|
||||||
print "</form>\n";
|
print "</form>\n";
|
||||||
print "<!-- End form TICKET -->\n";
|
print "<!-- End form TICKET -->\n";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -79,6 +79,7 @@ $extrafields->fetch_name_optionals_label($object->table_element);
|
|||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$parameters = array(
|
$parameters = array(
|
||||||
'id' => $id,
|
'id' => $id,
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user