本文整理汇总了PHP中Event::getFormFooter方法的典型用法代码示例。如果您正苦于以下问题:PHP Event::getFormFooter方法的具体用法?PHP Event::getFormFooter怎么用?PHP Event::getFormFooter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Event
的用法示例。
在下文中一共展示了Event::getFormFooter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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;
}
示例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);
}
示例3: 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;
}
示例4: 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;
}
示例5:
?>
at </a> <a href="<?php
echo $companyURL;
?>
" class="profile_company"><?php
echo $_SESSION['ContactEditSave']->company;
?>
</a>
</div>
<div id="profile_edit_photo_save" style="display:none;">
<?php
echo $_SESSION['ContactPictureSave']->picture;
?>
<?php
echo $e_fullContact->getFormFooter("Update");
?>
</div>
<?php
$_SESSION['ContactPictureSave']->setApplyRegistry(false);
?>
</div>
</div>
<br>
<div id="profile_subject_line">
<span class="profile_text_subjectline">Bio</span>
<span id="bio" class="profile_text_link"><a href="/profile_edit.php">Edit Bio</a></span>
<!--<span id="bio" class="profile_text_link"><a href="#">Edit Bio</a></span>-->
示例6: generateBlockContent
//.........这里部分代码省略.........
<option value="bg_BG" ' . ($selected = $_SESSION["dest_lang"] == "bg_BG" ? "selected" : "") . '>Bulgarian (Bulgaria)</option>
<option value="ca_ES" ' . ($selected = $_SESSION["dest_lang"] == "ca_ES" ? "selected" : "") . '>Catalan (Spain)</option>
<option value="zh_CN" ' . ($selected = $_SESSION["dest_lang"] == "zh_CN" ? "selected" : "") . '>Chinese (China)</option>
<option value="zh_HK" ' . ($selected = $_SESSION["dest_lang"] == "zh_HK" ? "selected" : "") . '>Chinese (Hong Kong)</option>
<option value="zh_SG" ' . ($selected = $_SESSION["dest_lang"] == "zh_SG" ? "selected" : "") . '>Chinese (Singapore)</option>
<option value="zh_TW" ' . ($selected = $_SESSION["dest_lang"] == "zh_TW" ? "selected" : "") . '>Chinese (Taiwan)</option>
<option value="hr_HR" ' . ($selected = $_SESSION["dest_lang"] == "hr_HR" ? "selected" : "") . '>Croatian (Croatia)</option>
<option value="cs_CZ" ' . ($selected = $_SESSION["dest_lang"] == "cs_CZ" ? "selected" : "") . '>Czech (Czech Republic)</option>
<option value="da_DK" ' . ($selected = $_SESSION["dest_lang"] == "da_DK" ? "selected" : "") . '>Danish (Denmark)</option>
<option value="nl_BE" ' . ($selected = $_SESSION["dest_lang"] == "nl_BE" ? "selected" : "") . '>Dutch (Belgium)</option>
<option value="nl_NL" ' . ($selected = $_SESSION["dest_lang"] == "nl_NL" ? "selected" : "") . '>Dutch (Netherlands)</option>
<option value="en_AU" ' . ($selected = $_SESSION["dest_lang"] == "en_AU" ? "selected" : "") . '>English (Australia)</option>
<option value="en_CA" ' . ($selected = $_SESSION["dest_lang"] == "en_CA" ? "selected" : "") . '>English (Canada)</option>
<option value="en_IN" ' . ($selected = $_SESSION["dest_lang"] == "en_IN" ? "selected" : "") . '>English (India)</option>
<option value="en_IE" ' . ($selected = $_SESSION["dest_lang"] == "en_IE" ? "selected" : "") . '>English (Ireland)</option>
<option value="en_MT" ' . ($selected = $_SESSION["dest_lang"] == "en_MT" ? "selected" : "") . '>English (Malta)</option>
<option value="en_NZ" ' . ($selected = $_SESSION["dest_lang"] == "en_NZ" ? "selected" : "") . '>English (New Zealand)</option>
<option value="en_PH" ' . ($selected = $_SESSION["dest_lang"] == "en_PH" ? "selected" : "") . '>English (Philippines)</option>
<option value="en_SG" ' . ($selected = $_SESSION["dest_lang"] == "en_SG" ? "selected" : "") . '>English (Singapore)</option>
<option value="en_ZA" ' . ($selected = $_SESSION["dest_lang"] == "en_ZA" ? "selected" : "") . '>English (South Africa)</option>
<option value="en_GB" ' . ($selected = $_SESSION["dest_lang"] == "en_GB" ? "selected" : "") . '>English (United Kingdom)</option>
<option value="en_US" ' . ($selected = $_SESSION["dest_lang"] == "en_US" ? "selected" : "") . '>English (United States)</option>
<option value="et_EE" ' . ($selected = $_SESSION["dest_lang"] == "et_EE" ? "selected" : "") . '>Estonian (Estonia)</option>
<option value="fi_FI" ' . ($selected = $_SESSION["dest_lang"] == "fi_FI" ? "selected" : "") . '>Finnish (Finland)</option>
<option value="fr_BE" ' . ($selected = $_SESSION["dest_lang"] == "fr_BE" ? "selected" : "") . '>French (Belgium)</option>
<option value="fr_CA" ' . ($selected = $_SESSION["dest_lang"] == "fr_CA" ? "selected" : "") . '>French (Canada)</option>
<option value="fr_FR" ' . ($selected = $_SESSION["dest_lang"] == "fr_FR" ? "selected" : "") . '>French (France)</option>
<option value="fr_LU" ' . ($selected = $_SESSION["dest_lang"] == "fr_LU" ? "selected" : "") . '>French (Luxembourg)</option>
<option value="fr_CH" ' . ($selected = $_SESSION["dest_lang"] == "fr_CH" ? "selected" : "") . '>French (Switzerland)</option>
<option value="de_AT" ' . ($selected = $_SESSION["dest_lang"] == "de_AT" ? "selected" : "") . '>German (Austria)</option>
<option value="de_DE" ' . ($selected = $_SESSION["dest_lang"] == "de_DE" ? "selected" : "") . '>German (Germany)</option>
<option value="de_LU" ' . ($selected = $_SESSION["dest_lang"] == "de_LU" ? "selected" : "") . '>German (Luxembourg)</option>
<option value="de_CH" ' . ($selected = $_SESSION["dest_lang"] == "de_CH" ? "selected" : "") . '>German (Switzerland)</option>
<option value="el_CY" ' . ($selected = $_SESSION["dest_lang"] == "el_CY" ? "selected" : "") . '>Greek (Cyprus)</option>
<option value="el_GR" ' . ($selected = $_SESSION["dest_lang"] == "el_GR" ? "selected" : "") . '>Greek (Greece)</option>
<option value="iw_IL" ' . ($selected = $_SESSION["dest_lang"] == "iw_IL" ? "selected" : "") . '>Hebrew (Israel)</option>
<option value="hi_IN" ' . ($selected = $_SESSION["dest_lang"] == "hi_IN" ? "selected" : "") . '>Hindi (India)</option>
<option value="hu_HU" ' . ($selected = $_SESSION["dest_lang"] == "hu_HU" ? "selected" : "") . '>Hungarian (Hungary)</option>
<option value="is_IS" ' . ($selected = $_SESSION["dest_lang"] == "is_IS" ? "selected" : "") . '>Icelandic (Iceland)</option>
<option value="in_ID" ' . ($selected = $_SESSION["dest_lang"] == "in_ID" ? "selected" : "") . '>Indonesian (Indonesia)</option>
<option value="ga_IE" ' . ($selected = $_SESSION["dest_lang"] == "ga_IE" ? "selected" : "") . '>Irish (Ireland)</option>
<option value="it_IT" ' . ($selected = $_SESSION["dest_lang"] == "it_IT" ? "selected" : "") . '>Italian (Italy)</option>
<option value="it_CH" ' . ($selected = $_SESSION["dest_lang"] == "it_CH" ? "selected" : "") . '>Italian (Switzerland)</option>
<option value="ja_JP" ' . ($selected = $_SESSION["dest_lang"] == "ja_JP" ? "selected" : "") . '>Japanese (Japan)</option>
<option value="ja_JP_JP" ' . ($selected = $_SESSION["dest_lang"] == "ja_JP_JP" ? "selected" : "") . '>Japanese (Japan,JP)</option>
<option value="ko_KR" ' . ($selected = $_SESSION["dest_lang"] == "ko_KR" ? "selected" : "") . '>Korean (South Korea)</option>
<option value="lv_LV" ' . ($selected = $_SESSION["dest_lang"] == "lv_LV" ? "selected" : "") . '>Latvian (Latvia)</option>
<option value="lt_LT" ' . ($selected = $_SESSION["dest_lang"] == "lt_LT" ? "selected" : "") . '>Lithuanian (Lithuania)</option>
<option value="mk_MK" ' . ($selected = $_SESSION["dest_lang"] == "mk_MK" ? "selected" : "") . '>Macedonian (Macedonia)</option>
<option value="ms_MY" ' . ($selected = $_SESSION["dest_lang"] == "ms_MY" ? "selected" : "") . '>Malay (Malaysia)</option>
<option value="mt_MT" ' . ($selected = $_SESSION["dest_lang"] == "mt_MT" ? "selected" : "") . '>Maltese (Malta)</option>
<option value="no_NO" ' . ($selected = $_SESSION["dest_lang"] == "no_NO" ? "selected" : "") . '>Norwegian (Norway)</option>
<option value="no_NO_NY" ' . ($selected = $_SESSION["dest_lang"] == "no_NO_NY" ? "selected" : "") . '>Norwegian (Norway,Nynorsk)</option>
<option value="pl_PL" ' . ($selected = $_SESSION["dest_lang"] == "pl_PL" ? "selected" : "") . '>Polish (Poland)</option>
<option value="pt_BR" ' . ($selected = $_SESSION["dest_lang"] == "pt_BR" ? "selected" : "") . '>Portuguese (Brazil)</option>
<option value="pt_PT" ' . ($selected = $_SESSION["dest_lang"] == "pt_PT" ? "selected" : "") . '>Portuguese (Portugal)</option>
<option value="ro_RO" ' . ($selected = $_SESSION["dest_lang"] == "ro_RO" ? "selected" : "") . '>Romanian (Romania)</option>
<option value="ru_RU" ' . ($selected = $_SESSION["dest_lang"] == "ru_RU" ? "selected" : "") . '>Russian (Russia)</option>
<option value="sr_BA" ' . ($selected = $_SESSION["dest_lang"] == "sr_BA" ? "selected" : "") . '>Serbian (Bosnia and Herzegovina)</option>
<option value="sr_ME" ' . ($selected = $_SESSION["dest_lang"] == "sr_ME" ? "selected" : "") . '>Serbian (Montenegro)</option>
<option value="sr_CS" ' . ($selected = $_SESSION["dest_lang"] == "sr_CS" ? "selected" : "") . '>Serbian (Serbia and Montenegro)</option>
<option value="sr_RS" ' . ($selected = $_SESSION["dest_lang"] == "sr_RS" ? "selected" : "") . '>Serbian (Serbia)</option>
<option value="sk_SK" ' . ($selected = $_SESSION["dest_lang"] == "sk_SK" ? "selected" : "") . '>Slovak (Slovakia)</option>
<option value="sl_SI" ' . ($selected = $_SESSION["dest_lang"] == "sl_SI" ? "selected" : "") . '>Slovenian (Slovenia)</option>
<option value="es_AR" ' . ($selected = $_SESSION["dest_lang"] == "es_AR" ? "selected" : "") . '>Spanish (Argentina)</option>
<option value="es_BO" ' . ($selected = $_SESSION["dest_lang"] == "es_BO" ? "selected" : "") . '>Spanish (Bolivia)</option>
<option value="es_CL" ' . ($selected = $_SESSION["dest_lang"] == "es_CL" ? "selected" : "") . '>Spanish (Chile)</option>
<option value="es_CO" ' . ($selected = $_SESSION["dest_lang"] == "es_CO" ? "selected" : "") . '>Spanish (Colombia)</option>
<option value="es_CR" ' . ($selected = $_SESSION["dest_lang"] == "es_CR" ? "selected" : "") . '>Spanish (Costa Rica)</option>
<option value="es_DO" ' . ($selected = $_SESSION["dest_lang"] == "es_DO" ? "selected" : "") . '>Spanish (Dominican Republic)</option>
<option value="es_EC" ' . ($selected = $_SESSION["dest_lang"] == "es_EC" ? "selected" : "") . '>Spanish (Ecuador)</option>
<option value="es_SV" ' . ($selected = $_SESSION["dest_lang"] == "es_SV" ? "selected" : "") . '>Spanish (El Salvador)</option>
<option value="es_GT" ' . ($selected = $_SESSION["dest_lang"] == "es_GT" ? "selected" : "") . '>Spanish (Guatemala)</option>
<option value="es_HN" ' . ($selected = $_SESSION["dest_lang"] == "es_HN" ? "selected" : "") . '>Spanish (Honduras)</option>
<option value="es_MX" ' . ($selected = $_SESSION["dest_lang"] == "es_MX" ? "selected" : "") . '>Spanish (Mexico)</option>
<option value="es_NI" ' . ($selected = $_SESSION["dest_lang"] == "es_NI" ? "selected" : "") . '>Spanish (Nicaragua)</option>
<option value="es_PA" ' . ($selected = $_SESSION["dest_lang"] == "es_PA" ? "selected" : "") . '>Spanish (Panama)</option>
<option value="es_PY" ' . ($selected = $_SESSION["dest_lang"] == "es_PY" ? "selected" : "") . '>Spanish (Paraguay)</option>
<option value="es_PE" ' . ($selected = $_SESSION["dest_lang"] == "es_PE" ? "selected" : "") . '>Spanish (Peru)</option>
<option value="es_PR" ' . ($selected = $_SESSION["dest_lang"] == "es_PR" ? "selected" : "") . '>Spanish (Puerto Rico)</option>
<option value="es_ES" ' . ($selected = $_SESSION["dest_lang"] == "es_ES" ? "selected" : "") . '>Spanish (Spain)</option>
<option value="es_US" ' . ($selected = $_SESSION["dest_lang"] == "es_US" ? "selected" : "") . '>Spanish (United States)</option>
<option value="es_UY" ' . ($selected = $_SESSION["dest_lang"] == "es_UY" ? "selected" : "") . '>Spanish (Uruguay)</option>
<option value="es_VE" ' . ($selected = $_SESSION["dest_lang"] == "es_VE" ? "selected" : "") . '>Spanish (Venezuela)</option>
<option value="sv_SE" ' . ($selected = $_SESSION["dest_lang"] == "sv_SE" ? "selected" : "") . '>Swedish (Sweden)</option>
<option value="th_TH" ' . ($selected = $_SESSION["dest_lang"] == "th_TH" ? "selected" : "") . '>Thai (Thailand)</option>
<option value="th_TH_TH" ' . ($selected = $_SESSION["dest_lang"] == "th_TH_TH" ? "selected" : "") . '>Thai (Thailand,TH)</option>
<option value="tr_TR" ' . ($selected = $_SESSION["dest_lang"] == "tr_TR" ? "selected" : "") . '>Turkish (Turkey)</option>
<option value="uk_UA" ' . ($selected = $_SESSION["dest_lang"] == "uk_UA" ? "selected" : "") . '>Ukrainian (Ukraine)</option>
<option value="vi_VN" ' . ($selected = $_SESSION["dest_lang"] == "vi_VN" ? "selected" : "") . '>Vietnamese (Vietnam)</option>
</select>';
$output .= $source_lang . "<br /> To <br />" . $destination_lang;
$output .= $e_translate->getFormFooter(_("Submit"));
$menu = "<br /><a href=\"/Tab/Translation/Message\">Untranslated messages</a><br />";
$menu .= "<a href=\"/Tab/Translation/EmailTemplate\">Untranslated email template</a><br />";
$menu .= "<a href=\"/entrans/list.php?category=untrans&page=1\">Untranslated text strings</a><br />";
// $menu .= "<a href=\"javascript:;\">Edit email template</a><br />";
// $menu .= "<a href=\"javascript:;\">Edit messages</a>";
return $output . $menu;
}
示例7: Event
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>
</div>
</td><td class="layout_rmargin"></td></tr></table>
<?php
include_once 'includes/ofuz_facebook.php';
include_once 'includes/ofuz_analytics.inc.php';
?>
示例8: generateAddCoworkerBlock
/**
* A custom method within the Plugin to generate the content
*
* @return string : HTML form
* @see class/UserRelations.class.php
* @see class/Project.class.php
*/
function generateAddCoworkerBlock()
{
$output = '';
$output .= '<div class="percent95">';
$isProjectOwner = false;
if ($_SESSION["do_project"]->isProjectOwner()) {
$isProjectOwner = true;
}
/* Adding Co-Workers are allowed only if the project owner is
the user
*/
if ($isProjectOwner) {
$do_user_rel = new UserRelations();
$do_user_rel->getAllCoWorker();
$co_worker_added_in_ofuz = false;
if ($do_user_rel->getNumRows()) {
$co_worker_added_in_ofuz = true;
}
if ($co_worker_added_in_ofuz) {
$e_share_project = new Event("do_project->eventShareProjects");
$e_share_project->addParam("goto", "Project/" . $_SESSION["do_project"]->idproject);
$e_share_project->addParam("idproject", $_SESSION["do_project"]->idproject);
$output .= $e_share_project->getFormHeader();
$output .= $e_share_project->getFormEvent();
$output .= $_SESSION["do_project"]->addProjectCoWorkerForm();
$output .= $e_share_project->getFormFooter();
$co_workers = $_SESSION["do_project"]->getProjectCoWorkersAsOwner();
if (!$co_workers) {
//echo '<br />';
//echo _('No Co-Workers added for this project');
} else {
if (is_array($co_workers)) {
$output .= '<br /><br /><b>';
$output .= _('Participating Co-Workers:');
$output .= '</b><br/>';
foreach ($co_workers as $co_workers) {
$e_del_coworker = new Event("do_project->eventDelProjectCoWorker");
$e_del_coworker->addParam("goto", "Project/" . $_SESSION["do_project"]->idproject);
$e_del_coworker->addParam("idproject", $_SESSION["do_project"]->idproject);
$e_del_coworker->addParam("idcoworker", $co_workers["idcoworker"]);
$output .= '<div id="templt' . $count . '" class="co_worker_item co_worker_desc">';
$output .= '<div style="position: relative;">';
$output .= $co_workers["firstname"] . ' ' . $co_workers["lastname"];
$img_del = '<img class="delete_icon_tag" border="0" width="14px" height="14px" src="/images/delete.gif">';
$output .= '<div width="15px" id="trashcan' . $count . '" class="deletenote" style="right:0;">' . $e_del_coworker->getLink($img_del, ' title="' . _('Remove') . '"') . '</div>';
$output .= '</div></div>';
}
}
}
} else {
$output .= _('If you want to share this project with others, add Co-Workers to your Ofuz account');
$output .= '<br />';
$output .= '<a href="/co_workers.php">';
$output .= _('add Co-Workers');
$output .= '</a>';
}
} else {
$co_workers = $_SESSION["do_project"]->getProjectCoWorkers($_SESSION["do_project"]->idproject);
if (is_array($co_workers)) {
foreach ($co_workers as $co_workers) {
if ($co_workers["idcoworker"] == $_SESSION["do_User"]->iduser) {
$e_del_coworker = new Event("do_project->eventSelfDelProjectCoWorker");
$e_del_coworker->addParam("goto", "Project/" . $_SESSION["do_project"]->idproject);
$e_del_coworker->addParam("idcoworker", $co_workers["idcoworker"]);
$e_del_coworker->addParam("idproject", $_SESSION["do_project"]->idproject);
$output .= '<div id="templt' . $count . '" class="co_worker_item co_worker_desc">';
$output .= '<div style="position: relative;">';
$output .= $co_workers["firstname"] . ' ' . $co_workers["lastname"];
$img_del = '<img class="delete_icon_tag" border="0" width="14px" height="14px" src="/images/delete.gif">';
$output .= '<div width="15px" id="trashcan' . $count . '" class="deletenote" style="right:0;">' . $e_del_coworker->getLink($img_del, ' title="' . _('Remove') . '"') . '</div>';
$output .= '</div></div>';
} else {
$output .= $co_workers["firstname"] . ' ' . $co_workers["lastname"] . '<br />';
}
}
}
}
$output .= '</div>';
return $output;
}
示例9: fopen
echo $upload_csv->getFormHeader();
echo $upload_csv->getFormEvent();
?>
<table class="import_table">
<?php
$handle = fopen($target_path, "r");
$data = fgetcsv($handle);
$num = count($data);
for ($c = 0; $c < $num; $c++) {
echo '<tr><td>', $data[$c], '</td><td><select name="fields[', $c, ']">', $combo_box, '</select></td></tr>', "\n";
}
fclose($handle);
?>
</table>
<?php
echo $upload_csv->getFormFooter(_('Import'));
?>
<!--
<input type="submit" name="submitaction" value="Import" />
</form>
-->
</div>
<div class="spacerblock_80"></div>
<div class="layout_footer"></div>
</div>
</td><td class="layout_rmargin"></td></tr></table>
<?php
include_once 'includes/ofuz_facebook.php';
?>
</body>
</html>
示例10:
<textarea name="et_body_text_dst" id="et_body_text_dst" cols="50" rows="5" wrap=hard><?php
if (isset($_SESSION["et_body_text_src"])) {
echo $_SESSION["et_body_text_src"];
}
?>
</textarea> <br />
<div class="spacerblock_20"></div>
<b>bodyhtml</b><br />
<textarea name="et_body_html_dst" id="et_body_html_dst" cols="50" rows="5" wrap=hard><?php
if (isset($_SESSION["et_body_html_src"])) {
echo $_SESSION["et_body_html_src"];
}
?>
</textarea> <br />
<?php
echo $e_gt_translated->getFormFooter("Save");
?>
<?php
}
?>
</td>
</tr>
</table>
<?php
} else {
?>
<div class="spacerblock_20"></div>
<div>Please select the destination language to see the Email templates.</div>
<?php
}
?>
示例11: Event
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 />
<a href="index.php" title="">Skip >></a>
</div>
</form>
<div class="spacerblock_80"></div>
<div class="layout_footer"></div>
示例12: Event
}
?>
</table>
<?php
}
?>
<br /><br />
<b><u>Add New Git Repository</u></b><br /><br />
<?php
$path = '/Setting/Git/git_repo';
$do_repo = new Event("UserGitrepo->eventAddGitRepo");
$do_repo->addParam("goto", $path);
$do_repo->addParam("iduser", $iduser);
echo $do_repo->getFormHeader();
echo $do_repo->getFormEvent();
?>
<table>
<!--<tr><td>Repository Name:</td><td> <input type="text" name="repo_name" id="repo_name" value="<?php
echo $repo_name;
?>
" /></td></tr>-->
<tr><td>Repository URL:</td><td> <input type="text" name="repo_url" id="repo_url" value="<?php
echo $repo_url;
?>
" /></td></tr>
<tr><td colspan="2"><?php
echo $do_repo->getFormFooter('Submit');
?>
</td></tr></table>
示例13: Task
$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");
?>
</DIV>
</body>
</html>
示例14: 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'] = '';
}
?>
<div id="show_past_due">
<?php
if ($_SESSION['show_past_due'] == 'Yes') {
// echo $_SESSION['do_invoice']->getInvoicesPastDue($_SESSION['do_invoice']->idcontact,$_SESSION['do_invoice']->idcompany);
$_SESSION['show_past_due'] = '';
示例15: Event
</a>
<div id="portal_msg" style="display:none;">
<?php
$e_portal_msg = new Event("ContactMessage->eventSetPersonalizedMessage");
$e_portal_msg->addParam("idcontact", $_SESSION['do_contact_portal']->idcontact);
echo $e_portal_msg->getFormHeader();
echo $e_portal_msg->getFormEvent();
?>
<textarea name="per_msg" rows="3" cols="50"><?php
if ($pers_msg) {
echo $pers_msg;
}
?>
</textarea>
<?php
echo $e_portal_msg->getFormFooter("Submit");
?>
</div>
</li>
</ul>
</div>
</div>
<?php
} else {
?>
<div class="section20">
<?php
$msg->getMessage("share file and notes initialisation");
echo $msg->displayMessage();
?>
<br/>