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


PHP Event::getFormHeader方法代码示例

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


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

function submitImportForm() {
  document.getElementById('loader').style.display = 'block';
  document.getElementById('RestoreAccount__eventImportAccount').submit();
  document.getElementById('loader').style.display = '';
}
</script>
<div class="import_cont3" id="loader" style="display:none;"><img src="/images/ajax-loader1.gif" border="0" /></div>
<?php 
include_once "config.php";
ini_set('max_execution_time', 300);
//300 seconds = 5 minutes
if ($_SESSION['in_page_message'] != "") {
    echo '<div class="import_cont3"><b>' . $_SESSION['in_page_message'] . '</b></div>';
}
$import_xml = new Event("RestoreAccount->eventImportAccount");
$import_xml->addParam("goto", $_SERVER["PHP_SELF"]);
$import_xml->setGotFile(true);
$import_xml->setSecure(true);
$htmlform = $import_xml->getFormHeader();
$htmlform .= $import_xml->getFormEvent();
$htmlform .= '<div class="import_cont3"><b>File Location: &nbsp; </b>';
$htmlform .= '<input type="file" name="fields[import_account]">';
//$htmlform .= $import_xml->getFormFooter("Import").'</div>';
$htmlform .= '<input type="button" name="button" value="Import" onclick="javascript:submitImportForm();"/>';
$htmlform .= '</form></div>';
$htmlform .= "\n";
echo $htmlform;
$_SESSION['in_page_message'] = "";
?>

开发者ID:jacquesbagui,项目名称:ofuz,代码行数:29,代码来源:import_account.php

示例8: Event

    ?>
 tags</a></span><br />
                                            <div id="cont_tag_add" style="display: none;">
                                              <input type="text" name="tags" />&nbsp;<input type="button" name="tagsadd" value="Add" onclick="fnAddTags();" />&nbsp;<a href="#" onclick="hideTagOpt(); return false;">Done</a>
                                            </div>
                                          </form>
                                  <?php 
} else {
    if (is_object($_SESSION["eDetail_contact"])) {
        $e_tag = new Event("do_Contacts->eventAddTagMultiple");
    } elseif (is_object($_SESSION['ContactEditSave'])) {
        $e_tag = new Event("ContactEditSave->eventAddTagMultiple");
    }
    $e_tag->addEventAction("mydb.gotoPage", 304);
    $e_tag->addParam("goto", "i_contact.php");
    echo $e_tag->getFormHeader();
    echo $e_tag->getFormEvent();
    ?>
                                      <a href="#" onclick="showTagOpt()" style="color: #666666;">Add tags</a>
                                          <div id="cont_tag_add" style="display: none;">
                                              <input type="hidden" name="ck[]" value = "<?php 
    echo $idcontact;
    ?>
" />
                                              <input type="text" name="tags" />&nbsp;<input type="submit" name="tagsadd" value="Add"/>&nbsp;<a href="#" onclick="hideTagOpt()">Hide</a>
                                           </div>
                                          </form>
                                  <?php 
}
?>
                                </div>
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:i_contact.php

