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


PHP Event::addEventAction方法代码示例

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


在下文中一共展示了Event::addEventAction方法的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: 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

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

示例4: eventAjaxGetEditForm

 /**
  * Generate the Ajax Edit form
  * @param $evtcl -- Object
  */
 function eventAjaxGetEditForm(EventControler $evtcl)
 {
     $_SESSION['ProjectDiscussEditSave']->setApplyRegistry(false, "Form");
     $html = '';
     $curdiv = $evtcl->curdiv;
     $this->getId($evtcl->id);
     $user_checked = '';
     $user_coworker_checked = '';
     if ($this->discuss_edit_access == '') {
         $user_checked = 'checked';
     }
     if ($this->discuss_edit_access == 'user') {
         $user_checked = 'checked';
     }
     if ($this->discuss_edit_access == 'user coworker') {
         $user_coworker_checked = 'checked';
     }
     $note_val = $this->discuss;
     $e_edit = new Event("ProjectDiscussEditSave->eventUpdate");
     $e_edit->setLevel(110);
     $e_edit->addEventAction("mydb.gotoPage", 111);
     $e_edit->addEventAction('ProjectDiscussEditSave->eventHTMLCleanUp', 109);
     $e_edit->setGotFile(true);
     if ($this->iduser == $_SESSION['do_User']->iduser) {
         $html .= $e_edit->getFormHeader();
         $html .= $e_edit->getFormEvent();
         $_SESSION['ProjectDiscussEditSave']->setRegistry("ofuz_add_project_discuss");
         $_SESSION['ProjectDiscussEditSave']->setApplyRegistry(true, "Form");
         $html .= '<br />' . _('Note :') . '<br /><textarea id="note_edit" name="fields[discuss]" rows="3" cols="100" class="dojo_textarea">' . $note_val . '</textarea><br />';
         $html .= '<div id="edit_note_more" style="text-align:left;"><a href="#" onclick ="fnEditNoteMoreOpts();return false;">' . _('More Options') . '</a></div>';
         $html .= '<div id="edit_note_more_opts" style="display: none;"> ';
         $html .= _('Hours Worked : ') . $_SESSION['ProjectDiscussEditSave']->hours_work . '<br />';
         $html .= _('File : ') . $_SESSION['ProjectDiscussEditSave']->document . '<br />';
         $html .= _('Who can edit ? ') . '<input type="radio" name="fields[discuss_edit_access]" value="user" ' . $user_checked . '>' . _('Just me') . '&nbsp;&nbsp;';
         $html .= '<input type="radio" name="fields[discuss_edit_access]" value="user coworker" ' . $user_coworker_checked . '>' . _('My Co-Workers and I') . '&nbsp;&nbsp;';
         $html .= '</div>';
         $html .= '<div style="text-align:right">';
         $html .= '<input type="submit" name="Save" value="' . _('Save') . '">&nbsp;&nbsp;<a href="javascript:;" onclick="fnCancelEdit(\'' . $curdiv . '\',' . $evtcl->id . ');return false;">' . _('close') . '</a>';
         $html .= '</div>';
         $html .= '</form>';
         $evtcl->addOutputValue($html);
     } else {
         if ($this->discuss_edit_access == 'user coworker') {
             $html .= $e_edit->getFormHeader();
             $html .= $e_edit->getFormEvent();
             $_SESSION['ProjectDiscussEditSave']->setRegistry("ofuz_add_project_discuss");
             $_SESSION['ProjectDiscussEditSave']->setApplyRegistry(true, "Form");
             $html .= '<br />' . _('Note :') . '<br /><textarea id="note_edit" name="fields[discuss]" rows="3" cols="100" class="dojo_textarea">' . $note_val . '</textarea><br />';
             $html .= '<div style="text-align:right">';
             $html .= '<input type="submit" name="Save" value="' . _('Save') . '">&nbsp;&nbsp;<a href="javascript:;" onclick="fnCancelEdit(\'' . $curdiv . '\',' . $evtcl->id . ');return false;">' . _('close') . '</a>';
             $html .= '</div>';
             $html .= '</form>';
             $evtcl->addOutputValue($html);
         } else {
             $msg = new Message();
             $msg->getMessage("unauthorized_note_edit");
             $html .= $msg->content . '<br /><br />';
             $html .= '<a href="#" onclick = "fnCancelEdit(\'' . $curdiv . '\',' . $evtcl->id . ');return false;">' . _('close') . '</a>';
             $evtcl->addOutputValue($html);
         }
     }
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:66,代码来源:.ProjectDiscuss.class.php

示例5: ContactView

    $do_contact->add();
    $idcontact_inserted = $do_contact->getPrimaryKeyValue();
    $do_contact_view = new ContactView();
    $_SESSION['do_User']->idcontact = $idcontact_inserted;
    $do_contact->getId($idcontact_inserted);
}
$_SESSION['edit_from_page'] = 'settings_myinfo.php';
$do_contact->sessionPersistent("ContactEditSave", "contact.php", OFUZ_TTL);
//$do_contact->sessionPersistent("ContactEditSave", "index.php", 120);
//$do_np_contact->sessionPersistent("ContactPictureSave", "index.php", 120);
$do_np_contact->sessionPersistent("ContactPictureSave", "index.php", OFUZ_TTL);
$_SESSION['ContactPictureSave']->getId($idcontact);
$e_fullContact = new Event("ContactPictureSave->eventValuesFromForm");
$e_fullContact->setLevel(1999);
$e_fullContact->setGotFile(true);
$e_fullContact->addEventAction("ContactPictureSave->update", 2000);
echo $e_fullContact->getFormHeader();
echo $e_fullContact->getFormEvent();
$_SESSION['ContactPictureSave']->setFields("contact_my_info");
$_SESSION['ContactPictureSave']->setApplyRegistry(true, "Form");
?>
                    

        <div class="profile_subject_line">
        <div class="my_profile">My Profile&nbsp;
        <span class="edit_profile">
          <a href="/contact_edit.php?r=bio">Edit Profile</a>
          </b> 
          </span> 
        </div>
        </div>
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:settings_myinfo.php

