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


PHP Event::addParam方法代码示例

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


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

示例1: generateCoworkerInvitationList

 /**
  * A custom method within the Plugin to generate the content
  * 
  * @return string : HTML form
  * @see class/UserRelations.class.php
  */
 function generateCoworkerInvitationList()
 {
     $output = '';
     $_SESSION['do_coworker']->getAllRequestsSent();
     if ($_SESSION['do_coworker']->getNumrows()) {
         $count = 0;
         while ($_SESSION['do_coworker']->next()) {
             $e_remove_invitation = new Event("do_coworker->eventRemoveInvitation");
             $e_remove_invitation->addParam('id', $_SESSION['do_coworker']->iduser_relations);
             $e_remove_invitation->addParam("goto", $_SERVER['PHP_SELF']);
             $output .= '<div class="co_worker_item"><div class="co_worker_desc">';
             $output .= '<div id="invite' . $count . '" class="co_worker_item co_worker_desc">';
             $output .= '<div style="position: relative;">';
             if ($_SESSION['do_coworker']->idcoworker) {
                 $output .= $_SESSION['do_User']->getFullName($_SESSION['do_coworker']->idcoworker);
             } else {
                 $output .= $_SESSION['do_coworker']->decrypt($_SESSION['do_coworker']->enc_email);
             }
             $img_del = '<img src="/images/delete.gif" width="14px" height="14px" alt="" />';
             $output .= '<div width="15px" id="trashcan' . $count . '" class="deletenote" style="right:0;">' . $e_remove_invitation->getLink($img_del) . '</div>';
             $output .= '</div></div>';
             $output .= '</div></div>';
         }
         return $output;
     } else {
         $this->setIsActive(false);
     }
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:34,代码来源:CoworkerListInvitations.class.php

示例2: generateContactInvoiceContent

 /**
  * A custom method within the Plugin to generate the content
  * 
  */
 function generateContactInvoiceContent()
 {
     $output = '';
     if (!is_object($_SESSION['do_invoice_list'])) {
         $do_invoice_list = new Invoice();
         $do_invoice_list->sessionPersistent("do_invoice_list", "index.php", OFUZ_TTL);
     }
     if ($_SESSION['do_invoice_list']->hasInvoicesForEntity($_SESSION['do_cont']->idcontact, 'Contact')) {
         $user_settings = $_SESSION['do_User']->getChildUserSettings();
         if ($user_settings->getNumRows()) {
             while ($user_settings->next()) {
                 if ($user_settings->setting_name == 'currency' && $user_settings->setting_value != '') {
                     $currency = explode("-", $user_settings->setting_value);
                     $_SESSION['do_invoice_list']->currency_iso_code = $currency[0];
                     $_SESSION['do_invoice_list']->currency_sign = $currency[1];
                     //$_SESSION['do_invoice_list']->currency = $_SESSION['do_invoice_list']->currecy_sign ;
                     $_SESSION['do_invoice_list']->setCurrencyDisplay();
                     $_SESSION['do_invoice_list']->getCurrencyPostion();
                 }
             }
         }
         $e_filter_inv = new Event("do_invoice_list->eventFilterInvoice");
         $e_filter_inv->addParam("type", "Contact");
         $e_filter_inv->addParam("idcontact", $_SESSION['do_cont']->idcontact);
         $e_filter_inv->addParam("goto", "invoices.php");
         $e_filter_inv->setLevel(10);
         $output .= '<table width="100%">';
         $output .= $_SESSION['do_invoice_list']->getInvoiceTotals($e_filter_inv, $_SESSION['do_cont']->idcontact);
         $output .= '</table>';
     } else {
         $this->setIsActive(false);
     }
     return $output;
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:38,代码来源:ContactInvoiceBlock.class.php

示例3: getWebFormList

 function getWebFormList()
 {
     $do_userform = new WebFormUser();
     $do_userform->getUsersWebForms();
     $output = '';
     if (isset($GLOBALS['plugin_item_value'])) {
         $up = '../';
     } else {
         $up = '';
     }
     if ($do_userform->getNumRows()) {
         $count = 0;
         while ($do_userform->next()) {
             $e_remove_wf = new Event("do_userform->eventDeleteWebForm");
             $e_remove_wf->addParam('id', $do_userform->idwebformuser);
             $e_remove_wf->addParam("goto", $_SERVER['PHP_SELF']);
             $count++;
             $output .= '<div id="webform' . $count . '" class="co_worker_item co_worker_desc">';
             $output .= '<div style="position: relative;">';
             $output .= '<a href="' . $up . 'WebForm/' . $do_userform->idwebformuser . '">' . $do_userform->title . '</a>';
             $img_del = '<img src="/images/delete.gif" width="14px" height="14px" alt="" />';
             $output .= '<div width="15px" id="trashcan' . $count . '" class="deletenote" style="right:0;">' . $e_remove_wf->getLink($img_del) . '</div>';
             $output .= '</div></div>';
         }
     } else {
         $this->setIsActive(false);
     }
     return $output;
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:29,代码来源:BlockWebFormList.class.php

示例4: 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

示例5: generateGitBranchBlock

 /**
  * A custom method within the Plugin to generate the content
  * 
  * @return string : HTML
  */
 function generateGitBranchBlock()
 {
     $output = '';
     $do_user_git = new UserGitrepo();
     $git_repo = $do_user_git->CheckGitProjectExist($_SESSION["do_project"]->idproject);
     if (is_array($git_repo)) {
         include_once 'plugin/Git/class/Git.class.php';
         $repo_path = "plugin/Git/repos/";
         //$output .= '<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>Repository Name : '.$git_repo['git_repo'].'<br /></b>';
         $idproject_task = (int) $_GET['idprojecttask'];
         $repo_name = $git_repo['git_repo'];
         $folder = "{$repo_path}" . "{$repo_name}";
         if (is_dir($folder)) {
             $repo = Git::open($folder);
             $branch_name = $repo->branchlist($idproject_task);
             $branch_name = split('	', $branch_name);
             //echo'<pre>';print_r($branch_name);echo'</pre>';
             $size = sizeof($branch_name);
             for ($i = 1; $i < $size; $i++) {
                 $branch_title = split('/', $branch_name[$i]);
                 //echo'<pre>';print_r($branch_title);echo'</pre>';
                 $b_size = sizeof($branch_title);
                 $b_name = split(' ', $branch_title[$b_size - 1]);
                 $br_name .= $b_name[0] . '<br />';
             }
             if (!empty($br_name)) {
                 $output .= _('Currently The Following Git branches are associated with this Task <br />');
                 //$output .= '<br />Branches assoicated with current task are :<br />';
                 $output .= '<b>' . $br_name . '</b>';
             } else {
                 $output .= _('No Git branches found which are associated with this Task <br />');
             }
         } else {
             $output .= _('Invalid Respository, Missing git repository in the plugin/Git/repos/' . $repo_name . ', Please check and try again <br />');
         }
         $output .= '</div></div>';
     } else {
         $output .= 'No Git Repository is associated with this Project Task';
     }
     return $output;
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:52,代码来源:TaskGitBranchDetailsBlock.class.php

示例6: generateAddTaskBlock

 /**
  * A custom method within the Plugin to generate the content
  * 
  * @return string : HTML
  * @see class/UserSettings.class.php
  * @see class/DiscussionEmailSetting.class.php
  */
 function generateAddTaskBlock()
 {
     $output = '';
     $idproject = $_SESSION["do_project"]->idproject;
     if (!is_object($_SESSION['UserSettings'])) {
         $do_user_settings = new UserSettings();
         $do_user_settings->sessionPersistent("UserSettings", "logout.php", OFUZ_TTL);
     }
     $data = $_SESSION['UserSettings']->getSettingValue("task_discussion_alert");
     $global_discussion_email_on = 'Yes';
     if (!$data) {
         $global_discussion_email_on = 'Yes';
     } else {
         if (is_array($data)) {
             if ($data["setting_value"] == 'Yes') {
                 $global_discussion_email_on = 'Yes';
             } else {
                 $global_discussion_email_on = 'No';
             }
         }
     }
     $_SESSION['UserSettings']->global_task_discussion_alert = $global_discussion_email_on;
     if ($global_discussion_email_on == 'Yes') {
         $DiscussionEmailSetting = new DiscussionEmailSetting();
         $data = $DiscussionEmailSetting->isDiscussionAlertSet($idproject, 'Project');
         if ($data && is_array($data)) {
             $output .= _('You have turned off email alert for this project.<br /> If you want to get email alerts for this project please turn it on. <br />');
             $set_email_alert_on = new Event("DiscussionEmailSetting->eventSetOnDiscussionAlert");
             $set_email_alert_on->addParam("setting_level", "Project");
             $set_email_alert_on->addParam("id", $data["iddiscussion_email_setting"]);
             $output .= '<br />';
             $output .= $set_email_alert_on->getLink('Turn On');
         } else {
             $output .= _('Your email alert for the project discussion is set on by default. You can turn off if you do not want to receive emails for this project discussion.<br />');
             $set_email_alert_off = new Event("DiscussionEmailSetting->eventSetOffDiscussionAlert");
             $set_email_alert_off->addParam("id", $idproject);
             $set_email_alert_off->addParam("setting_level", "Project");
             $output .= '<br />';
             $output .= $set_email_alert_off->getLink('Turn Off');
         }
     }
     return $output;
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:50,代码来源:ProjectDiscussionEmailAlertBlock.class.php

示例7: 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

示例8: 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

示例9: displayRow

 /**
  */
 public function displayRow($void = null)
 {
     $html = '';
     // $html .= '<div class="ofuz_list_contact" id="cid'.$this->data->idcontact.'" onclick="fnHighlight(\''.$this->data->idcontact.'\')"><table><tr><td><input type="checkbox" name="ck[]" id="ck'.$this->data->idcontact.'" value="'.$this->data->idcontact.'" class="ofuz_list_checkbox" onclick="fnHighlight(\''.$this->data->idcontact.'\')" /></td>';
     $image_name = $this->data->getContactPicture($this->data->idcontact);
     $exp = explode('/', $image_name);
     if (in_array('dbimage', $exp)) {
         $image_name = '/' . $exp[1] . '/thumbnail/' . $exp[2];
     }
     $html .= '<td class="ofuz_list_contact_col1">
               
                       <img src="' . $image_name . '" width="34" alt="" />
                   </td>';
     $html .= '<td class="ofuz_list_contact_col2">
                       <span class="contact_name"><a href="/Contact/' . $this->data->idcontact . '" onclick="allowHighlight=false;">' . $this->data->firstname . '&nbsp;' . $this->data->lastname . '</a></span>';
     if ($this->data->idcompany != '') {
         $e_detail_com = new Event('mydb.gotoPage');
         $e_detail_com->addParam('goto', 'company.php');
         $e_detail_com->addParam('idcompany', $this->data->idcompany);
         $e_detail_com->addParam('tablename', 'company');
         $e_detail_com->requestSave('eDetail_company', $_SERVER['PHP_SELF']);
         $companyURL = $e_detail_com->getUrl();
         //$html .= '<div class="contact_position"><i>'.$this->data->position.'</i> '._('at').' <a href="'.$companyURL.'" onclick="allowHighlight=false;">'.$this->data->company.'</a></div>';
         $position = '';
         if (strlen($this->data->position) > 0) {
             $position = '<i>' . $this->data->position . '</i> ' . _('at') . ' ';
         }
         $html .= '<div class="contact_position">' . $position . ' <a href="' . $companyURL . '" onclick="allowHighlight=false;">' . $this->data->company . '</a></div>';
     }
     $html .= '</td>';
     $html .= '<td class="ofuz_list_contact_col3">
                       ' . $this->data->phone_number . '<br />
                       <a href="mailto:' . $this->data->email_address . '">' . $this->data->email_address . '</a><br />
                       <i>' . str_replace(",", ", ", $this->data->tags) . '</i>
                   </td>';
     //$html .= '</tr></table></div>';
     //$html .= '<div class="spacerblock_2"></div><div class="solidline"></div><div id="'.$this->data->idcontact.'" class="message_box"></div>';
     echo $html;
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:41,代码来源:OfuzListContact.class.php

示例10: 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

示例11: getEmailTemplateList

 function getEmailTemplateList()
 {
     $user_email_templates = new EmailTemplateUser("blank");
     $user_email_templates->getUserSavedEmailTemplates();
     $output = '';
     if ($user_email_templates->getNumRows()) {
         $count = 0;
         while ($user_email_templates->next()) {
             $e_remove_etml = new Event("do_user_email_teml->eventDeleteUserEmailTmpl");
             $e_remove_etml->addParam('id', $user_email_templates->idemailtemplate_user);
             $e_remove_etml->addParam("goto", $_SERVER['PHP_SELF']);
             $count++;
             $output .= '<div id="templt' . $count . '" class="co_worker_item co_worker_desc">';
             $output .= '<div style="position: relative;">';
             $output .= '<a href="' . $GLOBALS['cfg_plugin_mkt_path'] . 'MEmailTemplate/' . $user_email_templates->idemailtemplate_user . '">' . $user_email_templates->name . '</a>';
             $img_del = '<img src="/images/delete.gif" width="14px" height="14px" alt="Delete" />';
             $output .= '<div width="15px" id="trashcan' . $count . '" class="deletenote" style="right:0;">' . $e_remove_etml->getLink($img_del, ' title="' . _('Delete') . '"') . '</div>';
             $output .= '</div></div>';
         }
     } else {
         $this->setIsActive(false);
     }
     return $output;
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:24,代码来源:BlockEmailTemplateList.class.php

示例12: generateDropBoxBlock

 /**
  * A custom method within the Plugin to generate the content
  * 
  * @return string : HTML form
  * @see class/ProjectTask.class.php
  */
 function generateDropBoxBlock()
 {
     $output = '';
     if ($_SESSION['do_project_task']->drop_box_code) {
         $output .= _('Use the following Email Id to create a note :') . '<br />';
         $emailid = $_SESSION['do_project_task']->getDropBoxEmail();
         $output .= '<a href = "mailto:' . $emailid . '">' . $emailid . '</a>';
     } else {
         $e_gen_dropboxid = new Event("do_project_task->eventGenerateDropBoxIdTask");
         $e_gen_dropboxid->addParam("goto", "task.php");
         $output .= '<br />' . _('No drop box code is generated');
         $output .= '<br />' . _('Generate one by') . ' ' . $e_gen_dropboxid->getLink(_('clicking here'));
     }
     return $output;
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:21,代码来源:TaskDropBoxBlock.class.php

示例13: 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

示例14: generateInvoicesYTDBlock

 /**
  * A custom method within the Plugin to generate the content
  * 
  * @return string : HTML
  * @see class/Invoice.class.php
  */
 function generateInvoicesYTDBlock()
 {
     $output = '';
     $output .= '<div class="spacerblock_20"></div>';
     $quote_ytd_total = $_SESSION['do_invoice_list']->getTotalQuotesYTD();
     $invoice_ytd_total = $_SESSION['do_invoice_list']->getTotalInvoiceYTD();
     $invoice_sent = $_SESSION['do_invoice_list']->getTotalSentYTD();
     $paid_ytd_total = $_SESSION['do_invoice_list']->getTotalPaidYTD();
     $pastdue_ytd_total = $_SESSION['do_invoice_list']->getTotalPastDueYTD();
     $e_filter_inv = new Event("do_invoice_list->eventFilterInvoice");
     $e_filter_inv->addParam("type", "User");
     $e_filter_inv->addParam("goto", "invoices.php");
     $e_filter_inv->setLevel(10);
     $output .= '<table width="100%">';
     if ($quote_ytd_total) {
         $e_filter_inv->addParam("status", "Quote");
         $output .= '<tr><td style="text-align:left;">Quotes:</td><td style="text-align:right;">' . $e_filter_inv->getLink($_SESSION['do_invoice_list']->viewAmount($quote_ytd_total)) . '</td></tr>';
     }
     if ($invoice_ytd_total) {
         $e_filter_inv->addParam("status", "Invoiced");
         $output .= '<tr><td style="text-align:left;">Invoiced:</td><td style="text-align:right;">' . $e_filter_inv->getLink($_SESSION['do_invoice_list']->viewAmount($invoice_ytd_total)) . '</td></tr>';
     }
     if ($invoice_sent) {
         $e_filter_inv->addParam("status", "Sent");
         $output .= '<tr><td style="text-align:left;">Pending Payment:</td><td style="text-align:right;">' . $e_filter_inv->getLink($_SESSION['do_invoice_list']->viewAmount($invoice_sent)) . '</td></tr>';
     }
     if ($paid_ytd_total) {
         $e_filter_inv->addParam("status", "Paid");
         $output .= '<tr><td style="text-align:left;">Paid:</td><td style="text-align:right;">' . $e_filter_inv->getLink($_SESSION['do_invoice_list']->viewAmount($paid_ytd_total)) . '</td></tr>';
     }
     if ($pastdue_ytd_total) {
         $e_filter_inv->addParam("status", "Overdue");
         $output .= '<tr><td style="text-align:left;">Past Due:</td><td style="text-align:right;">' . $e_filter_inv->getLink($_SESSION['do_invoice_list']->viewAmount($pastdue_ytd_total)) . '</td></tr>';
     }
     $output .= '</table>';
     return $output;
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:43,代码来源:InvoicesYTDBlock.class.php

示例15: viewDeletedNote

 function viewDeletedNote($array, $context = "ContactNote")
 {
     $html = '<div class="dottedline"></div><br />';
     $e_note_undo = new Event($this->getObjectName() . "->eventUndoNoteById");
     foreach ($array as $deleted_note) {
         if ($context == "ProjectDiscuss") {
             $note_text = '<b><i>' . substr($deleted_note["discuss"], 0, 100) . ' ...</b></i> ' . _('has been removed');
             $e_note_undo->addParam("id", $deleted_note["idproject_task"]);
             $e_note_undo->addParam("context", "ProjectDiscuss");
         } elseif ($context == "ContactNote") {
             $note_text = '<b><i>' . substr($deleted_note["note"], 0, 100) . ' ...</b></i> ' . _('has been removed');
             $e_note_undo->addParam("id", $deleted_note["idcontact_note"]);
             $e_note_undo->addParam("context", "ContactNote");
         }
         if ($deleted_note["key_val"] == 0) {
             $key = "No";
         } else {
             $key = $deleted_note["key_val"];
         }
         $e_note_undo->addParam("key_val", $key);
         $html .= '<div id="note_ctlbar">';
         $html .= '<div class="note_ctlbar_text">';
         $html .= $note_text;
         $html .= '</div>';
         $html .= '<div class="note_undo">' . $e_note_undo->getLink('Undo') . '</div>';
         $html .= ' <div class="spacerblock_2"></div></div>';
     }
     return $html;
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:29,代码来源:Note.class.php


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