summaryrefslogtreecommitdiff
path: root/add_xref.php
diff options
context:
space:
mode:
author"Lester Caine ext:(%22) <lester@lsces.co.uk>2011-07-07 18:50:02 +0100
committer"Lester Caine ext:(%22) <lester@lsces.co.uk>2011-07-07 18:50:02 +0100
commite4670d75b57ddee43ed2d66b85738068f11953c7 (patch)
treea4c56fc960822416d6974c16d34f5a28a1633eab /add_xref.php
parent8a6c1f21e542e546b623a36e7409ad0ce039bdd1 (diff)
downloadcontact-e4670d75b57ddee43ed2d66b85738068f11953c7.tar.gz
contact-e4670d75b57ddee43ed2d66b85738068f11953c7.tar.bz2
contact-e4670d75b57ddee43ed2d66b85738068f11953c7.zip
Move templates to their own selectable file so that add function can be built selectably.
Add_xref has been rebuilt to allow the correct template to display as a different format is selected.
Diffstat (limited to 'add_xref.php')
-rw-r--r--add_xref.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/add_xref.php b/add_xref.php
index 4832e4c..8c405fa 100644
--- a/add_xref.php
+++ b/add_xref.php
@@ -38,6 +38,8 @@ if (isset($_REQUEST["fCancel"])) {
if( !isset( $_REQUEST['xref_type'] ) ) $_REQUEST['xref_type'] = 0;
+$gBitSystem->setOnloadScript( 'updateContactXrefFormat();' );
+
// formInfo might be set due to a error on submit
if( empty( $xrefInfo ) ) {
$xrefInfo = &$gContent->mInfo['xref_store'];
@@ -45,7 +47,13 @@ if( empty( $xrefInfo ) ) {
$xrefInfo['xref_type'] = $_REQUEST['xref_type'];
}
$xrefInfo['xref_type_list'] = $gContent->getXrefTypeList( $xrefInfo['xref_type'] );
+$xrefInfo['xref_format_list'] = $gContent->getXrefFormatList();
+
+// Don't use ckeditor for text fields '
$gContent->mInfo['format_guid'] = 'text';
+// Default dates for creating new record
+$xrefInfo['ignore_start_date'] = 'n';
+$xrefInfo['ignore_end_date'] = 'y';
$gBitSmarty->assign_by_ref( 'xrefInfo', $xrefInfo );
$gBitSmarty->assign_by_ref( 'title', $gContent->mInfo['title'] );