示例6: htmlentities

    echo htmlentities($_SESSION['in_page_message']);
    $_SESSION['in_page_message'] = '';
    echo '</div></div><br /><br />';
} else {
    $msg = new Message();
    $msg->getMessage("Account Cacel");
    echo '<div class="percent95">', $msg->displayMessage(), '</div>';
}
//$f_user = new User();
//$f_user->getId($_SESSION['do_User']->iduser);
//$f_user->form();
$CancelAccount = new OfuzCancelAccount();
//$CancelAccount->setRegistry('ofuz_cancel_account')
$e_cancel_account = new Event("OfuzCancelAccount->eventCancelAccount");
$e_cancel_account->setLevel(20);
$e_cancel_account->addEventAction("do_User->eventLogout", 50);
echo $e_cancel_account->getFormHeader();
echo $e_cancel_account->getFormEvent();
$CancelAccount->setFields("ofuz_cancel_account");
$CancelAccount->setApplyRegistry(true, "Form");
echo '<br />' . $CancelAccount->reason;
echo '<br /><input type="submit" value="' . _('Yes Cancel and delete all my information') . '" />';
?>
        </div>
        <div class="solidline"></div>
    </td></tr></table>
    <div class="spacerblock_40"></div>
    <div class="layout_footer"></div>
</div>
</td><td class="layout_rmargin"></td></tr></table>
<?php 
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:cancel_account.php

示例7: Contact

    </div>
    <div class="contentfull">
     <?php 
