当前位置: 首页>>代码示例>>PHP>>正文


PHP get_validate_record_js函数代码示例

本文整理汇总了PHP中get_validate_record_js函数的典型用法代码示例。如果您正苦于以下问题:PHP get_validate_record_js函数的具体用法?PHP get_validate_record_js怎么用?PHP get_validate_record_js使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_validate_record_js函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getForm

    function getForm($prefix, $mod = '', $form = '')
    {
        if (!ACLController::checkAccess('ProspectLists', 'edit', true)) {
            return '';
        }
        if (!empty($mod)) {
            global $current_language;
            $mod_strings = return_module_language($current_language, $mod);
        } else {
            global $mod_strings;
        }
        global $app_strings, $current_user;
        $lbl_save_button_title = $app_strings['LBL_SAVE_BUTTON_TITLE'];
        $lbl_save_button_key = $app_strings['LBL_SAVE_BUTTON_KEY'];
        $lbl_save_button_label = $app_strings['LBL_SAVE_BUTTON_LABEL'];
        $user_id = $current_user->id;
        $the_form = get_left_form_header($mod_strings['LBL_NEW_FORM_TITLE']);
        $the_form .= <<<EOQ
\t\t<form name="{$prefix}ProspectListSave" onSubmit="return check_form('{$prefix}ProspectListSave');" method="POST" action="index.php">
\t\t\t<input type="hidden" name="{$prefix}module" value="ProspectLists">
\t\t\t<input type="hidden" name="{$prefix}action" value="Save">
\t\t\t<input type="hidden" name="assigned_user_id" value='{$user_id}'>
EOQ;
        $the_form .= $this->getFormBody($prefix, $mod, $prefix . "ProspectListSave");
        $the_form .= <<<EOQ
\t\t<p><input title="{$lbl_save_button_title}" accessKey="{$lbl_save_button_key}" class="button" type="submit" name="button" value="  {$lbl_save_button_label}  " ></p>
\t\t</form>

EOQ;
        $the_form .= get_left_form_footer();
        $the_form .= get_validate_record_js();
        return $the_form;
    }
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:33,代码来源:ProspectListFormBase.php

示例2: get_new_record_form

/**
 * Create HTML form to enter a new record with the minimum necessary fields.
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 */
function get_new_record_form()
{
    global $app_strings;
    global $app_list_strings;
    global $mod_strings;
    global $currentModule;
    global $current_user;
    global $timedate;
    $the_form = get_left_form_header($mod_strings['LBL_NEW_FORM_TITLE']);
    $form = new XTemplate('modules/Campaigns/Forms.html');
    $module_select = empty($_REQUEST['module_select']) ? '' : $_REQUEST['module_select'];
    $form->assign('MOD', $mod_strings);
    $form->assign('APP', $app_strings);
    $form->assign('THEME', SugarThemeRegistry::current()->__toString());
    $form->assign("JAVASCRIPT", get_set_focus_js() . get_validate_record_js());
    $form->assign("STATUS_OPTIONS", get_select_options_with_id($app_list_strings['campaign_status_dom'], "Planning"));
    $form->assign("TYPE_OPTIONS", get_select_options_with_id($app_list_strings['campaign_type_dom'], ""));
    $form->assign("USER_ID", $current_user->id);
    $form->assign("TEAM_ID", sprintf('<input type="hidden" name="team_id" value="%s">', $current_user->default_team));
    $form->assign("CALENDAR_LANG", "en");
    $form->assign("USER_DATEFORMAT", '(' . $timedate->get_user_date_format() . ')');
    $form->assign("CALENDAR_DATEFORMAT", $timedate->get_cal_date_format());
    $form->parse('main');
    $the_form .= $form->text('main');
    $focus = BeanFactory::getBean('Campaigns');
    $javascript = new javascript();
    $javascript->setFormName('quick_save');
    $javascript->setSugarBean($focus);
    $javascript->addRequiredFields('');
    $jscript = $javascript->getScript();
    $the_form .= $jscript . get_left_form_footer();
    return $the_form;
}
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:39,代码来源:Forms.php

