本文整理汇总了PHP中Event::setSecure方法的典型用法代码示例。如果您正苦于以下问题:PHP Event::setSecure方法的具体用法?PHP Event::setSecure怎么用?PHP Event::setSecure使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Event
的用法示例。
在下文中一共展示了Event::setSecure方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: save_inventory_setting
if (type == 'so_num_prefix') {
$("#so_prefix_add_block_hidden").hide('slow');
$("#so_prefix_value_block").show('slow');
}
}
function save_inventory_setting(type) {
var setting_val = $("#"+type).val();
var qry_string = "&type="+type+"&value="+setting_val;
$.ajax({
type: "POST",
<?php
$e_save_tax = new Event("CRMGlobalSettings->eventAjaxUpdateInventoryPrefixes");
$e_save_tax->setEventControler("/ajax_evctl.php");
$e_save_tax->setSecure(false);
?>
url: "<?php
echo $e_save_tax->getUrl();
?>
"+qry_string,
beforeSubmit: function() {
//$("#"+tax_type+"_action_"+id).html('<img src="/themes/images/ajax-loader1.gif" border="0" />');
},
success: function(html) {
$("#"+type+"_val").html(setting_val);
cancel_inventory_setting(type);
}
});
}
</script>
示例2: getItemSuggestion
",
data: "idcontact="+value,
success: function(address){
$("#invoice_address").val(address);
}
});
}
function getItemSuggestion(text_id,select_id){
var text_val = document.getElementById(text_id).value;
$.ajax({
type: "GET",
<?php
$e_suggestion_item = new Event("InvoiceEditSave->eventAjaxItemSuggestion");
$e_suggestion_item->setEventControler("ajax_evctl.php");
$e_suggestion_item->setSecure(false);
?>
url: "<?php
echo $e_suggestion_item->getUrl();
?>
",
data: "text="+text_val,
success: function(item_suggestion){
if(item_suggestion == 'No'){
$("#"+select_id).slideUp(100);
}else{
$("#"+select_id).html(item_suggestion);
if ($("#"+select_id).is(":hidden")) {
$("#"+select_id).slideDown(200);
}
}
示例3: Event
</div>
<?php
$import_vcard = new Event("VBook->eventVCardImport");
$import_vcard->setLevel(20);
$import_vcard->addParam("goto", "vcard_import.php");
if ($_SESSION["page_from"] == 'reg') {
$import_vcard->addParam("fromReg", "Yes");
} else {
$import_vcard->addParam("fromReg", "No");
}
$import_vcard->addParam("iduser", $_SESSION['do_User']->iduser);
////$import_vcard->addEventAction("ContactView->eventRebuildContactUserTable", 30);
$import_vcard->setGotFile(true);
$import_vcard->setSecure(true);
$htmlform = $import_vcard->getFormHeader();
$htmlform .= $import_vcard->getFormEvent();
$htmlform .= '<div class="import_cont3"><b>' . _('File Location: ') . ' </b>';
$htmlform .= '<input type="file" name="fields[contact_vcard]"></div>';
$htmlform .= '<div class="import_cont3"><b>' . _('Set Tag ') . '<input type="text" name="fields[import_tag]" value="import_vCard_' . date("Y-m-d") . '">' . _(' on the imported contacts.') . '</b></div>';
$htmlform .= '<div class="import_cont3">' . $import_vcard->getFormFooter("Import") . '</div>';
$htmlform .= "\n";
echo $htmlform;
?>
<?php
if ($_GET['msg']) {
echo '<div class="import_msg1">' . htmlentities($_GET['msg']) . '</div>';
}
?>
</div>
示例4: del_report
"/>
</div>
</div>
<script>
function del_report(idreport,report_folder,folder_name) {
$("#report_delete_confirm").modal('show');
$("#report_delete_confirm .btn-primary").click(function() {
$("#report_delete_confirm").modal('hide');
$.ajax({
type: "POST",
<?php
$e_del_single = new Event("CRMDeleteEntity->eventAjaxDeleteSingleEntity");
$e_del_single->setEventControler("/ajax_evctl.php");
$e_del_single->addParam('module', $module);
$e_del_single->addParam('referrer', 'list');
$e_del_single->setSecure(false);
?>
url: "<?php
echo $e_del_single->getUrl();
?>
&sqrecord="+idreport,
success: function(html) {
ret_data = html.trim();
if (ret_data == '0') {
var err_element = '<div class="alert alert-error sqcrm-top-message" id="sqcrm_auto_close_messages"><a href="#" class="close" data-dismiss="alert">×</a>' ;
var err_msg = err_element+'<strong>'+UNAUTHORIZED_DELETE+'</strong></div>';
$("#message").html(err_msg);
$("#message").show();
} else {
$.ajax({
type: "GET",
示例5: loadContacts
}
});
}
function loadContacts() {
var search_key = document.getElementById('contacts_search').value;
var filter = document.getElementById('filter').value;
//alert(search_key);
$('div#last_contact_loader').html('<img src="/images/loader1.gif" alt="" />');
$.ajax({
type: "GET",
<?php
$e_contacts = new Event("do_Contacts->autoLoadContactsOnScrollDown");
$e_contacts->setEventControler("ajax_evctl.php");
$e_contacts->setSecure(false);
?>
url: "<?php
echo $e_contacts->getUrl();
?>
",
data: "searchkey="+search_key+"&filter="+filter,
success: function(data){
$(".message_box:last").after(data);
$('div#last_contact_loader').empty();
}
});
}
$(document).ready(function() {
示例6: getEmailTemplateText
if (merge.selectedIndex > 0) {
var mergefield = merge[merge.selectedIndex].value;
var textarea = dijit.byId("editor_bodyhtml");
textarea.attr("value", textarea.attr("value")+mergefield);
merge.selectedIndex = 0;
}
}
function getEmailTemplateText(template){
var select_id = template[template.selectedIndex].value;
$.ajax({
type: "GET",
<?php
$e_email_temp = new Event("do_auto_responder->eventAjaxGetEmailTemplateText");
$e_email_temp->setEventControler("ajax_evctl.php");
$e_email_temp->setSecure(false);
?>
url: "<?php
echo $e_email_temp->getUrl();
?>
",
data: "temlid="+select_id,
success: function(template_text){
var textarea = dijit.byId("editor_bodyhtml");
textarea.attr("value", template_text);
}
});
}
function addAutoResponderEmail(){
$("#ptask_ctlbar_1").slideToggle("slow");
}
示例7: showOpt
}
//echo $iduser_for_feed;
?>
<script type="text/javascript">
//<![CDATA[
function showOpt(){
$("#more_options").hide(0);
$("#notes_options").show("fast");
}
function showFullNote(idnote){
$.ajax({
type: "GET",
<?php
$e_ContactNote = new Event("ContactNoteExpend->eventAjaxGetContactNote");
$e_ContactNote->setEventControler("ajax_evctl.php");
$e_ContactNote->setSecure(false);
?>
url: "<?php
echo $e_ContactNote->getUrl();
?>
",
data: "idnote="+idnote,
success: function(notetext){
$("#notepreview"+idnote)[0].innerHTML = notetext;
}
});
}
$(document).ready(function() {
$("div[id^=notetext]").hover(function(){$("div[id^=trashcan]",this).show("fast");},function(){$("div[id^=trashcan]",this).hide("fast");});
});
//]]>
示例8: Event
$("#<?php
echo $fielddisp . '_' . $field;
?>
").attr('value',values[1]);
$("#<?php
echo $field;
?>
").attr('value',values[0]);
if (confirm('Do you want to copy the contact address ?')) {
var qry_string = "&id="+return_data;
$.ajax({
type: "GET",
<?php
$e_org = new Event("Contacts->eventGetContactsAddress");
$e_org->setEventControler("/ajax_evctl.php");
$e_org->setSecure(false);
?>
url: "<?php
echo $e_org->getUrl();
?>
"+qry_string,
success: function(html) {
obj = JSON.parse(html);
var pk = obj.id;
if (pk > 0) {
var field_prefix = '';
if (target_module == 'PurchaseOrder') {
field_prefix = 'po_';
}
$("#"+field_prefix+"billing_address").html(obj.cnt_mail_street);
$("#"+field_prefix+"billing_po_box").attr('value',obj.cnt_mail_pobox);
示例9: showDateOpt
document.location.href = "/task.php?idprojecttask="+idproject_task;
}
function showDateOpt(){
$("#due_sp_date").show(0);
$("#when_due").hide(0);
document.getElementById('sp_date_selected').value = "Yes";
}
function hideDateOpt(){
$("#due_sp_date").hide(0);
$("#when_due").show(0);
document.getElementById('sp_date_selected').value = "";
}
<?php
$e_PrioritySort = new Event("ProjectTask->eventAjaxPrioritySort");
$e_PrioritySort->setEventControler("ajax_evctl.php");
$e_PrioritySort->setSecure(false);
$strPrioritySortURL = $e_PrioritySort->getUrl();
?>
function moveTasks(TorB) {
var priorities="",checked="",unchecked="";
var priorities=$("#project_tasks").sortable("toArray");
$("input:checkbox").each(function(){
if(this.checked){
checked+=(checked=="")?"":"&";
checked+="pt[]="+$(this).parents("li").attr("id").substr(3);
}else{
unchecked+=(unchecked=="")?"":"&";
unchecked+="pt[]="+$(this).parents("li").attr("id").substr(3);
}
});
if(TorB==1){
示例10: function
echo $e_editForm->getUrl();
?>
",
data: "idtag_delete="+idtag,
success: function(){
$("#"+iddom).remove();
}
});
}
$(document).ready(function() {
$.ajax({
type: "GET",
<?php
$e_EventKey = new Event("EventKey->eventAjaxGetEventKey");
$e_EventKey->setEventControler("ajax_evctl.php");
$e_EventKey->setSecure(false);
?>
url: "<?php
echo $e_EventKey->getUrl();
?>
",
success: function(key){
EventKey = key;
}
});
$("div[id^=notetext]").hover(function(){$("div[id^=trashcan]",this).show("fast");},function(){$("div[id^=trashcan]",this).hide("fast");});
});
//]]>
</script>
<div class="mobile_main main">
示例11: _
echo _('Total');
?>
</th>
<th> </th>
</tr>
<?php
echo $_SESSION['InvoiceLine']->getNewFormFields(1);
?>
</table>
<a href="#" id="addOneMore"><?php
echo _('Add another');
?>
</a>
<?php
$e_addform = new Event($_SESSION['InvoiceLine']->getInvoiceLinePrefix() . "->eventAjaxInvoiceFormEntry");
$e_addform->setSecure(false);
$e_addform->setEventControler("ajax_evctl.php");
?>
<script type="text/javascript">
var InvoiceLineCount = 2;
$("#addOneMore").click(function(){
$.get("<?php
echo $e_addform->getUrl();
?>
&count="+InvoiceLineCount++, function(data){$("#invoice_list").append(data);});
return false;
});
</script>
<div class="invoice_edit_totals">
<table class="invoice_edit_totals_table" onclick="reCalculateAmount();">
<tr>
示例12: Contact
$do_contact = new Contact($GLOBALS['conx']);
$do_notes = new ContactNotes($GLOBALS['conx']);
$do_company = new Company($GLOBALS['conx']);
?>
<script type="text/javascript">
//<![CDATA[
function showOpt(){
$("#notes_options").show(0);
}
function showFullNote(idnote){
$.ajax({
type: "GET",
<?php
$e_CompanyNote = new Event("ContactNotes->eventAjaxGetCompanyNote");
$e_CompanyNote->setEventControler("ajax_evctl.php");
$e_CompanyNote->setSecure(false);
?>
url: "<?php
echo $e_CompanyNote->getUrl();
?>
",
data: "idnote="+idnote,
success: function(notetext){
$("#notepreview"+idnote)[0].innerHTML = notetext;
}
});
}
$(document).ready(function() {
$("div[id^=notetext]").hover(function(){$("div[id^=trashcan]",this).show("fast");},function(){$("div[id^=trashcan]",this).hide("fast");});
});
//]]>
示例13: return_delete_tax_confirm
$("#"+tbody_id).append('<tr id="'+tax_type+'_'+pk+'"><td id="'+tax_type+'_tax_name_'+pk+'">'+tax_name_val+'</td><td id="'+tax_type+'_tax_value_'+pk+'">'+tax_value_val+' %</td><td id="'+tax_type+'_action_'+pk+'"><a href="#" class="btn btn-primary btn-xs" onclick="edit_tax_inline_form(\''+pk+'\',\''+tax_type+'\')"><i class="glyphicon glyphicon-edit"></i></a> <a href="#" class="btn btn-primary btn-xs" onclick="return_delete_tax_confirm(\''+pk+'\',\''+tax_type+'\')"><i class="glyphicon glyphicon-trash"></i></a></td></tr>');
var add_block = tax_type+'_add_block';
var add_block_hidden = tax_type+'_add_block_hidden';
$('#'+add_block_hidden).hide("slow");
$('#'+add_block).show("slow");
}
});
}
function return_delete_tax_confirm(id,tax_type) {
$("#delete_confirm_tax").modal('show');
$("#delete_confirm_tax .btn-primary").off('click');
$("#delete_confirm_tax .btn-primary").click(function() {
$("#delete_confirm_tax").modal('hide');
var qry_string = "&tax_type="+tax_type+"&id="+id;
$.ajax({
type: "POST",
<?php
$e_del_tax = new Event("TaxSettings->eventDeleteTaxData");
$e_del_tax->setEventControler("/ajax_evctl.php");
$e_del_tax->setSecure(false);
?>
url: "<?php echo $e_del_tax->getUrl(); ?>"+qry_string,
success: function(html) {
var tr_id = tax_type+'_'+id ;
$("#"+tr_id).remove();
}
});
});
}
</script>
示例14: getUserTagList
/**
* Getuser tag list, display all the tags of a user
* with a link to generate a search and if search exists cumulate tags
* to narrow further a search.
* Currently this method is only for the contacts as it uses the do_Contacts object
*/
function getUserTagList($reference_type = "")
{
if (isset($_SESSION['last_tag_refresh'])) {
if ($_SESSION['last_tag_refresh'] < time() - 60) {
$_SESSION['last_tag_refresh'] = time();
$this->calculateTagSize();
}
} else {
$_SESSION['last_tag_refresh'] = time();
$this->calculateTagSize();
}
if ($_SESSION['tag_refresh_now']) {
$this->calculateTagSize();
$_SESSION['tag_refresh_now'] = false;
} else {
$_SESSION['tag_refresh_now'] = false;
}
if ($_SESSION['do_User']->getIsMobile()) {
$mobile = 'Yes';
}
$this->setLog("\n Tag list generation:\n-----------------------");
$this->setLog("\n last tag refresh:" . $_SESSION['last_tag_refresh'] . " Current time: " . time() . " is time refresh now ?:" . (string) $_SESSION['tag_refresh_now'] . "\n");
$do_tags = new Tag($this->getDbCon());
$e = new Event("do_Contacts->eventSearchByTag");
$e->setSecure(false);
if ($mobile == 'Yes') {
$e->addParam("goto", "i_contacts.php");
} else {
$e->addParam("goto", "contacts.php");
}
$do_tags->query("SELECT tag_name, clicks FROM tag_size WHERE iduser=" . $_SESSION['do_User']->iduser . " ORDER BY tag_name");
while ($do_tags->next()) {
$e->addParam("search_tag_name", $do_tags->tag_name);
if (!empty($html)) {
$html .= ', ';
}
$html .= "\n" . '<a href="' . $e->getUrl() . '" class="tag_link" style="font-size:' . $do_tags->clicks . 'px;">' . $do_tags->tag_name . '</a>';
}
return $html;
}
示例15: Event
<script type="text/javascript" src="jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#btnSubmit').click(function() {
var username = $.trim($('#username').val());
var pwd = $.trim($('#password').val());
//Blank validation
if(username != '' && pwd != '') {
//An ajax call to add user's LeanKit Kanban login credentials.
$.ajax({
type: "GET",
<?php
$e = new Event("OfuzLeanKitKanban->eventAjaxAddLoginCredentials");
$e->setEventControler("ajax_evctl.php");
$e->setSecure(false);
?>
url: "<?php
echo $e->getUrl();
?>
",
data: "un="+username+"&pwd="+pwd,
success: function(response){
$('#msg').html(response);
$('#msg').slideDown('slow');
}
});
} else {
$('#msg').html('Your Email Address and Password are required.');
$('#msg').slideDown('slow');
}
});