if (isset($_POST['ck'])) {
    $contact_ids = $_POST['ck'];
}
if (count($contact_ids) < 2) {
    echo _('You should have atleat 2 Contacts to be merged');
    echo '<br /><a href="contacts.php">' . _('Click To Back') . '</a>';
} else {
    if (!is_object($_SESSION['do_contact'])) {
        $do_contact = new Contact();
        $do_contact->sessionPersistent("do_contact", "index.php", 36000);
    }
    $e_marge = new Event("do_contact->eventMergeContacts");
    $e_marge->addEventAction("mydb.gotoPage", 304);
    $e_marge->addParam("goto", "contacts.php");
    $e_marge->addParam("contact_ids", $contact_ids);
    echo $e_marge->getFormHeader();
    echo $e_marge->getFormEvent();
    foreach ($contact_ids as $contact) {
        echo '<div class="contact">';
        $_SESSION['do_contact']->getContactDetails($contact);
        echo '<span style="color:orange;">Keep&nbsp;&nbsp;<input type="radio" name = "cont_id[]" value ="' . $contact . '"></span>';
        echo '<b>' . $_SESSION['do_contact']->firstname . ' ' . $_SESSION['do_contact']->lastname . '</b><br />';
        echo '<b>Contact Information:</b><br />';
        $ContactPhone = $_SESSION['do_contact']->getChildContactPhone();
        if ($ContactPhone->getNumRows()) {
            echo "<b>Phone</b><br />";
            echo '<div style="width:auto;margin-left:30px;">';
            while ($ContactPhone->next()) {
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:merge_contacts.php

示例8: Tag

                     <a id="show_tags_link" href="#" onclick="$('#tag_list').slideDown('slow');$('#show_tags_link').hide(); return false;">Show the Tags</a> <!--class="headline10"-->
                     <div id="tag_list" style="display:none">  <?php 
    $do_tag_list = new Tag();
    echo $do_tag_list->getUserTagList("contact");
    ?>
                     </div>
                    </div>
                <?php 
}
?>
                 
                </div>
                <?php 
$e_del_or_tag = new Event("do_Contacts->eventDeleteMultiple");
$e_del_or_tag->addEventAction("do_Contacts->eventAddTagMultiple", 202);
$e_del_or_tag->addEventAction("mydb.gotoPage", 304);
$e_del_or_tag->addParam("goto", "i_contacts.php");
echo $e_del_or_tag->getFormHeader();
echo $e_del_or_tag->getFormEvent();
?>
                <div id="contacts_ctlbar" style="display: none;">
                    <span class="redlink"><a href="#" onclick="setDel(); return false;">Delete</a></span> selected or add tags to selected <input type="text" name="tags" />
                    <span class="sasnlinks">( <span class="bluelink"><a href="#" onclick="fnSelAll(); return false;">select all</a></span> | <span class="bluelink"><a href="#" onclick="fnSelNone(); return false;">select none</a></span> )</span>
                </div>
                <div class="mobile_head_pad5">
<?php 
if ($show_companies) {
    $do_Companies->view_list_companies();
}
$_SESSION['do_Contacts']->view_i_list_contacts();
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:30,代码来源:i_contacts.php

示例9: _

                <h1><?php 
echo _('Edit Company');
?>
</h1>
            </div>
        </div>
        <div class="contentfull">
<?php 
if (!is_object($_SESSION['CompanyEditSave'])) {
    $CompanyEdit = new Company($GLOBALS['conx']);
    $CompanyEdit->sessionPersistent("CompanyEditSave", "index.php", 120);
}
$_SESSION['CompanyEditSave']->getId((int) $_GET['id']);
$e_fullContact = new Event("CompanyEditSave->eventValuesFromForm");
$e_fullContact->setLevel(1999);
$e_fullContact->addEventAction("CompanyEditSave->eventCheckDuplicateCompanyInUpdate", 1000);
$e_fullContact->addEventAction("CompanyEditSave->eventUpdate", 2000);
$e_fullContact->addEventAction("CompanyPhone->eventSavePhones", 2001);
$e_fullContact->addEventAction("CompanyEmail->eventSaveEmails", 2002);
//$e_fullContact->addEventAction("ContactInstantMessage->eventSaveIM", 2003);
$e_fullContact->addEventAction("CompanyAddress->eventSaveContactAddress", 2003);
$e_fullContact->addEventAction("CompanyWebsite->eventSaveWebsites", 2004);
$e_fullContact->addEventAction("mydb.gotoPage", 900);
$e_fullContact->addParam("goto", "company.php");
echo $e_fullContact->getFormHeader();
echo $e_fullContact->getFormEvent();
$_SESSION['CompanyEditSave']->setRegistry("company");
$_SESSION['CompanyEditSave']->setApplyRegistry(true, "Form");
?>
                <table class="tplain">
                    <tr>
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:company_edit.php

示例10: Event

    $e_inv_logo->addEventAction("mydb.gotoPage", 2333);
    $e_inv_logo->addParam("goto", $_SERVER['PHP_SELF']);
    echo $e_inv_logo->getFormHeader();
    echo $e_inv_logo->getFormEvent();
    $_SESSION['InvLogo']->setFields("invoice_logo");
    $_SESSION['InvLogo']->setApplyRegistry(true, "Form");
    echo _('Logo (GIF files are not supported)') . '<br />';
    echo $_SESSION['InvLogo']->setting_value;
    echo '<img src="files/' . $img . '">';
    echo '</td>';
    echo '<td width="10%" style="text-align:left;">';
    echo $e_inv_logo->getFormFooter(_('Save'));
    echo '</td></tr></table>';
} else {
    $e_inv_logo = new Event("InvLogo->eventValuesFromForm");
    $e_inv_logo->addEventAction("InvLogo->add", 2000);
    $e_inv_logo->addEventAction("InvLogo->eventCheckInvLogoExtension", 2);
    echo '<table width="50%" height="100px"><tr><td width="40%">';
    $e_inv_logo->setGotFile(true);
    $e_inv_logo->addEventAction("mydb.gotoPage", 2333);
    $e_inv_logo->addParam("goto", $_SERVER['PHP_SELF']);
    echo $e_inv_logo->getFormHeader();
    echo $e_inv_logo->getFormEvent();
    $_SESSION['InvLogo']->setFields("invoice_logo");
    $_SESSION['InvLogo']->setApplyRegistry(true, "Form");
    echo _('Logo (GIF files are not supported)') . '<br />';
    echo $_SESSION['InvLogo']->setting_value;
    echo $_SESSION['InvLogo']->setting_name;
    echo $_SESSION['InvLogo']->iduser;
    echo '</td>';
    echo '<td width="10%" style="text-align:left;">';
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:ww_s4.php

示例11: _

    echo _('Alphabetically');
    ?>
</option>
                            </select>
                          </h3>
                        </form>
                     </div>
                     </div>
                <?php 
}
?>
                 
                </div>
                <?php 
$e_del_or_tag = new Event("do_Contacts->eventAddTagMultiple");
$e_del_or_tag->addEventAction("mydb.gotoPage", 304);
$e_del_or_tag->addParam("goto", "contacts.php");
echo $e_del_or_tag->getFormHeader();
echo $e_del_or_tag->getFormEvent();
?>
		<div id="sticky-anchor"></div>
                <div id="contacts_ctlbar" style="display: none;">
                    <b><?php 
echo _('With the selected contacts you can:');
?>
</b><br />
                    <?php 
echo _('Add tags') . _(':');
?>
					<?php 
$do_suggest_tag = new Tag();
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:contacts.php

示例12: sprintf

            } else {
                echo '<span>' . sprintf(_("%s shared %d contacts"), $_SESSION['do_coworker']->firstname, $no_cont_shared_by_co_worker) . '</span>&nbsp;' . sprintf(_('and %d projects'), $no_proj_shared_by_co_worker);
            }
            //if ($no_cont_shared > 0 || $no_cont_shared_by_co_worker > 0) {
            //echo '<br />';
            //}
            echo '</div>';
            echo '</div>';
            echo '<div style="clear:both;padding:10px;"></div>';
            echo '<br />';
        }
        // class="co_worker_pending"
    } else {
        // Having some POST data from contacts.php
        $e_share_cont = new Event("do_contact_sharing->eventShareContactsMultiple");
        $e_share_cont->addEventAction("mydb.gotoPage", 304);
        $e_share_cont->addEventAction("ContactTeam->eventShareExistingContactWithTeamCw", 200);
        $e_share_cont->addEventAction("Teams->eventShareCWsWithTeam", 210);
        $e_share_cont->addParam("goto", "co_workers.php");
        $e_share_cont->addParam("idcontacts", $contact_ids);
        echo $e_share_cont->getFormHeader();
        echo $e_share_cont->getFormEvent();
        echo '<a href="teams.php">Teams</a>' . ' - ' . '<a href="co_workers.php">All Co-Workers</a>' . '<br /><br />';
        if ($teams_count) {
            echo '<b>' . _('Your Teams') . '</b><br /><br />';
            while ($do_teams->next()) {
                ?>
				      <input type="checkbox" name="team[]" value="<?php 
                echo $do_teams->idteam;
                ?>
" /> <?php 
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:os_co_worker.php

示例13: sprintf

                 echo '<span>' . sprintf(_("%s shared %d contacts") , $_SESSION['do_coworker']->firstname, $no_cont_shared_by_co_worker) . '</span>&nbsp;' . sprintf(_('and %d projects') , $no_proj_shared_by_co_worker);
                 }
         
               // if ($no_cont_shared > 0 || $no_cont_shared_by_co_worker > 0) {
               // echo '<br />';
               // }*/
         echo '</div>';
         echo '</div>';
         echo '<div style="clear:both;padding:10px;"></div>';
         echo '<br />';
     }
     // class="co_worker_pending"
 } else {
     // Having some POST data from contacts.php
     $e_share_cont = new Event("do_contact_sharing->eventShareContactsMultiple");
     $e_share_cont->addEventAction("mydb.gotoPage", 304);
     $e_share_cont->addParam("goto", "co_workers.php");
     $e_share_cont->addParam("idcontacts", $contact_ids);
     echo $e_share_cont->getFormHeader();
     echo $e_share_cont->getFormEvent();
     echo '<b>' . _('Select Co-Worker you want to give access to the contact(s) and click Share to save :') . '</b><br />';
     echo '<div id="coworker_ctlbar" style="display: none;">';
     echo '<span class="redlink"><a href="#" onclick="setContactForCoworker(); return false;" style="font-size:20px;">' . _('Share') . '</a></span>';
     echo '</div>';
     // $user_coworker = new User();
     while ($_SESSION['do_coworker']->next()) {
         // $user_coworker->getId($_SESSION['do_coworker']->idcoworker);
         echo '<div class="ofuz_list_contact" id="cw' . $_SESSION['do_coworker']->idcoworker . '" onclick="fnHighlightCoworkers(\'' . $_SESSION['do_coworker']->idcoworker . '\')">';
         echo '<input type="checkbox" class="ofuz_list_checkbox" name="cwid[]" id="cwid' . $_SESSION['do_coworker']->idcoworker . '" value="' . $_SESSION['do_coworker']->idcoworker . '" onclick="fnHighlightCoworkers(\'' . $_SESSION['do_coworker']->idcoworker . '\')" />&nbsp;&nbsp;';
         $no_cont_shared = $_SESSION['do_contact_sharing']->countSharedContacts($_SESSION['do_coworker']->idcoworker);
         $no_cont_shared_by_co_worker = $_SESSION['do_contact_sharing']->countSharedContactsByCoWorker($_SESSION['do_coworker']->idcoworker);
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:co_workers.php

示例14: Task

include_once "config.php";
include_once "includes/header.inc.php";
include_once "pb_globaldivs.sys.php";
?>
<DIV id="DRAG_script_Script" style="top:46px;left:237px;height:267px;width:451px;position:absolute;visibility:visible;z-index:5;">
<!--META  metainfo="execorder:30;filename:includes/blank_script.script.inc.php;" --><?php 
$do_task = new Task($GLOBALS['conx']);
$do_task->getTaskAddForm();
echo '<br><br><br> Following is just the edit example for the task id 1 <br><br>';
$TaskEdit = new Task($GLOBALS['conx']);
$TaskEdit->getId(1);
$TaskEdit->sessionPersistent("TaskEdit", "index.php", 120);
// $TaskEdit->newUpdateForm("TaskEdit");
$e_task = new Event("TaskEdit->eventValuesFromForm");
$e_task->setLevel(1999);
$e_task->addEventAction("TaskEdit->eventSetDateInFormat", 20);
$e_task->addEventAction("TaskEdit->update", 2000);
echo $e_task->getFormHeader();
echo $e_task->getFormEvent();
$_SESSION['TaskEdit']->setRegistry("task");
$_SESSION['TaskEdit']->setApplyRegistry(true, "Form");
echo $_SESSION['TaskEdit']->task_description;
echo '<br><br>';
$_SESSION['TaskEdit']->due_date = $TaskEdit->convertDateToString($TaskEdit->getDateFormatForTask(1));
echo $_SESSION['TaskEdit']->due_date;
echo '<br><br>';
echo $_SESSION['TaskEdit']->category;
echo '<br><br>';
echo $_SESSION['TaskEdit']->iduser;
echo $e_task->getFormFooter("Update");
?>
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:task_edit.php

示例15: Message

    </td><td class="layout_rcolumn">
        <div class="contentfull">
            <?php 
if ($_SESSION['in_page_message'] != '') {
    $msg = new Message();
    if ($_SESSION['in_page_message'] == 'invoice_client_email_not_found') {
        $msg->getMessage($_SESSION['in_page_message']);
        $msg->displayMessage();
        echo '<div style="margin-left:0px;">';
        echo '<div class="messages_unauthorized">';
        $e_set_email = new Event("Contact->eventSetEmailId");
        $e_set_email->addParam('id', $_SESSION['do_invoice']->idinvoice);
        $e_set_email->addParam('contact', $_SESSION['do_invoice']->idcontact);
        $e_set_email->addParam("goto", $_SERVER['PHP_SELF']);
        $e_set_email->addEventAction("do_invoice->eventSendInvoiceByEmail", 105);
        echo $e_set_email->getFormHeader();
        echo $e_set_email->getFormEvent();
        echo '<br />' . _("Please enter the Email address : ");
        echo '<input type="text" name="emailid" value="" >';
        echo $e_set_email->getFormFooter("Submit");
        echo '</div></div><br /><br />';
    } else {
        $msg->setData(array("contact_email" => $_SESSION['in_page_message_data']['contact_email']));
        $msg->getMessage($_SESSION['in_page_message']);
        $msg->displayMessage();
    }
    $_SESSION['in_page_message'] = '';
    $_SESSION['in_page_message_data']['contact_email'] = '';
}
?>
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:30,代码来源:invoice.php


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