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


PHP Event::getFormEvent方法代码示例

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


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

示例1: generateOnclickJS

 function generateOnclickJS()
 {
     $script = "<script type='text/javascript'>\n          function shareWithCoworker()\n          {\n               \n                    \$(\"#ContactEditSave__shareContact\").attr(\"action\",\"/share_co_workers.php\");\n                    \$(\"#ContactEditSave__shareContact\").submit(); \n                \n          }\n          //set_selected();\n          </script>";
     echo $script;
     $e = new Event("ContactEditSave->shareContact");
     // Fictitious Event
     $e->addEventAction("mydb.gotoPage", 304);
     $e->addParam("goto", "contacts.php");
     echo $e->getFormHeader();
     echo $e->getFormEvent();
     $js .= '<input type="hidden" name="ck[]" value="' . $_SESSION['ContactEditSave']->idcontact . '">';
     $this->displayBlock();
     $js .= '</form>';
     echo $js;
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:15,代码来源:ContactShareCoworkerBlock.class.php

示例2: getZendBlockConent

 function getZendBlockConent()
 {
     // echo $_GET['idprojecttask'];
     $do_project_task = new ProjectTask();
     $idtask = $do_project_task->getTaskId($_GET['idprojecttask']);
     // echo $idtask;
     $data = $do_project_task->getProjectTaskDetailsByTaskId($idtask);
     //echo $data->getData('idproject');
     $idproject = $data->getData('idproject');
     //$idproject = $data['idproject'];
     //echo '-'.$idproject;
     $do_zend = new Zendesk();
     if ($do_zend->zendeskProjectUserRelation($_SESSION['do_User']->iduser, $idproject)) {
         /*Ticket Block*/
         $ticket = $do_zend->getZendTicketId($_SESSION['do_User']->iduser, $_GET['idprojecttask']);
         $ticket_id = $ticket['ticket'];
         if (!empty($ticket_id)) {
             $idzendesk_task_ticket_releation = $ticket['idzendesk_task_ticket_releation'];
             $output .= '<div style="position: relative;">';
             $output .= '<b>Ticket ID: ' . $ticket_id . '</b>';
             $e_remove_invitation = new Event("Zendesk->eventRemoveZendTicket");
             $e_remove_invitation->addParam('idzendesk_task_ticket_releation', $idzendesk_task_ticket_releation);
             $e_remove_invitation->addParam("goto", "Task/" . $_SESSION['do_project_task']->idproject_task);
             $img_del = '<img src="/images/delete.gif" width="14px" height="14px" alt="" />';
             $output .= '<div style="float:right;align:right;">' . $e_remove_invitation->getLink($img_del) . '</div>';
             $output .= '</div><br /><br />';
         }
         /* Ticket Block ends */
         //$ticket_id = $do_zend->getZendTicketId($_SESSION['do_User']->iduser,$_GET['idprojecttask']);
         $output .= '<a href="#" onclick="showZBox();return false;">' . _('Add/Update Zendesk Ticket ID') . '</a>';
         $output .= '<div id="task_zbox" style="display:none;">';
         $e_zticket = new Event("Zendesk->eventAddZendTicket");
         //$e_zticket->setLevel(160);
         $e_zticket->addParam("idproject", $idproject);
         $e_zticket->addParam("idproject_task", $_GET['idprojecttask']);
         $e_zticket->addParam("iduser", $_SESSION['do_User']->iduser);
         $e_zticket->addParam("goto", "Task/" . $_SESSION['do_project_task']->idproject_task);
         $output .= $e_zticket->getFormHeader();
         $output .= $e_zticket->getFormEvent();
         $output .= '<input type="text" name="z_ticket_id" id = "z_ticket_id" value= ' . $ticket_id . '>';
         $output .= '<input value="' . _('Add Zend Ticket') . '" type="submit">';
         $output .= $e_zticket->getFormFooter();
         $output .= '<br /><br /><a href="#" onclick="hideZbox(); return false;">' . _('Hide') . '</a>';
         $output .= '</div>';
     }
     return $output;
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:47,代码来源:BlockZendeskTicket.class.php

示例3: eventAjaxEditTaskCategoryForm

 function eventAjaxEditTaskCategoryForm(EventControler $evctl)
 {
     $form = '<div class="taskbox1a"><div class="taskbox1b"><div class="taskbox1c">';
     $this->getId($evctl->id);
     $this->sessionPersistent("TaskCategoryEdit", "index.php", 120);
     $e_task = new Event("TaskCategoryEdit->eventValuesFromForm");
     $e_task->setLevel(1999);
     $e_task->addEventAction("TaskCategoryEdit->eventUpdate", 2000);
     $form .= $e_task->getFormHeader();
     $form .= $e_task->getFormEvent();
     $_SESSION['TaskCategoryEdit']->setRegistry("task_category");
     $_SESSION['TaskCategoryEdit']->setApplyRegistry(true, "Form");
     $form .= $_SESSION['TaskCategoryEdit']->name . '<br /><br />';
     $form .= $_SESSION['TaskCategoryEdit']->iduser;
     $form .= $e_task->getFormFooter("Update this Category");
     $form .= '<div class="cancellink">or <a href="#" onclick="fnCancelEdit(' . $evctl->id . ');">' . _('cancel') . '</a></div>';
     $form .= '</div></div></div>';
     $evctl->addOutputValue($form);
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:19,代码来源:TaskCategory.class.php

示例4: generateAddGitRepositoryBlock

 /**
  * A custom method within the Plugin to generate the content
  * 
  * @return string : HTML
  */
 function generateAddGitRepositoryBlock()
 {
     $output = '';
     $data = array();
     $do_user_git = new UserGitrepo();
     $git_repo = $do_user_git->CheckGitProjectExist($_SESSION["do_project"]->idproject);
     if (!is_array($git_repo)) {
         $data = $do_user_git->GetAllGitRepositoryForUser($_SESSION["do_User"]->iduser);
         if ($data != '') {
             $output .= _('Select the repository name from the list to add a git repository for this project.');
             $output .= '<br />';
             $e_git_repo = new Event("UserGitrepo->eventAddProjectGitRepo");
             $e_git_repo->addParam("goto", "Project/" . $_SESSION["do_project"]->idproject);
             $e_git_repo->addParam("idproject", $_SESSION["do_project"]->idproject);
             $output .= $e_git_repo->getFormHeader();
             $output .= $e_git_repo->getFormEvent();
             $output .= $data;
             $output .= $e_git_repo->getFormFooter('Add this Git Repository');
         } else {
             $path = $_SERVER['SERVER_NAME'] . '/Setting/Git/git_repo';
             $output .= _('If you want to share git project repository, add Git Repository to your Ofuz account');
             $output .= '<br /><br />';
             $output .= '<a href="/Setting/Git/git_repo">';
             $output .= _('Add Git-Repository');
             $output .= '</a>';
         }
     } else {
         $output .= _('Currently The Following Git Repository is associated with this Project');
         $output .= '<br /><br />';
         $e_del_gitrepo = new Event("UserGitrepo->eventSelfDelProjectGitRepo");
         $e_del_gitrepo->addParam("goto", "Project/" . $_SESSION["do_project"]->idproject);
         $e_del_gitrepo->addParam("idgit_project", $git_repo["idgit_project"]);
         $output .= '<div id="templt" class="co_worker_item co_worker_desc">';
         $output .= '<div style="position: relative;">';
         $output .= '<b>' . $git_repo['git_repo'] . '</b>';
         $img_del = '<img class="delete_icon_tag" border="0" width="14px" height="14px" src="/images/delete.gif">';
         $output .= '<div width="15px" id="trashcan" class="deletenote" style="right:0;">' . $e_del_gitrepo->getLink($img_del, ' title="' . _('Remove') . '"') . '</div>';
         $output .= '</div></div>';
     }
     return $output;
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:46,代码来源:ProjectGitRepositoryAddBlock.class.php

示例5: generateTaskOwnerBlock

 /**
  * A custom method within the Plugin to generate the content
  * 
  * @return string : HTML form
  * @see class/ProjectTask.class.php
  */
 function generateTaskOwnerBlock()
 {
     $output = '';
     $output .= '<b>' . $_SESSION['do_project_task']->getTaskOwnerName() . '</b>';
     $output .= '<br /><br />';
     $output .= '<a href="#" onclick="showCoWorkers();return false;">' . _('Change the task owner') . '</a>';
     $output .= '<div id="task_co_worker" style="display:none;">';
     $e_change_task_owner = new Event("do_project_task->eventChangeTaskOwner");
     $e_change_task_owner->setLevel(100);
     $e_change_task_owner->addEventAction('WorkFeedProjectTask->eventAddFeed', 140);
     $e_change_task_owner->addParam('task_event_type', 'change_task_owner');
     $e_change_task_owner->addParam("idtask", $_SESSION["do_project_task"]->idtask);
     $e_change_task_owner->addParam("goto", "Task/" . $_SESSION['do_project_task']->idproject_task);
     $output .= $e_change_task_owner->getFormHeader();
     $output .= $e_change_task_owner->getFormEvent();
     $output .= $_SESSION['do_project_task']->renderChangeTaskOwnerList();
     $output .= '<br /><br /><a href="#" onclick="hideCoWorkers(); return false;">' . _('Hide') . '</a>';
     $output .= $e_change_task_owner->getFormFooter();
     $output .= '</div>';
     return $output;
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:27,代码来源:TaskOwnerBlock.class.php

示例6: generateCoworkerSearchForm

 /**
  * A custom method within the Plugin to generate the content
  * 
  * @return string : HTML form
  * @see class/UserRelations.class.php
  */
 function generateCoworkerSearchForm()
 {
     $output = '<div>' . _('Search for Co-Workers by first or last name:') . '</div>';
     if (!is_object($_SESSION['do_User_search'])) {
         $do_User_search = new User();
         $do_User_search->sessionPersistent("do_User_search", "logout.php", OFUZ_TTL);
     }
     $e_search = new Event("do_User_search->eventSetSearchByName");
     $e_search->setLevel(500);
     $e_search->addParam("goto", "co_worker_search.php");
     $output .= $e_search->getFormHeader();
     $output .= $e_search->getFormEvent();
     $output .= '<div class="marginform">
                   <input type="Text" name="search_txt" id="search_txt" value="">
                </div>
                 <div class="dottedline"></div>
                 <div class="section20">
                   <input type="submit" value="Search" />
                 </div>
         </div></form>';
     return $output;
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:28,代码来源:CoworkerSearch.class.php

示例7: 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: ') . '&nbsp; </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>

    <div class="spacerblock_80"></div>
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:vcard_import.php

示例8: _

$do_group = new Group();
$do_group->get_all_groups();
//if there is only one group in the system and we choose to delete it then there is no group to trasfer data
if ($do_group->getNumRows() > 1) {
    $group_transfer = true;
}
$e_del = new Event($obj . "->eventDeleteRecord");
$e_del->addParam("id", $id);
$e_del->addParam("next_page", NavigationControl::getNavigationLink($obj, $return_page));
if ($group_transfer === true) {
    $e_del->addParam("group_transfer_opt", "yes");
} else {
    $e_del->addParam("group_transfer_opt", "no");
}
echo '<form class="form-horizontal" id="' . $obj . '__eventDeleteRecord" name="' . $obj . '__eventDeleteRecord" action="/eventcontroler.php" method="post">';
echo $e_del->getFormEvent();
?>
<div class="modal-dialog" role="document">
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<h3><span class="label label-info"><?php 
echo _('Delete group data transfer');
?>
</span></h3>
		</div>
		<div class="modal-body">
		<?php 
echo _('Before deleting the group please select an user or group to trasfer the existing group\'s data.');
?>
		<br /><br />
开发者ID:sQcrm,项目名称:sqcrm,代码行数:31,代码来源:delete_group_modal.php

示例9: Event

* create invoice from sales order
* @author Abhik Chakraborty
*/ 
?>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12" style="margin-left:3px;">
			<div class="row-fluid">
				<div class="datadisplay-outer">
					<?php
					$e_add_entity = new Event("Invoice->eventAddRecord");
					$e_add_entity->addParam("idmodule",15);
					$e_add_entity->addParam("module","Invoice");
					$e_add_entity->addParam("error_page",NavigationControl::getNavigationLink($module,"add"));
					echo '<form class="form-horizontal" id="Invoice__addRecord" name="Invoice__addRecord" action="/eventcontroler.php" method="post" enctype="multipart/form-data">';
					echo $e_add_entity->getFormEvent();
					require("edit_view_form_fields.php");
					?>  
					</form>
				</div>
			</div><!--/row-->
		</div><!--/span-->
	</div><!--/row-->
</div>
<script>
<?php 
	echo $do_crmfields->get_js_form_validation($module_id,"Invoice__addRecord","edit");
?>
$.validator.addMethod("notEqual", function(value,element,param) {
	return this.optional(element) || value != param;
	},"Please select a value "
开发者ID:sQcrm,项目名称:sqcrm,代码行数:31,代码来源:create_invoice_from_salesorder_view.php

示例10: _

<?php

// Copyright SQCRM. For licensing, reuse, modification and distribution see license.txt
/**
* @author Abhik Chakraborty
*/
include_once "config.php";
$e_test = new Event("ListviewAction->eventTest");
$e_test->addParam("ids", $_REQUEST["chk"]);
echo '<form class="" id="ListviewAction__eventTest" name="ListviewAction__eventTest" action="/eventcontroler.php" method="post">';
echo $e_test->getFormEvent();
?>
<div class="modal-dialog" role="document">
	<div class="modal-dialog" role="document">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<span class="label label-warning"><?php 
echo _('WARNING!');
?>
</span>
			</div>
			<div class="modal-body">
				<?php 
echo _('Are you sure you want to submit ?');
?>
			</div>
			<div class="modal-footer">
				<a href="#" class="btn btn-default active" data-dismiss="modal"><i class="glyphicon glyphicon-remove-sign"></i> <?php 
echo _('Close');
?>
开发者ID:sQcrm,项目名称:sqcrm,代码行数:31,代码来源:test.php

示例11: _

<?php

// Copyright SQCRM. For licensing, reuse, modification and distribution see license.txt
/**
* Change password modal
* @author Abhik Chakraborty
*/
include_once "config.php";
$idmodule = $_GET["idmodule"];
$referrar = $_GET["referrar"];
$allow = true;
$e_add = new Event("CustomFields->eventAddCustomField");
echo '<form class="" id="CustomFields__eventAddCustomField" name="CustomFields__eventAddCustomField" action="/eventcontroler.php" method="post">';
echo $e_add->getFormEvent();
?>
<div class="modal-dialog" role="document">
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<h3><span class="label label-info"><?php 
echo _('Add a new custom field');
?>
</span></h3>
		</div>
		<div class="modal-body">
			<div style="float:left;width:200px;" class="box_content">
				<ul class="nav nav-list" id="cf_selector">
					<li class="" id="1"><a href="#"><img src="/themes/images/text-box.png" style="vertical-align:center;margin-right:4px;"><?php 
echo _('Text Box');
?>
</a></li>
开发者ID:sQcrm,项目名称:sqcrm,代码行数:31,代码来源:add_custom_field_modal.php

示例12: _

					</div>
				</div>
			</div><!--/datadisplay-outer-->
		</div><!--/span-->
	</div><!--/row-->
</div>

<div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" id="rename_profile">
	<?php 
// Here goes updating the name and description of the profile
$e_update = new Event("Profile->eventRenameProfile");
$e_update->addParam("id", $do_profile->idprofile);
$e_update->addParam("error_page", NavigationControl::getNavigationLink($module, "profile_detail", $do_profile->idprofile));
$e_update->addParam("next_page", NavigationControl::getNavigationLink($module, "profile_detail", $do_profile->idprofile));
echo '<form class="" id="Profile__eventRenameProfile" name="Profile__eventRenameProfile" action="/eventcontroler.php" method="post">';
echo $e_update->getFormEvent();
?>
	<div class="modal-dialog bs-example-modal-lg" role="document">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<h3><span class="label label-info"><?php 
echo _('Rename Profile');
?>
</span></h3>
			</div>
			<div class="modal-body">
				<div class="form-group">
					<label class="control-label" for="profilename"><?php 
echo _('Profile Name');
?>
开发者ID:sQcrm,项目名称:sqcrm,代码行数:31,代码来源:profile_details.php

示例13: _

?>
"><?php 
echo _('Currency');
?>
</a></h3>
				<p><?php 
echo _('Manage currency settings');
?>
</p> 
			</div>
			<div class="datadisplay-outer">
				<?php 
echo '<div id="message"></div>';
$e_edit = new Event("CRMGlobalSettings->eventAjaxUpdateCurrencySettings");
echo '<form class="form-horizontal" id="CRMGlobalSettings__eventAjaxUpdateCurrencySettings" name="CRMGlobalSettings__eventAjaxUpdateCurrencySettings"  method="post" enctype="multipart/form-data">';
echo $e_edit->getFormEvent();
?>
				<label class="control-label" for="currency"><?php 
echo _('Select a currency');
?>
</label>
				<div class="controls">
					<select name="currency" id="currency" class="currency_settings">
					<?php 
foreach ($currency_array as $key => $val) {
    ?>
						
						<option value = "<?php 
    echo $key . '-' . (string) $val['hex'];
    ?>
" <?php 
开发者ID:abhikchakraborty,项目名称:sqcrm,代码行数:31,代码来源:currency_settings_view.php

示例14: array

<?php

$required_email_provider = array("yahoo", "hotmail");
$inviter = new OpenInviter();
$oi_services = $inviter->getPlugins();
$e_ooi = new Event("OfuzEmailImporter->eventGetContacts");
$e_ooi->addParam("goto", "Setting/EmailImporter/import_email_contacts");
echo $e_ooi->getFormHeader();
echo $e_ooi->getFormEvent();
?>
<table align='center' class='thTable' cellspacing='2' cellpadding='0' style='border:none;'>
		<tr><td colspan="2" align="center">
			<?php 
if ($_SESSION['in_page_message'] != "") {
    echo $_SESSION['in_page_message'];
}
?>
			</td>
		</tr>
		<tr><td align='right'><label for='email_box'>Email</label></td><td><input type='text' name='email_box' value=''></td></tr>
		<tr><td align='right'><label for='password_box'>Password</label></td><td><input type='password' name='password_box' value=''></td></tr>
		<tr><td align='right'><label for='provider_box'>Email provider</label></td><td><select name='provider_box'><option value=''></option>
<?php 
foreach ($oi_services as $type => $providers) {
    if ($type == 'email') {
        ?>
				<optgroup label='<?php 
        echo $inviter->pluginTypes[$type];
        ?>
'>
<?php 
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:import_email_contacts.php

示例15: Event

<?php 
// Copyright SQCRM. For licensing, reuse, modification and distribution see license.txt
/**
* custom view edit view
* @author Abhik Chakraborty
*/ 
$e_add_cv = new Event($module."->eventAddRecord");
$e_add_cv->addParam("target_module_id",$target_module_id);
$e_add_cv->addParam("error_page",NavigationControl::getNavigationLink($module,"add"));
echo '<form class="form-horizontal" id="'.$module.'__addEditRecord" name="'.$module.'__addEditRecord" action="/eventcontroler.php" method="post" enctype="multipart/form-data">';
echo $e_add_cv->getFormEvent();
?>
<div class="container-fluid">
	<div class="row">
		<div class="col-md-12">
			<div class="datadisplay-outer">
				<div class="left_600">
					<a href="<?php echo NavigationControl::getNavigationLink($_SESSION["do_module"]->modules_full_details[$target_module_id]["name"],"list");?>" class="btn btn-default active">
					<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> <?php echo _('Cancel');?></a>  
					<input type="submit" class="btn btn-primary" value="<?php echo _('Save');?>"/>
				</div>
				<div class="clear_float"></div>
				<hr class="form_hr">
				<div class="box_content_header"><strong><?php echo _('Custom view information');?></strong>
					<hr class="form_hr">
					<div class="row">
						<label class="col-sm-2 control-label" for="cvname">* <?php echo _('Custom view name');?></label>
						<div class="col-xs-6">
							<input type = "text" name="cvname" id="cvname" value="" class="form-control input-sm">
						</div>
					</div>
开发者ID:sQcrm,项目名称:sqcrm,代码行数:31,代码来源:customview_create_view.php


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