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;
 }
 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;
 }
示例#3
0
 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);
 }
 /**
  * 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;
 }
 /**
  * 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;
 }
 /**
  * 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;
 }
示例#7
0
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'] = "";
?>

示例#8
0
    ?>
 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>
示例#9
0
               // 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);
示例#10
0
" />
            <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");
示例#11
0
    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?');
示例#12
0
</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");
示例#13
0
    $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 />
示例#14
0
 /**
  * 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);
         }
     }
 }
示例#15
0
    $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>
 /**
  * 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;
 }
示例#17
0
        echo '<tr><td>' . $d_email . '</td><td>' . $d_zend_api . '</td><td>' . $d_zend_url . '</td><td>' . $project_name . '</td><td><a href="' . $un_link . '" onclick="return confirm(\'Do you really want to unlink from Zendesk?\')">Unlink</a></td></tr>';
        //echo'<tr><td>'.$d_email.'</td><td>'.$d_zend_api.'</td><td>'.$d_zend_url.'</td><td>'.$project_name.'</td><td><a href="'.$un_link.'" class="confirmation">Unlink</a></td></tr>';
    }
    ?>
	</table>
	<?php 
}
?>
	<br /><br />
	<b><u>Connect with Zendesk</u></b><br /><br />
	<?php 
$path = '/Setting/Zendesk/zend_api';
$do_repo = new Event("Zendesk->eventAddZend");
$do_repo->addParam("goto", $path);
$do_repo->addParam("iduser", $iduser);
echo $do_repo->getFormHeader();
echo $do_repo->getFormEvent();
?>
	<table>
	<tr><td>Zend URL:</td><td> <input type="text" name="zend_url" id="zend_url" value="<?php 
echo $zend_url;
?>
" />(https://your_project.zendesk.com/api/v2)</td></tr>	
	<tr><td>Zend Email:</td><td> <input type="text" name="zend_email" id="zend_email" value="<?php 
echo $zend_email;
?>
" />(Zendesk login Email)</td></tr>
	<tr><td>Zend API Key:</td><td><input type="text" name="zend_api" id="zend_api" value="<?php 
echo $zend_api;
?>
" />(Zendesk API Key)</td></tr>
示例#18
0
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()) {
                echo '<span class="co_worker_pending">Keep&nbsp;&nbsp;<input type="checkbox" name="cont_phone[]" value = "' . $ContactPhone->idcontact_phone . '">&nbsp;</span>';
                echo '<div class="merge_content">';
                echo $ContactPhone->phone_type;
示例#19
0
    $_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 
include_once 'includes/ofuz_facebook.php';
示例#20
0
<?php

$required_email_provider = array("yahoo", "hotmail");
$inviter = new OpenInviter();
$oi_services = $inviter->getPlugins();
$e_ooi = new Event("OfuzEmailImporter->eventGetContacts");
$e_ooi->addParam("goto", "Setting/EmailImporter/import_email_contacts");
echo $e_ooi->getFormHeader();
echo $e_ooi->getFormEvent();
?>
<table align='center' class='thTable' cellspacing='2' cellpadding='0' style='border:none;'>
		<tr><td colspan="2" align="center">
			<?php 
if ($_SESSION['in_page_message'] != "") {
    echo $_SESSION['in_page_message'];
}
?>
			</td>
		</tr>
		<tr><td align='right'><label for='email_box'>Email</label></td><td><input type='text' name='email_box' value=''></td></tr>
		<tr><td align='right'><label for='password_box'>Password</label></td><td><input type='password' name='password_box' value=''></td></tr>
		<tr><td align='right'><label for='provider_box'>Email provider</label></td><td><select name='provider_box'><option value=''></option>
<?php 
foreach ($oi_services as $type => $providers) {
    if ($type == 'email') {
        ?>
				<optgroup label='<?php 
        echo $inviter->pluginTypes[$type];
        ?>
'>
<?php 
示例#21
0
}
if (isset($_GET['id'])) {
    $_SESSION['ContactEditSave']->getId((int) $_GET['id']);
}
$e_fullContact = new Event("ContactEditSave->eventValuesFromForm");
$e_fullContact->setLevel(1999);
$e_fullContact->addEventAction("ContactEditSave->update", 2000);
$e_fullContact->addEventAction("ContactPhone->eventSavePhones", 2001);
$e_fullContact->addEventAction("ContactEmail->eventSaveEmails", 2002);
$e_fullContact->addEventAction("ContactInstantMessage->eventSaveIM", 2003);
$e_fullContact->addEventAction("ContactAddress->eventSaveContactAddress", 2004);
$e_fullContact->addEventAction("ContactWebsite->eventSaveWebsites", 2005);
$e_fullContact->addEventAction("ContactRssFeed->eventSaveRssFeed", 2006);
$e_fullContact->addEventAction("mydb.gotoPage", 2333);
$e_fullContact->addParam("goto", "i_contact.php");
echo $e_fullContact->getFormHeader();
echo $e_fullContact->getFormEvent();
$_SESSION['ContactEditSave']->setRegistry("i_ofuz_add_contact");
$_SESSION['ContactEditSave']->setApplyRegistry(true, "Form");
?>

            <div>
                First name<br />
                <?php 
echo $_SESSION['ContactEditSave']->firstname;
?>
            </div>

            <div>
                Last name<br />
            <?php 
示例#22
0
    <?php 
$loginForm_tw = new User();
$loginForm_tw->sessionPersistent('do_User_login', 'logout.php', 36000);
?>
        <div class="text">
      <div class="section20">
            <?php 
echo _('If you are a new Ofuz user, please continue with your Google account information to create a new account:');
?>
<br /><br />
        <?php 
$e_google_user_reg = new Event("User->eventRegGoogleUser");
$e_google_user_reg->setLevel(20);
$e_google_user_reg->addParam("google_openid_identity", $_SESSION["google"]["openid_identity"]);
$e_google_user_reg->addParam("err_page", $_SERVER["PHP_SELF"]);
echo $e_google_user_reg->getFormHeader();
echo $e_google_user_reg->getFormEvent();
?>
        <table>
        <tr>
            <td class="tdformlabel"><?php 
echo _('First Name: ');
?>
</td>
            <td class="tabletdformfield"><input type="Text" name="firstname" id="firstname" class="formfield" value="<?php 
echo $_SESSION["google"]["firstname"];
?>
" /></td>
        </tr>
        <tr>
            <td class="tdformlabel"><?php 
 function getBlockConent()
 {
     $content = "";
     $do_pt = new ProjectTask();
     $idtask = $do_pt->getTaskId($_GET['idprojecttask']);
     $do_olk = new OfuzLeanKitKanban();
     $do_olk->getUserLoginCredentials();
     if ($do_olk->getNumRows()) {
         $leankitkanban = new LeanKitKanban($do_olk->username, $do_olk->password);
         //Gets all the Boards from Kanban the API user has access to.
         $boards = $leankitkanban->getBoards('Boards');
         if (is_object($boards)) {
             // 200 => Board(s) successfully retrieved
             if ($boards->ReplyCode == '200') {
                 $count_boards = count($boards->ReplyData[0]);
                 if ($count_boards) {
                     $board_id = "";
                     $data = array();
                     $arr_boards = array();
                     $card_presents = false;
                     foreach ($boards->ReplyData[0] as $obj_board) {
                         $data["board_id"] = $obj_board->Id;
                         $data["board_title"] = $obj_board->Title;
                         $arr_boards[] = $data;
                         $card = $leankitkanban->getCardByExternalId($obj_board->Id, $_GET['idprojecttask']);
                         //Card found in the Board
                         if ($card->ReplyCode == '200') {
                             if ($card->ReplyData[0]) {
                                 $card_presents = true;
                                 $board_id = $obj_board->Id;
                                 $board_title = $obj_board->Title;
                                 foreach ($card->ReplyData[0] as $cd_ex) {
                                     $card_exists = $cd_ex;
                                 }
                             }
                         }
                     }
                     $content .= '<script type="text/javascript">';
                     $content .= '$(document).ready(function() {';
                     //"Save" button is clicked
                     $content .= '$("#btnBlockSave").click(function() {var form = $(this).parents("form:first"); if ($.trim($("#block_unblock_reason").val()) == "Why is the card blocked?" || $.trim($("#block_unblock_reason").val()) == "Why is the card unblocked?" || $.trim($("#block_unblock_reason").val()) == "") {$("#msg").html("Please enter the reason.");$("#msg").slideDown("slow");e.preventDefault();return false;} else { form.submit(); } });';
                     //"Block it" link is clicked
                     $content .= '$("#block_it").click(function() {$("#block_unblock_reason").text("Why is the card blocked?"); $("#block_reason").slideDown("slow");});';
                     //"Unblock it" link is clicked
                     $content .= '$("#unblock_it").click(function() {$("#block_unblock_reason").text("Why is the card unblocked?"); $("#block_reason").slideDown("slow");});';
                     //Block reason textarea is clicked.
                     $content .= '$("#block_unblock_reason").click(function() {if($.trim($(this).text()) == "Why is the card unblocked?" || $.trim($(this).text()) == "Why is the card blocked?") {$("#block_unblock_reason").text("");}});';
                     //"Add to Kanban" submit button is clicked (the form is submitted)
                     $content .= '$("#OfuzLeanKitKanban__eventAddTaskToBoard").submit(function(e){if ($("#board").val() == "") {$("#msg").html("Please select the Board.");$("#msg").slideDown("slow");e.preventDefault();return false;}});';
                     $content .= '});';
                     $content .= '</script>';
                     //Server-side message display block
                     if ($_SESSION["ofuz_kanban_message"] != "") {
                         $content .= "<div style='color:#E81313;'>" . $_SESSION["ofuz_kanban_message"] . "</div>";
                     }
                     //Client-side message display block
                     $content .= "<div id='msg' style='color:#E81313;display:none;'></div>";
                     //If card presents in a Board
                     if ($card_presents) {
                         $block_unblock_flag = "";
                         $do_olk = new OfuzLeanKitKanban();
                         $lane_name = $do_olk->getCardLaneName($board_id, $card_exists->LaneId);
                         //Card presents in a Board
                         $content .= "The Task presents in: <br /> <b>Board</b>: " . $board_title . "<br /><b>Lane</b>: " . $lane_name . "<br />";
                         if ($card_exists->IsBlocked) {
                             $e_block = new Event("OfuzLeanKitKanban->eventUnblockTheCard");
                             $content .= "<b>Blocked</b>: Yes <a id='unblock_it' href='javascript:void(0);'>Unblock it</a>";
                             $block_unblock_flag = "Unblock";
                             if ($card_exists->BlockReason) {
                                 $content .= " &nbsp;&nbsp;<img src='/images/blocked.jpeg' width='16' title='Reason: " . $card_exists->BlockReason . "' />";
                             }
                         } else {
                             $e_block = new Event("OfuzLeanKitKanban->eventBlockTheCard");
                             $content .= "<b>Blocked</b>: No <a id='block_it' href='javascript:void(0);'>Block it</a>";
                             $block_unblock_flag = "Block";
                         }
                         //$e_block->setLevel(120);
                         $e_block->addEventAction('OfuzLeanKitKanban->eventAddReasonAsTaskNote', 130);
                         $e_block->addEventAction('ProjectDiscuss->eventSendDiscussMessageByEmail', 140);
                         $e_block->addEventAction('WorkFeedKanbanBlockReasonProjectDiscuss->eventAddFeed', 150);
                         $e_block->addParam("block_unblock_flag", $block_unblock_flag);
                         $e_block->addParam("ofuz_task_id", $idtask);
                         $e_block->addParam("ofuz_idprojecttask", $_GET['idprojecttask']);
                         //$_SESSION['idproject_task'] = $_GET['idprojecttask'];//passing idproject_parameter
                         $e_block->addParam("card_id", $card_exists->Id);
                         $e_block->addParam("lane_id", $card_exists->LaneId);
                         $e_block->addParam("title", $card_exists->Title);
                         $e_block->addParam("description", $card_exists->Description);
                         $e_block->addParam("type_id", $card_exists->TypeId);
                         $e_block->addParam("priority", $card_exists->Priority);
                         $e_block->addParam("size", $card_exists->Size);
                         $e_block->addParam("assigned_user_id", $card_exists->AssignedUserId);
                         $e_block->addParam("index", $card_exists->Index);
                         $e_block->addParam("due_date", $card_exists->DueDate);
                         $e_block->addParam("user_wip_override_comment", $card_exists->UserWipOverrideComment);
                         $e_block->addParam("tags", $card_exists->Tags);
                         $e_block->addParam("class_of_service_id", $card_exists->ClassOfServiceId);
                         $e_block->addParam("assigned_user_ids", $card_exists->AssignedUserIds);
                         $e_block->addParam("board_id", $board_id);
                         $content .= $e_block->getFormHeader();
                         $content .= $e_block->getFormEvent();
                         $content .= "<div id='block_reason' style='display:none;'><textarea name='block_unblock_reason' id='block_unblock_reason' rows='2' cols='28'></textarea> <br />";
                         $content .= "<input type='button' name='btnBlockSave' id='btnBlockSave' value='Save' /> </form>";
                         //$e_block->getFormFooter("Save");
                         $content .= "</div>";
                     } else {
                         //Card does not present in a Board
                         if (count($arr_boards)) {
                             $e_board = new Event("OfuzLeanKitKanban->eventAddTaskToBoard");
                             $e_board->addParam("ofuz_task_id", $idtask);
                             $e_board->addParam("ofuz_idprojecttask", $_GET['idprojecttask']);
                             $content .= $e_board->getFormHeader();
                             $content .= $e_board->getFormEvent();
                             $content .= "<div>This Task is not added to Kanban Board.</div>";
                             $content .= "<div class='spacerblock_5'></div>";
                             $content .= "<div><select name='board' id='board'>";
                             $content .= "<option value=''>Select Board</option>";
                             foreach ($arr_boards as $brd) {
                                 $content .= "<option value='" . $brd["board_id"] . "'>" . $brd["board_title"] . "</option>";
                             }
                             $content .= "</select></div>";
                             $content .= "<div class='spacerblock_5'></div>";
                             $content .= $e_board->getFormFooter("Add to Kanban");
                         }
                     }
                 } else {
                     //There is no Board available in Kanban
                     $content .= "There is no Board available in Kanban.";
                 }
             } else {
                 // User does not have access to any Kanban Board.
                 $content .= $boards->ReplyText;
             }
         } else {
             // User does not have access to any Kanban Board.
             $content .= "You do not have access to LeanKit Kanban Board.";
         }
     } else {
         $content .= "You have not set up your LeanKit Kanban Login Credentials.<br />Please <a href='/Setting/LeanKitKanban/leankit_kanban_authentication'>click here</a> to set up your Kanban Credentials.";
     }
     unset($_SESSION["ofuz_kanban_message"]);
     return $content;
 }
示例#24
0
            
        </div>
<?php 
$import_vcard = new Event("VBook->eventVCardImport");
$import_vcard->setLevel(20);
$import_vcard->addParam("goto", "vcard_import.php");
if ($_SESSION["page_from"] == 'reg') {
    $import_vcard->addParam("fromReg", "Yes");
} else {
    $import_vcard->addParam("fromReg", "No");
}
$import_vcard->addParam("iduser", $_SESSION['do_User']->iduser);
////$import_vcard->addEventAction("ContactView->eventRebuildContactUserTable", 30);
$import_vcard->setGotFile(true);
$import_vcard->setSecure(true);
$htmlform = $import_vcard->getFormHeader();
$htmlform .= $import_vcard->getFormEvent();
$htmlform .= '<div class="import_cont3"><b>' . _('File Location: ') . '&nbsp; </b>';
$htmlform .= '<input type="file" name="fields[contact_vcard]"></div>';
$htmlform .= '<div class="import_cont3"><b>' . _('Set Tag ') . '<input type="text" name="fields[import_tag]" value="import_vCard_' . date("Y-m-d") . '">' . _(' on the imported contacts.') . '</b></div>';
$htmlform .= '<div class="import_cont3">' . $import_vcard->getFormFooter("Import") . '</div>';
$htmlform .= "\n";
echo $htmlform;
?>
    <?php 
if ($_GET['msg']) {
    echo '<div class="import_msg1">' . htmlentities($_GET['msg']) . '</div>';
}
?>
    </div>
示例#25
0
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");
?>
</DIV>
		<?php 
echo _('If you are a new Ofuz user, please enter your email address below:');
?>
<br />
            <?php 
$loginFormEmail_fb = new User();
$loginFormEmail_fb->sessionPersistent("do_User_login_email", "logout.php", 36000);
$e_new_fb_reg = new Event("do_User_login_email->eventRegNewFbUser");
$e_new_fb_reg->setLevel(20);
$e_new_fb_reg->addParam("fbuid", $_SESSION['do_ofuz_fb']->fb_uid);
$e_new_fb_reg->addParam("fname", $fname);
$e_new_fb_reg->addParam("lname", $lname);
$e_new_fb_reg->addParam("comp", $company);
$e_new_fb_reg->addParam("position", $position);
$e_new_fb_reg->addParam("errPage", "fb_ofuz_login_verification.php");
echo $e_new_fb_reg->getFormHeader();
echo $e_new_fb_reg->getFormEvent();
echo _('Your email address: ') . '<input type="Text" name = "emailid" id = "emailid" class="formfield" ><br />';
echo '<div align="right"><input type="submit" value="' . _('Continue') . '" /></div>';
//echo '<div class="section20">';
//echo '<div class="dottedline"></div>';
echo '</form>';
echo '</div>';
?>
          </div>
            <div class="dottedline"></div>
            <div class="section20">
            		
         <?php 
/*if(!$_SESSION['do_ofuz_fb']->getUserExtendedPermissions("email")){
    //echo '<fb:prompt-permission perms="email" next_fbjs="showDiv()"> Allow Sending Email Notification</fb:prompt-permission>';
示例#27
0
</textarea> <br /><br />

		<?php 
        echo $e_gt->getFormFooter("Translate");
        ?>
		<div class="spacerblock_20"></div>

		<div class="spacerblock_20"></div>
	      <?php 
        $e_gt_translated = new Event("GoogleTranslatorEmailtemplate->eventAddTranslateLanguage");
        $e_gt_translated->addParam("goto", $_SERVER['PHP_SELF']);
        //$e_gt_translated->addParam("dest_lng",$dest_lng);
        $e_gt_translated->addParam("name", $do_gt->name);
        $e_gt_translated->addParam("sendername", $do_gt->sendername);
        $e_gt_translated->addParam("senderemail", $do_gt->senderemail);
        echo $e_gt_translated->getFormHeader();
        echo $e_gt_translated->getFormEvent();
        ?>
		<b>Subject</b><br />
		<input type="text" name="et_sub_dst" id="et_sub_dst" value="<?php 
        if (isset($_SESSION["et_sub_src"])) {
            echo $_SESSION["et_sub_src"];
        }
        ?>
" />
		<div class="spacerblock_20"></div>
		<b>bodytext</b><br />
		<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"];
        }
示例#28
0
            <?php 
echo _('If you are a new Ofuz user, please enter your email address below:');
?>
<br /><br />
            <?php 
$loginFormEmail_tw = new User();
$loginFormEmail_tw->sessionPersistent('do_User_login_email', 'logout.php', 36000);
$e_new_tw_reg = new Event('do_User_login_email->eventRegNewTwUser');
$e_new_tw_reg->setLevel(20);
$e_new_tw_reg->addParam('tw_user_id', $_SESSION['TWITTER_REGISTER']['tw_user_id']);
$e_new_tw_reg->addParam('tw_screen_name', $_SESSION['TWITTER_REGISTER']['tw_screen_name']);
$e_new_tw_reg->addParam('tw_token', $_SESSION['TWITTER_REGISTER']['tw_token']);
$e_new_tw_reg->addParam('firstname', $_SESSION['TWITTER_REGISTER']['firstname']);
$e_new_tw_reg->addParam('lastname', $_SESSION['TWITTER_REGISTER']['lastname']);
$e_new_tw_reg->addParam('errPage', 'tw_user_register.php');
echo $e_new_tw_reg->getFormHeader();
echo $e_new_tw_reg->getFormEvent();
echo _('Your email address: ') . '<input type="Text" name="emailid" id="emailid" class="formfield" /><br />';
echo '<div align="right"><input type="submit" value="' . _('Continue') . '" /></div>';
echo '</form>';
echo '</div>';
?>
            </div>
            <div class="dottedline"></div>
            <div class="section20">	
            <?php 
echo _('Otherwise, sign in here to link your Twitter and Ofuz accounts:'), '<br /><br />';
$_SESSION['do_User_login']->formTwLoginVerification('index.php', $_SERVER['PHP_SELF'], $_SESSION['TWITTER_REGISTER']['tw_user_id'], $_SESSION['TWITTER_REGISTER']['tw_screen_name'], $_SESSION['TWITTER_REGISTER']['tw_token']);
?>
           </div>
        </div>
示例#29
0
    echo '</div></div><br /><br />';
}
echo nl2br($_SESSION['do_invoice']->invoice_address);
//echo '<br />'. _('Total due :').'<b>$'. number_format($invoice_cal_data["total_due_amt"],2, '.', ',' ).'</b>';
echo '<br />' . _('Total due :') . '<b>' . $_SESSION['do_invoice']->viewAmount($_SESSION['do_invoice']->amt_due) . '</b>';
echo '<br /><br />';
$do_user_rel = new UserRelations();
$invoice_url = $GLOBALS['cfg_ofuz_site_http_base'] . 'inv/' . $do_user_rel->encrypt($_SESSION['do_invoice']->idinvoice) . '/' . $do_user_rel->encrypt($_SESSION['do_invoice']->idcontact);
$do_payment = new Event("do_invoice->eventProcessAuthNetPayment");
$do_payment->addParam("is_rec", $is_recurrent);
$do_payment->addParam("is_cc", $id_rec_cc);
// send 0 if not in recurrent else send 1
$do_payment->addParam("goto", $invoice_url);
// send 0 if no CC else send 1
$do_payment->addParam("error_page", "invoice_pay_auth.php");
echo $do_payment->getFormHeader();
echo $do_payment->getFormEvent();
echo $_SESSION['do_invoice']->prepareAuthnetForm("Authnet", $_SESSION['do_invoice']->amt_due);
//sending the amout
?>
        </div>
    </td></tr></table>
    <div class="spacerblock_40"></div>
    <div class="layout_footer"></div>
</div>
</td><td class="layout_rmargin"></td></tr></table>
<?php 
?>
<?php// include_once('includes/ofuz_facebook.php'); ?>
<?php 
//include_once('includes/ofuz_analytics.inc.php');
示例#30
0
 /**
  * A custom method within the Plugin to generate the content
  * @return string : html
  */
 function generateBlockContent()
 {
     $output = '';
     $e_translate = new Event("Translation->eventSetDestinationLanguage");
     $e_translate->addParam("goto", $_SERVER["REDIRECT_URL"]);
     $output .= $e_translate->getFormHeader();
     $output .= $e_translate->getFormEvent();
     $source_lang = '<select name="src_lang">';
     $source_lang .= '<option value="en_US">English</option>';
     $source_lang .= '</select>';
     $destination_lang = '
 <select name="dest_lang">
   <option value="">Select</option>
   <option value="sq_AL" ' . ($selected = $_SESSION["dest_lang"] == "sq_AL" ? "selected" : "") . '>Albanian (Albania)</option>
   <option value="ar_DZ" ' . ($selected = $_SESSION["dest_lang"] == "ar_DZ" ? "selected" : "") . '>Arabic (Algeria)</option>
   <option value="ar_BH" ' . ($selected = $_SESSION["dest_lang"] == "ar_BH" ? "selected" : "") . '>Arabic (Bahrain)</option>
   <option value="ar_EG" ' . ($selected = $_SESSION["dest_lang"] == "ar_EG" ? "selected" : "") . '>Arabic (Egypt)</option>
   <option value="ar_IQ" ' . ($selected = $_SESSION["dest_lang"] == "ar_IQ" ? "selected" : "") . '>Arabic (Iraq)</option>
   <option value="ar_JO" ' . ($selected = $_SESSION["dest_lang"] == "ar_JO" ? "selected" : "") . '>Arabic (Jordan)</option>
   <option value="ar_KW" ' . ($selected = $_SESSION["dest_lang"] == "ar_KW" ? "selected" : "") . '>Arabic (Kuwait)</option>
   <option value="ar_LB" ' . ($selected = $_SESSION["dest_lang"] == "ar_LB" ? "selected" : "") . '>Arabic (Lebanon)</option>
   <option value="ar_LY" ' . ($selected = $_SESSION["dest_lang"] == "ar_LY" ? "selected" : "") . '>Arabic (Libya)</option>
   <option value="ar_MA" ' . ($selected = $_SESSION["dest_lang"] == "ar_MA" ? "selected" : "") . '>Arabic (Morocco)</option>
   <option value="ar_OM" ' . ($selected = $_SESSION["dest_lang"] == "ar_OM" ? "selected" : "") . '>Arabic (Oman)</option>
   <option value="ar_QA" ' . ($selected = $_SESSION["dest_lang"] == "ar_QA" ? "selected" : "") . '>Arabic (Qatar)</option>
   <option value="ar_SA" ' . ($selected = $_SESSION["dest_lang"] == "ar_SA" ? "selected" : "") . '>Arabic (Saudi Arabia)</option>
   <option value="ar_SD" ' . ($selected = $_SESSION["dest_lang"] == "ar_SD" ? "selected" : "") . '>Arabic (Sudan)</option>
   <option value="ar_SY" ' . ($selected = $_SESSION["dest_lang"] == "ar_SY" ? "selected" : "") . '>Arabic (Syria)</option>
   <option value="ar_TN" ' . ($selected = $_SESSION["dest_lang"] == "ar_TN" ? "selected" : "") . '>Arabic (Tunisia)</option>
   <option value="ar_AE" ' . ($selected = $_SESSION["dest_lang"] == "ar_AE" ? "selected" : "") . '>Arabic (United Arab Emirates)</option>
   <option value="ar_YE" ' . ($selected = $_SESSION["dest_lang"] == "ar_YE" ? "selected" : "") . '>Arabic (Yemen)</option>
   <option value="be_BY" ' . ($selected = $_SESSION["dest_lang"] == "be_BY" ? "selected" : "") . '>Belarusian (Belarus)</option>
   <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;
 }