示例3: getForm

    function getForm($prefix, $mod = '')
    {
        if (!empty($mod)) {
            global $current_language;
            $mod_strings = return_module_language($current_language, $mod);
        } else {
            global $mod_strings;
        }
        global $app_strings;
        global $app_list_strings;
        $lbl_save_button_title = $app_strings['LBL_SAVE_BUTTON_TITLE'];
        $lbl_save_button_key = $app_strings['LBL_SAVE_BUTTON_KEY'];
        $lbl_save_button_label = $app_strings['LBL_SAVE_BUTTON_LABEL'];
        $the_form = get_left_form_header($mod_strings['LBL_NEW_FORM_TITLE']);
        $the_form .= <<<EOQ

\t\t\t\t<form name="{$prefix}EmailTemplateSave" onSubmit="return check_form('{$prefix}EmailTemplateSave')" method="POST" action="index.php">
\t\t\t\t\t<input type="hidden" name="{$prefix}module" value="EmailTemplates">
\t\t\t\t\t<input type="hidden" name="{$prefix}action" value="Save">
EOQ;
        $the_form .= $this->getFormBody($prefix, $mod, "{$prefix}EmailTemplateSave", "20");
        $the_form .= <<<EOQ
\t\t\t\t<p><input title="{$lbl_save_button_title}" accessKey="{$lbl_save_button_key}" class="button" type="submit" name="button" value="  {$lbl_save_button_label}  " ></p>
\t\t\t\t</form>

EOQ;
        $the_form .= get_left_form_footer();
        $the_form .= get_validate_record_js();
        return $the_form;
    }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:30,代码来源:EmailTemplateFormBase.php

示例4: get_new_record_form

function get_new_record_form()
{
    $the_form = '<table width="100%" class="leftFormTable" cellpadding="0" cellspacing="0" border="0" align="center"><tbody><tr>';
    $the_form .= '<td class="leftFormHeader" align="left" height="20" nowrap="nowrap" valign="middle">Folders</td></tbody></tr></table>';
    $the_form .= '<table width="100%" cellpadding="2" cellspacing="0" border="0" align="center" class="leftFormBorder1"><tr> <form><td nowrap>';
    $the_boxes = array();
    if (is_array($list)) {
        foreach ($list as $key => $val) {
            $the_boxes[] = $val->name;
        }
    }
    sort($the_boxes);
    for ($i = 0; $i < count($the_boxes); $i++) {
        $the_form .= "<a href='index.php?module=Webmails&action=index&mailbox=" . preg_replace(array("/\\{.*?\\}/i"), array(""), $the_boxes[$i]) . "' id='" . $the_boxes[$i] . "'>" . preg_replace(array("/\\{.*?\\}/i"), array(""), $the_boxes[$i]) . "</a><br>";
    }
    $the_form .= get_left_form_footer();
    $the_form .= get_validate_record_js();
    return $the_form;
}
开发者ID:casati-dolibarr,项目名称:corebos,代码行数:19,代码来源:Forms.php

示例5: QuickSearchDefaults

// handle Create $module then Cancel
if (empty($_REQUEST['return_id'])) {
    $xtpl->assign("RETURN_ACTION", 'index');
}
if (isset($_REQUEST['campaign_id'])) {
    $xtpl->assign("CAMPAIGN_ID", $_REQUEST['campaign_id']);
}
$xtpl->assign("THEME", $theme);
$xtpl->assign("IMAGE_PATH", $image_path);
$xtpl->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']);
require_once 'include/QuickSearchDefaults.php';
$qsd = new QuickSearchDefaults();
$sqs_objects = array('assigned_user_name' => $qsd->getQSUser());
$quicksearch_js = $qsd->getQSScripts();
$quicksearch_js .= '<script type="text/javascript" language="javascript">sqs_objects = ' . $json->encode($sqs_objects) . '</script>';
$xtpl->assign("JAVASCRIPT", get_set_focus_js() . get_validate_record_js() . $quicksearch_js);
if (empty($focus->assigned_user_id) && empty($focus->id)) {
    $focus->assigned_user_id = $current_user->id;
}
if (empty($focus->assigned_name) && empty($focus->id)) {
    $focus->assigned_user_name = $current_user->user_name;
}
$xtpl->assign("ASSIGNED_USER_OPTIONS", get_select_options_with_id(get_user_array(TRUE, "Active", $focus->assigned_user_id), $focus->assigned_user_id));
$xtpl->assign("ASSIGNED_USER_NAME", $focus->assigned_user_name);
$xtpl->assign("ASSIGNED_USER_ID", $focus->assigned_user_id);
$xtpl->assign("DATE_ENTERED", $focus->date_entered);
$xtpl->assign("DATE_MODIFIED", $focus->date_modified);
$xtpl->assign("CREATED_BY", $focus->created_by_name);
$xtpl->assign("MODIFIED_BY", $focus->modified_by_name);
$xtpl->assign("ID", $focus->id);
$xtpl->assign("NAME", $focus->name);
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:EditView.php