示例9: Event

               // 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);
         /*
               $do_contact = new Contact();
               $do_contact->getUserContacts($_SESSION['do_coworker']->idcoworker);
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:co_workers.php

示例10: _

" />
            <input type="submit" value="<?php 
echo _('Save');
?>
" /> &nbsp;or&nbsp; <a href="#" onclick="fnEditProject(); return false;"><?php 
echo _('cancel');
?>
</a>
            </form>
        </div>
     <?php 
$do_proj_task_operation = new ProjectTask();
$e_set_close = new Event("do_list_project_task->eventChangeOwnerMultiple");
$e_set_close->addEventAction("mydb.gotoPage", 304);
$e_set_close->addParam("goto", "Project/" . $idproject);
echo $e_set_close->getFormHeader();
echo $e_set_close->getFormEvent();
?>
<div id="sticky-anchor"></div>
 <div id="contacts_ctlbar" style="display: none;">
    <?php 
echo '<b>' . _('With the selected Task(s) you can:') . '</b><br/>';
echo _('Change the task owner') . _(':');
echo $do_proj_task_operation->renderChangeTaskOwnerList($idproject);
echo '<br/>' . _(' or ') . ' ' . _('move them to another project') . _(':');
$_SESSION['do_project']->getAllProjects();
echo '<select name="project_id">' . $_SESSION['do_project']->getProjectsSelectOptions($_SESSION['do_project_task']->idproject) . '</select>';
echo '<input type="button" onclick = "changeProjMul();return false;" value="' . _('Move') . '">';
echo '<br/>' . _(' or ') . ' ' . _('change due date') . _(':');
// OO style using FieldsForm object to generate a field. The same thing we have on task.php to generate due_date but using JS and HTML
$field_due_date_mul = new DijitDateTextBox("due_date_mul");
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:project.php

示例11: _

    echo $msg->getMessage("unauthorized_invoice_access");
    echo '</div></div><br /><br />';
    exit;
}
// Main Invoice Form
$f_invoiceForm = new Event("InvoiceEditSave->eventValuesFromForm");
$f_invoiceForm->setLevel(1999);
//$f_invoiceForm->addEventAction("InvoiceEditSave->checkEmptyDueDate", 1999);
$f_invoiceForm->addEventAction("InvoiceEditSave->eventUpdateInvoice", 2000);
$f_invoiceForm->addEventAction("InvoiceLine->eventSaveInvoiceLine", 2200);
$f_invoiceForm->addEventAction("InvoiceEditSave->eventCheckContactChanged", 2201);
$f_invoiceForm->addEventAction("InvoiceEditSave->eventSetInvoiceCalculation", 2210);
$f_invoiceForm->addParam("id", $_SESSION['InvoiceEditSave']->idinvoice);
$f_invoiceForm->addParam("contact", $_SESSION['InvoiceEditSave']->idcontact);
$f_invoiceForm->addParam("goto", "invoice.php");
echo $f_invoiceForm->getFormHeader();
echo $f_invoiceForm->getFormEvent();
$discount = $_SESSION['InvoiceEditSave']->discount;
$tax = $_SESSION['InvoiceEditSave']->tax;
$idcontact = $_SESSION['InvoiceEditSave']->idcontact;
$due_date = $_SESSION['InvoiceEditSave']->due_date;
$contact_name_comp = $do_contact->getContact_Company_ForInvoice($idcontact, $_SESSION['InvoiceEditSave']->idcompany);
$_SESSION['InvoiceEditSave']->setFields("invoice_edit");
$_SESSION['InvoiceEditSave']->setApplyRegistry(true, "Form");
?>
    <div class="grayline1"></div>
    <div class="spacerblock_20"></div>
    <table class="layout_columns"><tr><td class="layout_lcolumn">
        <div class="left_menu_header">
            <div class="left_menu_header_content"><?php 
echo _('Recurrent Invoice?');
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:invoice_edit.php

示例12: _

</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();
$do_suggest_tag->setFields("auto_suggest_tag");
$do_suggest_tag->setApplyRegistry(true, "Form");
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:contacts.php

示例13: Event

    $e_del_paypal->addParam("id_paypal_business", $inv_paypal_email["iduser_settings"]);
    $e_del_paypal->addParam("goto", $_SERVER['PHP_SELF']);
    echo '<b>' . _('Paypal details') . '</b>&nbsp;&nbsp;' . $e_del_paypal->getLink(_('delete')) . '<br />';
    echo _('Paypal Business Email :') . '<br />
	    <input type = "text" name = "paypal_b_email" id="paypal_b_email"
	    value ="' . $inv_paypal_email["setting_value"] . '" size="40"><br />';
    echo '</td>';
    echo '<td width="10%" style="text-align:left;">';
    echo $e_inv_paypal->getFormFooter(_('Save'));
    echo '</td></tr></table>';
} else {
    $e_inv_paypal = new Event("UserSettings->eventAddPaypalDetail");
    $e_inv_paypal->setLevel(20);
    $e_inv_paypal->addParam("goto", $_SERVER['PHP_SELF']);
    echo '<table width="50%" height="75px"><tr><td width="40%">';
    echo $e_inv_paypal->getFormHeader();
    echo $e_inv_paypal->getFormEvent();
    echo '<b>' . _('Paypal details') . '</b><br />';
    echo _('Paypal Business Email :') . '<br />
	    <input type = "text" name = "paypal_b_email" id="paypal_b_email" value ="" size="32"><br />';
    echo '</td>';
    echo '<td width="10%" style="text-align:left;">';
    echo $e_inv_paypal->getFormFooter(_('Save'));
    echo '</td></tr></table>';
}
?>
	  </div>
	</div>
      <div class="spacerblock_40"></div>
      <div>
	<a id="next" href="ww_s5.php"><img src="/images/next.jpg" border="0" /></a> <br />
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:ww_s4.php

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

示例15: Event

    $e_inv_date_format->addParam("id_inv_date_format", $inv_date_format["iduser_settings"]);
    $e_inv_date_format->addParam("goto", $_SERVER['PHP_SELF']);
    echo $e_inv_date_format->getFormHeader();
    echo $e_inv_date_format->getFormEvent();
    echo '<div class="in290x18">';
    echo '<b>' . _('Date Format') . '</b><br />';
    echo $UserSettings->listInvDateFormat($inv_date_format["setting_value"]);
    echo "<br>";
    echo $e_inv_date_format->getFormFooter(_('Save'));
    echo '</div>
                      <div class="dashedline"></div>';
} else {
    $e_inv_date_format = new Event("UserSettings->eventAddInvDateFormat");
    $e_inv_date_format->setLevel(30);
    $e_inv_date_format->addParam("goto", $_SERVER['PHP_SELF']);
    echo $e_inv_date_format->getFormHeader();
    echo $e_inv_date_format->getFormEvent();
    echo '<div class="in290x18">';
    echo '<b>' . _('Date Format') . '</b><br />';
    echo $UserSettings->listInvDateFormat();
    echo "<br>";
    echo $e_inv_date_format->getFormFooter(_('Save'));
    echo '</div>
                      <div class="dashedline"></div>';
}
?>
        </div>
        <div class="solidline"></div>
    </td></tr></table>
    <div class="spacerblock_40"></div>
    <div class="layout_footer"></div>
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:settings_invoice.php


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