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


PHP Event::setEventControler方法代码示例

本文整理汇总了PHP中Event::setEventControler方法的典型用法代码示例。如果您正苦于以下问题:PHP Event::setEventControler方法的具体用法?PHP Event::setEventControler怎么用?PHP Event::setEventControler使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Event的用法示例。


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

示例1: autoLoadWorkfeed

                <?php 
if (is_object($GLOBALS['cfg_submenu_placement']['index'])) {
    echo $GLOBALS['cfg_submenu_placement']['index']->getMenu();
}
?>
        </div>
        
        
        <script type="text/javascript">
        function autoLoadWorkfeed() {
                $('div#last_feed_loader').html('<img src="/images/loader1.gif">');
                $.ajax({
                    type: "GET",
                <?php 
$e_workfeed = new Event("do_work_feed->autoLoadWorkfeedOnScrollDown");
$e_workfeed->setEventControler("ajax_evctl.php");
$e_workfeed->setSecure(false);
?>
                    url: "<?php 
echo $e_workfeed->getUrl();
?>
",
                    //data: "dob="+dob,
                    success: function(data){
                            $(".message_box:last").after(data);
                            $('div#last_feed_loader').empty();
                    }
                });
                
        }
        
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:30,代码来源:index.php

示例2: copyDraft

function copyDraft(){
  var textcontent =   document.getElementById('draft_hidden').value ;
  var msg_sub = document.getElementById('draft_subject_hidden').value ;
  var textarea = dijit.byId("editor_bodyhtml");
  textarea.attr("value", textcontent);
  $("input[name='fields[subject]']").val(msg_sub) ;
   $("#unsaved_draft").hide("slow");
  
}
// Discard the saved draft
function discardDraft(id){
    $.ajax({
        type: "GET",
        <?php 
$e_MessageDraft = new Event("do_message_draft->eventDeleteDraft");
$e_MessageDraft->setEventControler("ajax_evctl.php");
$e_MessageDraft->setSecure(false);
?>
        url: "<?php 
echo $e_MessageDraft->getUrl();
?>
",
        data: "id="+id,
        success: function(result){
             $("#unsaved_draft").hide("slow");
        }
    });
}
// Run the save draft method in every 30 seconds
window.setInterval("fnSaveDraft()", 30000);
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:30,代码来源:SendMessage.php

示例3: showExtraAmt

",
        success: function(hide_inv){ 
        }
    });
}

function showExtraAmt(){
  $("#extra_amt").slideToggle("slow");
}

function showPastDue(){
    $.ajax({
        type: "GET",
<?php 
$e_show_past_due = new Event("do_invoice_list->eventShowPastDue");
$e_show_past_due->setEventControler("ajax_evctl.php");
$e_show_past_due->setSecure(false);
?>
        url: "<?php 
echo $e_show_past_due->getUrl();
?>
",
        data: "a=1",
        success: function(html_data){ 
           $("#past_due_txt").hide("fast");
           $("#inv_msgs").hide("fast");
           $("#show_past_due")[0].innerHTML = html_data;
        }
    });
}
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:30,代码来源:All.php

示例4: showOpt

    $added_by_contact = 'Yes';
}
//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");});
    });
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:contact_portal.php

示例5: addCoWorkerToTeam