示例6: setObjectValuesFromRequest

    $mode = 'create';
    //When duplicating the user the password fields should be empty
    $focus->column_fields['user_password'] = '';
    $focus->column_fields['confirm_password'] = '';
}
if (empty($focus->column_fields['time_zone'])) {
    $focus->column_fields['time_zone'] = DateTimeField::getDBTimeZone();
}
if ($mode != 'edit') {
    setObjectValuesFromRequest($focus);
}
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
$log->info("User edit view");
$smarty->assign("JAVASCRIPT", get_validate_record_js());
$smarty->assign("UMOD", $mod_strings);
global $current_language;
$smod_strings = return_module_language($current_language, 'Settings');
$smarty->assign("MOD", $smod_strings);
$smarty->assign("CURRENT_USERID", $current_user->id);
$smarty->assign("APP", $app_strings);
if (isset($_REQUEST['error_string'])) {
    $smarty->assign("ERROR_STRING", "<font class='error'>Error: " . vtlib_purify($_REQUEST['error_string']) . "</font>");
}
if (isset($_REQUEST['return_module'])) {
    $smarty->assign("RETURN_MODULE", vtlib_purify($_REQUEST['return_module']));
    $RETURN_MODULE = vtlib_purify($_REQUEST['return_module']);
}
if (isset($_REQUEST['return_action'])) {
    $smarty->assign("RETURN_ACTION", vtlib_purify($_REQUEST['return_action']));
开发者ID:kduqi,项目名称:corebos,代码行数:31,代码来源:EditView.php

示例7: display

 /**
  * @see SugarView::display()
  */
 public function display()
 {
     global $mod_strings;
     global $app_list_strings;
     global $app_strings;
     global $current_user;
     global $sugar_config;
     echo $this->getModuleTitle(false);
     global $currentModule;
     $focus = Administration::getSettings();
     //retrieve all admin settings.
     $GLOBALS['log']->info("Mass Emailer(EmailMan) ConfigureSettings view");
     $this->ss->assign("MOD", $mod_strings);
     $this->ss->assign("APP", $app_strings);
     $this->ss->assign("RETURN_MODULE", "Administration");
     $this->ss->assign("RETURN_ACTION", "index");
     $this->ss->assign("MODULE", $currentModule);
     $this->ss->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']);
     $this->ss->assign("HEADER", get_module_title("EmailMan", "{MOD.LBL_CONFIGURE_SETTINGS}", true));
     $this->ss->assign("notify_fromaddress", $focus->settings['notify_fromaddress']);
     $this->ss->assign("notify_send_from_assigning_user", isset($focus->settings['notify_send_from_assigning_user']) && !empty($focus->settings['notify_send_from_assigning_user']) ? "checked='checked'" : "");
     $this->ss->assign("notify_on", $focus->settings['notify_on'] ? "checked='checked'" : "");
     $this->ss->assign("notify_fromname", $focus->settings['notify_fromname']);
     $this->ss->assign("notify_allow_default_outbound_on", !empty($focus->settings['notify_allow_default_outbound']) && $focus->settings['notify_allow_default_outbound'] ? "checked='checked'" : "");
     $this->ss->assign("mail_smtptype", $focus->settings['mail_smtptype']);
     $this->ss->assign("mail_smtpserver", $focus->settings['mail_smtpserver']);
     $this->ss->assign("mail_smtpport", $focus->settings['mail_smtpport']);
     $this->ss->assign("mail_smtpuser", $focus->settings['mail_smtpuser']);
     $this->ss->assign("mail_smtpauth_req", $focus->settings['mail_smtpauth_req'] ? "checked='checked'" : "");
     $this->ss->assign("mail_haspass", empty($focus->settings['mail_smtppass']) ? 0 : 1);
     $this->ss->assign("MAIL_SSL_OPTIONS", get_select_options_with_id($app_list_strings['email_settings_for_ssl'], $focus->settings['mail_smtpssl']));
     //Assign the current users email for the test send dialogue.
     $this->ss->assign("CURRENT_USER_EMAIL", $current_user->email1);
     $showSendMail = FALSE;
     $outboundSendTypeCSSClass = "yui-hidden";
     if (isset($sugar_config['allow_sendmail_outbound']) && $sugar_config['allow_sendmail_outbound']) {
         $showSendMail = TRUE;
         $app_list_strings['notifymail_sendtype']['sendmail'] = 'sendmail';
         $outboundSendTypeCSSClass = "";
     }
     $this->ss->assign("OUTBOUND_TYPE_CLASS", $outboundSendTypeCSSClass);
     $this->ss->assign("mail_sendtype_options", get_select_options_with_id($app_list_strings['notifymail_sendtype'], $focus->settings['mail_sendtype']));
     ///////////////////////////////////////////////////////////////////////////////
     ////	USER EMAIL DEFAULTS
     // editors
     $editors = $app_list_strings['dom_email_editor_option'];
     $newEditors = array();
     foreach ($editors as $k => $v) {
         if ($k != "") {
             $newEditors[$k] = $v;
         }
     }
     // preserve attachments
     $preserveAttachments = '';
     if (isset($sugar_config['email_default_delete_attachments']) && $sugar_config['email_default_delete_attachments'] == true) {
         $preserveAttachments = 'CHECKED';
     }
     $this->ss->assign('DEFAULT_EMAIL_DELETE_ATTACHMENTS', $preserveAttachments);
     ////	END USER EMAIL DEFAULTS
     ///////////////////////////////////////////////////////////////////////////////
     //setting to manage.
     //emails_per_run
     //tracking_entities_location_type default or custom
     //tracking_entities_location http://www.sugarcrm.com/track/
     //////////////////////////////////////////////////////////////////////////////
     ////	EMAIL SECURITY
     if (!isset($sugar_config['email_xss']) || empty($sugar_config['email_xss'])) {
         $sugar_config['email_xss'] = getDefaultXssTags();
     }
     foreach (unserialize(base64_decode($sugar_config['email_xss'])) as $k => $v) {
         $this->ss->assign($k . "Checked", 'CHECKED');
     }
     ////	END EMAIL SECURITY
     ///////////////////////////////////////////////////////////////////////////////
     require_once 'modules/Emails/Email.php';
     $email = BeanFactory::getBean('Emails');
     $this->ss->assign('ROLLOVER', $email->rolloverStyle);
     $this->ss->assign('THEME', $GLOBALS['theme']);
     $this->ss->assign("JAVASCRIPT", get_validate_record_js());
     $this->ss->display('modules/EmailMan/tpls/config.tpl');
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:84,代码来源:view.config.php

示例8: get_set_focus_js

    }
}
if ($focus->campaign_id) {
    $campaign_id = $focus->campaign_id;
} else {
    $campaign_id = $_REQUEST['campaign_id'];
}
$xtpl->assign("CAMPAIGN_ID", $campaign_id);
if (empty($time_ampm) || empty($focus->time_start)) {
    $time_start = $focus->time_start;
} else {
    $split = $timedate->splitTime($focus->time_start, $timedate->get_time_format());
    $time_start = $split['h'] . $timedate->timeSeparator() . $split['m'];
}
$xtpl->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']);
$xtpl->assign("JAVASCRIPT", get_set_focus_js() . get_validate_record_js());
$xtpl->assign("DATE_ENTERED", $focus->date_entered);
$xtpl->assign("DATE_MODIFIED", $focus->date_modified);
$xtpl->assign("ID", $focus->id);
$xtpl->assign("NAME", $focus->name);
$xtpl->assign("FROM_NAME", $focus->from_name);
$xtpl->assign("FROM_ADDR", $focus->from_addr);
$xtpl->assign("REPLY_NAME", $focus->reply_to_name);
$xtpl->assign("REPLY_ADDR", $focus->reply_to_addr);
$xtpl->assign("DATE_START", $focus->date_start);
$xtpl->assign("TIME_START", $time_start);
$xtpl->assign("TIME_FORMAT", '(' . $timedate->get_user_time_format() . ')');
$email_templates_arr = get_bean_select_array(true, 'EmailTemplate', 'name', "(type IS NULL OR type='' OR type='campaign')", 'name');
if ($focus->template_id) {
    $xtpl->assign("TEMPLATE_ID", $focus->template_id);
    $xtpl->assign("EMAIL_TEMPLATE_OPTIONS", get_select_options_with_id($email_templates_arr, $focus->template_id));
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:31,代码来源:EditView.php

示例9: getForm

    function getForm($prefix, $mod = 'Opportunities')
    {
        if (!ACLController::checkAccess('Opportunities', 'edit', true)) {
            return '';
        }
        if (!empty($mod)) {
            global $current_language;
            $mod_strings = return_module_language($current_language, $mod);
        } else {
            global $mod_strings;
        }
        global $app_strings;
        global $sugar_version, $sugar_config;
        $lbl_save_button_title = $app_strings['LBL_SAVE_BUTTON_TITLE'];
        $lbl_save_button_key = $app_strings['LBL_SAVE_BUTTON_KEY'];
        $lbl_save_button_label = $app_strings['LBL_SAVE_BUTTON_LABEL'];
        $the_form = get_left_form_header($mod_strings['LBL_NEW_FORM_TITLE']);
        $the_form .= <<<EOQ
\t\t<form name="{$prefix}OppSave" onSubmit="return check_form('{$prefix}OppSave')" method="POST" action="index.php">
\t\t\t<input type="hidden" name="{$prefix}module" value="Opportunities">
\t\t\t<input type="hidden" name="{$prefix}action" value="Save">
EOQ;
        $the_form .= $this->getFormBody($prefix, $mod, "{$prefix}OppSave");
        $the_form .= <<<EOQ
\t\t<input title="{$lbl_save_button_title}" accessKey="{$lbl_save_button_key}" class="button" type="submit" name="button" value="  {$lbl_save_button_label}  " >
\t\t</form>

EOQ;
        $the_form .= get_left_form_footer();
        $the_form .= get_validate_record_js();
        return $the_form;
    }
开发者ID:MexinaD,项目名称:SuiteCRM,代码行数:32,代码来源:OpportunityFormBase.php

示例10: getFormFooter

 function getFormFooter($prefic, $mod = '')
 {
     if (!ACLController::checkAccess('Calls', 'edit', true)) {
         return '';
     }
     global $app_strings;
     global $app_list_strings;
     $lbl_save_button_title = $app_strings['LBL_SAVE_BUTTON_TITLE'];
     $lbl_save_button_key = $app_strings['LBL_SAVE_BUTTON_KEY'];
     $lbl_save_button_label = $app_strings['LBL_SAVE_BUTTON_LABEL'];
     $the_form = "\t<p><input title='{$lbl_save_button_title}' accessKey='{$lbl_save_button_key}' class='button' type='submit' name='button' value=' {$lbl_save_button_label} ' ></p></form>";
     $the_form .= get_left_form_footer();
     $the_form .= get_validate_record_js();
     return $the_form;
 }
开发者ID:netconstructor,项目名称:sugarcrm_dev,代码行数:15,代码来源:CallFormBase.php

示例11: display

 /**
  * @see SugarView::display()
  */
 public function display()
 {
     global $mod_strings;
     global $app_list_strings;
     global $app_strings;
     global $current_user;
     echo $this->getModuleTitle();
     global $currentModule;
     $focus = new Administration();
     $focus->retrieveSettings();
     //retrieve all admin settings.
     $GLOBALS['log']->info("Mass Emailer(EmailMan) ConfigureSettings view");
     $this->ss->assign("MOD", $mod_strings);
     $this->ss->assign("APP", $app_strings);
     $this->ss->assign("THEME", SugarThemeRegistry::current()->__toString());
     $this->ss->assign("RETURN_MODULE", "Administration");
     $this->ss->assign("RETURN_ACTION", "index");
     $this->ss->assign("MODULE", $currentModule);
     $this->ss->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']);
     if (isset($focus->settings['massemailer_campaign_emails_per_run']) && !empty($focus->settings['massemailer_campaign_emails_per_run'])) {
         $this->ss->assign("EMAILS_PER_RUN", $focus->settings['massemailer_campaign_emails_per_run']);
     } else {
         $this->ss->assign("EMAILS_PER_RUN", 500);
     }
     if (!isset($focus->settings['massemailer_tracking_entities_location_type']) or empty($focus->settings['massemailer_tracking_entities_location_type']) or $focus->settings['massemailer_tracking_entities_location_type'] == '1') {
         $this->ss->assign("default_checked", "checked");
         $this->ss->assign("TRACKING_ENTRIES_LOCATION_STATE", "disabled");
         $this->ss->assign("TRACKING_ENTRIES_LOCATION", $mod_strings['TRACKING_ENTRIES_LOCATION_DEFAULT_VALUE']);
     } else {
         $this->ss->assign("userdefined_checked", "checked");
         $this->ss->assign("TRACKING_ENTRIES_LOCATION", $focus->settings["massemailer_tracking_entities_location"]);
     }
     // Change the default campaign to not store a copy of each message.
     if (!empty($focus->settings['massemailer_email_copy']) and $focus->settings['massemailer_email_copy'] == '1') {
         $this->ss->assign("yes_checked", "checked='checked'");
     } else {
         $this->ss->assign("no_checked", "checked='checked'");
     }
     $email = new Email();
     $this->ss->assign('ROLLOVER', $email->rolloverStyle);
     $this->ss->assign("JAVASCRIPT", get_validate_record_js());
     $this->ss->display("modules/EmailMan/tpls/campaignconfig.tpl");
 }
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:46,代码来源:view.campaignconfig.php

示例12: isset

$preserveAttachments = '';
if (isset($sugar_config['email_default_delete_attachments']) && $sugar_config['email_default_delete_attachments'] == true) {
    $preserveAttachments = 'CHECKED';
}
$xtpl->assign('DEFAULT_EMAIL_DELETE_ATTACHMENTS', $preserveAttachments);
////	END USER EMAIL DEFAULTS
///////////////////////////////////////////////////////////////////////////////
//setting to manage.
//emails_per_run
//tracking_entities_location_type default or custom
//tracking_entities_location http://www.sugarcrm.com/track/
$outboundRaw = isset($sugar_config['email_outbound_save_raw']) && $sugar_config['email_outbound_save_raw'] == true ? 'email_outbound_save_raw_yes' : 'email_outbound_save_raw_no';
$xtpl->assign($outboundRaw, 'CHECKED');
//////////////////////////////////////////////////////////////////////////////
////	EMAIL SECURITY
if (!isset($sugar_config['email_xss']) || empty($sugar_config['email_xss'])) {
    $sugar_config['email_xss'] = getDefaultXssTags();
}
foreach (unserialize(base64_decode($sugar_config['email_xss'])) as $k => $v) {
    $xtpl->assign($k . "Checked", 'CHECKED');
}
if (!isset($sugar_config['email_preserve_raw']) || empty($sugar_config['email_preserve_raw'])) {
    $sugar_config['email_preserve_raw'] = 0;
}
$xtpl->assign("preserve_rawChecked", empty($sugar_config['email_preserve_raw']) ? "" : "CHECKED");
//clean_xss('here');
////	END EMAIL SECURITY
///////////////////////////////////////////////////////////////////////////////
$xtpl->assign("JAVASCRIPT", get_validate_record_js());
$xtpl->parse("main");
$xtpl->out("main");
开发者ID:nerdystudmuffin,项目名称:dashlet-subpanels,代码行数:31,代码来源:config.php

示例13: get_new_record_form

/**
 * Create HTML form to enter a new record with the minimum necessary fields.
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 */
function get_new_record_form()
{
    global $app_strings;
    global $app_list_strings;
    global $mod_strings;
    global $currentModule;
    global $theme;
    global $current_user;
    $the_form = get_left_form_header($mod_strings['LBL_NEW_FORM_TITLE']);
    $form = new XTemplate('modules/Campaigns/Forms.html');
    global $timedate;
    $module_select = empty($_REQUEST['module_select']) ? '' : $_REQUEST['module_select'];
    $form->assign('MOD', $mod_strings);
    $form->assign('APP', $app_strings);
    $form->assign('THEME', $theme);
    $form->assign("JAVASCRIPT", get_set_focus_js() . get_validate_record_js());
    $form->assign("STATUS_OPTIONS", get_select_options_with_id($app_list_strings['campaign_status_dom'], "Planning"));
    $form->assign("TYPE_OPTIONS", get_select_options_with_id($app_list_strings['campaign_type_dom'], ""));
    $form->assign("USER_ID", $current_user->id);
    $form->assign("CALENDAR_LANG", "en");
    $form->assign("USER_DATEFORMAT", '(' . $timedate->get_user_date_format() . ')');
    $form->assign("CALENDAR_DATEFORMAT", $timedate->get_cal_date_format());
    $form->parse('main');
    $the_form .= $form->text('main');
    require_once 'modules/Campaigns/Campaign.php';
    $focus = new Campaign();
    require_once 'include/javascript/javascript.php';
    $javascript = new javascript();
    $javascript->setFormName('quick_save');
    $javascript->setSugarBean($focus);
    $javascript->addRequiredFields('');
    $jscript = $javascript->getScript();
    $the_form .= $jscript . get_left_form_footer();
    return $the_form;
}
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:41,代码来源:Forms.php


注:本文中的get_validate_record_js函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。