Contact Edit: Integrated certificate creation, if available.

This commit is contained in:
Nate Jones
2014-08-23 06:50:54 +00:00
parent bbc598a054
commit ae13d5b618
2 changed files with 8 additions and 0 deletions

View File

@@ -198,6 +198,11 @@
$text['button-invoices']['pt-pt'] = "Facturas";
$text['button-invoices']['fr-fr'] = "Factures";
$text['button-certificate']['en-us'] = "Certificate";
$text['button-certificate']['es-cl'] = "Certificado";
$text['button-certificate']['pt-pt'] = "Certificado";
$text['button-certificate']['fr-fr'] = "Certificat";
// contact phones
$text['title-contact_phones-add']['en-us'] = "Contact Phone Add";
$text['title-contact_phones-add']['es-cl'] = "Agregar Número de Contacto";

View File

@@ -281,6 +281,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
if ($action == "update" && is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/invoices')) {
echo " <input type='button' class='btn' name='' alt='".$text['button-invoices']."' onclick=\"window.location='".PROJECT_PATH."/app/invoices/invoices.php?id=$contact_uuid'\" value='".$text['button-invoices']."'>\n";
}
if ($action == "update" && is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/certificates')) {
echo " <input type='button' class='btn' name='' alt='".$text['button-certificate']."' onclick=\"window.location='".PROJECT_PATH."/app/certificates/index.php?name=".urlencode($contact_name_given." ".$contact_name_family)."'\" value='".$text['button-certificate']."'>\n";
}
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
echo "</td>\n";
echo "</tr>\n";