function addCoWorkerToTeam(){

	var idteam_users;
	var values = new Array();
	
	idteam_users = $('#idteam_users').val();
	$.each($("input[name='coworker']:checked"), function() {
	  values.push($(this).val());
	});	

	if(values.length > 0) {
		$.ajax({
			type: "GET",
			<?php 
$e_cw = new Event("Teams->eventAjaxAddCoWorkerToTeam");
$e_cw->setEventControler("ajax_evctl.php");
$e_cw->setSecure(false);
?>
			url: "<?php 
echo $e_cw->getUrl();
?>
",
			data: "idcoworker="+values+"&idteam_users="+idteam_users,
			success: function(response){
				if(response != "") {
					$("#OfuzSuccessMessage").show('slow');
					$('#OfuzSuccessMessage')[0].innerHTML = "The CoWorker/s added to the Team.";
					$("#DivCreateNewTeam")[0].innerHTML = response;
				}
			}
		});	
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:teams.php

示例6: Event

<?php

/** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/
// Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com
/** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/
?>
// JS functions from includes/ofuz_js.inc.php

// close message hide is and record it on the server.
	<?php 
$e_closeMessage = new Event("Message->eventAjaxCloseMessage");
$e_closeMessage->setEventControler("ajax_evctl.php");
$e_closeMessage->setSecure(false);
?>
    function close_message(idmessage) {
			$.ajax({
            type: "GET",
            url: "<?php 
echo $e_closeMessage->getUrl();
?>
",
            data: "idmessage="+idmessage,
            success: function(){
            	$("#message_"+idmessage).fadeOut("slow");
            }
        });
    }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:27,代码来源:ofuz_js.inc.php

示例7: fnInsertMergeField

function fnInsertMergeField(merge){
    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");
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:settings_auto_responder_email_edit.php

示例8: 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);
		}
	});
}
开发者ID:abhikchakraborty,项目名称:sqcrm,代码行数:31,代码来源:inventory_settings_view.php

示例9: 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>&nbsp;<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>
开发者ID:sQcrm,项目名称:sqcrm,代码行数:31,代码来源:tax_settings_view.php

示例10: autoLoadContactNotes

?>
",
        data: "idproject="+idproject,
        success: function(result){
             $("#cp_prj_tasks")[0].innerHTML = result;
        }
    });
}

function autoLoadContactNotes() {
		$('div#last_note_loader').html('<img src="/images/loader1.gif">');
		$.ajax({
			type: "GET",
		<?php 
$e_notes = new Event("ContactNotes->autoLoadNotesOnScrollDown");
$e_notes->setEventControler("ajax_evctl.php");
$e_notes->setSecure(false);
?>
			url: "<?php 
echo $e_notes->getUrl();
?>
",
			//data: "dob="+dob,
			success: function(data){
					$(".message_box:last").after(data);
					$('div#last_note_loader').empty();
			}
		});
		
}
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:30,代码来源:contact.php

示例11: bindSorting

               * @see  http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F
               *
               */ 
	      bindSorting();
	      $("#tasks_options_this_month").hide();
	  }
      });

  }

  function showAllTasksOverdue(){
      $.ajax({
	  type: "GET",
	  <?php 
$e_task_overdue = new Event("Task->eventAjaxGetAllTasksOverdue");
$e_task_overdue->setEventControler("ajax_evctl.php");
$e_task_overdue->setSecure(false);
?>
	  url: "<?php 
echo $e_task_overdue->getUrl();
?>
",
	  data: "",
	  success: function(tasks_overdue){		 
	      $("#tasks_overdue")[0].innerHTML = tasks_overdue;

	      /* 
	       * After ajax call, jquery's $(document).ready or events no longer work after you've loaded new 
                 content into a page using an AJAX request.
                 There are different ways of handling this like : event delegation and event rebinding.
                 bindSorting() is kind of rebinding.
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:tasks.php

示例12: function

			$("#save_import_map_section").hide();
		} else {
			$("#save_import_map_section").show();
		}
    });
    
    // when the saved map value is changed the data is loaded and set the map selection options
    $("#use_saved_map").change( function() {
		var saved_map_id = $(this).val();
		if (saved_map_id > 0) {
			$("#delete_saved_map_section").show();
			$.ajax({
				type: "GET",
				<?php
				$e_load_maps = new Event("do_import->eventLoadSavedMaps");
				$e_load_maps->setEventControler("/ajax_evctl.php");
				$e_load_maps->addParam("import_module_id",$import_module_id);
				$e_load_maps->setSecure(false);
				?>
				datatype:"json",
				url: "<?php echo $e_load_maps->getUrl(); ?>&id="+saved_map_id,
				beforeSubmit: function() {
					// $("#load_more_notes_btn").html(LOADING);
					// $("#load_more_notes_btn").attr('disabled','disabled');
				},
				success:  function(html) {
					if (html == 0) {
						display_js_error(IMPORT_SAVED_MAP_NOT_FOUND,'js_errors');
					} else {
						var mapped_data = html;
						$.each(mapped_data,function(index,value) {
开发者ID:sQcrm,项目名称:sqcrm,代码行数:31,代码来源:import_step2_view.php

示例13: createFeedbackBox

    function createFeedbackBox()
    {
        $e_SendFeedback = new Event("Feedback->eventAjaxSendFeedback");
        $e_SendFeedback->setEventControler("ajax_evctl.php");
        $e_SendFeedback->setSecure(false);
        $strURL = $e_SendFeedback->getUrl();
        echo <<<HTML
        <div id="feedback_box">
            <script type="text/javascript">
            //<![CDATA[
            \$(document).ready(function(){
            \$("#feedback_button").click(function(){
                if(\$("#feedback_box").css("left")!="-300px"){
                feedback_close();
                }else{
                \$("#feedback_box").animate({left:"0"},500);
                \$("#feedback_text").focus();
                }
            });});
            function feedback_close(){
                \$("#feedback_box").animate({left:"-300px"},500);
                \$("#feedback_text").val("");
                \$("#feedback_ty").hide(1500);
            }
            function feedback_ty(){
                \$("#feedback_ty").fadeIn(2000);
                setTimeout(feedback_close, 5000);
            }
            function submitFeedback(){
                \$.ajax({
                    type: "GET",
                    url: "{$strURL}",
                    data: "url="+escape(document.location.href)+"&text="+escape(\$("#feedback_text").val()),
                    success: feedback_ty()
                });
            }
            //]]>
            </script>
            <div class="feedback_main"><div class="feedback_form">
            <span class="headline12">
HTML;
        echo _('Send Us Feedback');
        echo <<<HTML
\t    </span><br />
HTML;
        echo _('Let us know what you think. &nbsp; Likes, dislikes, questions, comments, bugs, or anything.');
        echo <<<HTML
            <form method="post" action="/"><textarea id="feedback_text"></textarea>
            <input type="button" value="Submit" onclick="submitFeedback();" /> or <a href="#" onclick="feedback_close();">Cancel</a>
            </form></div><div id="feedback_ty">
            <span class="headline12">
HTML;
        echo _('Thank You');
        echo <<<HTML
\t    </span><br /><br />
HTML;
        echo _('Your comments are valuable to us. &nbsp; We appreciate your taking the time to help make Ofuz even better.');
        echo <<<HTML
            </div></div>
            <input id="feedback_button" type="image" src="/images/send_feedback.jpg" />
        </div>
HTML;
    }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:63,代码来源:Feedback.class.php

示例14: Event

?>

		team_name = $("#team_name").val();

		if($("#auto_share").attr('checked')) {
			auto_share = 'Yes';
		} else {
			auto_share = 'No';
		}
		
		if(team_name) {
			$.ajax({
				type: "GET",
				<?php 
$e_team = new Event("Teams->eventAjaxEditTeam");
$e_team->setEventControler("ajax_evctl.php");
$e_team->setSecure(false);
?>
				url: "<?php 
echo $e_team->getUrl();
?>
",
				data: "idteam="+idteam+"&team_name="+team_name+"&auto_share="+auto_share,
				success: function(response){
					if(response == 'ok') {
						$("#divTeamMsg")[0].innerHTML = "The Team has been updated.";
						$('#DivEditTeam').hide('slow');
						$('#DivEditCW').show('slow');
					} else {
						$("#divTeamMsg")[0].innerHTML = "The Team Could not be updated. Please try again.";
					}										
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:team_edit.php

示例15: Sync

include_once 'includes/header.inc.php';
$do_sync = new Sync($GLOBALS['conx']);
if (isset($_GET['ref']) && $_GET['ref'] == 'reg') {
    $ref = $_GET['ref'];
    $_SESSION["page_from"] = $ref;
}
?>
 <link rel="stylesheet" type="text/css" href="/includes/ofuzcom_theme.css" /> 
<script type="text/javascript">
    //<![CDATA[
    function fnEnterEmail(ref, act) {
        $.ajax({
            type: "GET",
<?php 
$e_emailForm = new Event("Sync->eventAjaxEnterEmailForm");
$e_emailForm->setEventControler("ajax_evctl.php");
$e_emailForm->setSecure(false);
?>
            url: "<?php 
echo $e_emailForm->getUrl();
?>
",
            data: "referrer="+ref+"&act="+act,
            success: function(html){
                $("#instruction"+ref+act).slideToggle("slow");

                $("#"+ref+act)[0].innerHTML = html;
                $("#"+ref+act).toggle(0);
            }
        });
    }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:upgrade_thank_you.php


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