コード例 #1
0
 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;
 }
コード例 #2
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);
 }
コード例 #3
0
 /**
  * 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;
 }
コード例 #4
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);
         }
     }
 }
コード例 #5
0
ファイル: settings_myinfo.php プロジェクト: jacquesbagui/ofuz
    $do_contact->add();
    $idcontact_inserted = $do_contact->getPrimaryKeyValue();
    $do_contact_view = new ContactView();
    $_SESSION['do_User']->idcontact = $idcontact_inserted;
    $do_contact->getId($idcontact_inserted);
}
$_SESSION['edit_from_page'] = 'settings_myinfo.php';
$do_contact->sessionPersistent("ContactEditSave", "contact.php", OFUZ_TTL);
//$do_contact->sessionPersistent("ContactEditSave", "index.php", 120);
//$do_np_contact->sessionPersistent("ContactPictureSave", "index.php", 120);
$do_np_contact->sessionPersistent("ContactPictureSave", "index.php", OFUZ_TTL);
$_SESSION['ContactPictureSave']->getId($idcontact);
$e_fullContact = new Event("ContactPictureSave->eventValuesFromForm");
$e_fullContact->setLevel(1999);
$e_fullContact->setGotFile(true);
$e_fullContact->addEventAction("ContactPictureSave->update", 2000);
echo $e_fullContact->getFormHeader();
echo $e_fullContact->getFormEvent();
$_SESSION['ContactPictureSave']->setFields("contact_my_info");
$_SESSION['ContactPictureSave']->setApplyRegistry(true, "Form");
?>
                    

        <div class="profile_subject_line">
        <div class="my_profile">My Profile&nbsp;
        <span class="edit_profile">
          <a href="/contact_edit.php?r=bio">Edit Profile</a>
          </b> 
          </span> 
        </div>
        </div>
コード例 #6
0
ファイル: cancel_account.php プロジェクト: jacquesbagui/ofuz
    echo htmlentities($_SESSION['in_page_message']);
    $_SESSION['in_page_message'] = '';
    echo '</div></div><br /><br />';
} else {
    $msg = new Message();
    $msg->getMessage("Account Cacel");
    echo '<div class="percent95">', $msg->displayMessage(), '</div>';
}
//$f_user = new User();
//$f_user->getId($_SESSION['do_User']->iduser);
//$f_user->form();
$CancelAccount = new OfuzCancelAccount();
//$CancelAccount->setRegistry('ofuz_cancel_account')
$e_cancel_account = new Event("OfuzCancelAccount->eventCancelAccount");
$e_cancel_account->setLevel(20);
$e_cancel_account->addEventAction("do_User->eventLogout", 50);
echo $e_cancel_account->getFormHeader();
echo $e_cancel_account->getFormEvent();
$CancelAccount->setFields("ofuz_cancel_account");
$CancelAccount->setApplyRegistry(true, "Form");
echo '<br />' . $CancelAccount->reason;
echo '<br /><input type="submit" value="' . _('Yes Cancel and delete all my information') . '" />';
?>
        </div>
        <div class="solidline"></div>
    </td></tr></table>
    <div class="spacerblock_40"></div>
    <div class="layout_footer"></div>
</div>
</td><td class="layout_rmargin"></td></tr></table>
<?php 
コード例 #7
0
ファイル: merge_contacts.php プロジェクト: jacquesbagui/ofuz
    </div>
    <div class="contentfull">
     <?php 
if (isset($_POST['ck'])) {
    $contact_ids = $_POST['ck'];
}
if (count($contact_ids) < 2) {
    echo _('You should have atleat 2 Contacts to be merged');
    echo '<br /><a href="contacts.php">' . _('Click To Back') . '</a>';
} else {
    if (!is_object($_SESSION['do_contact'])) {
        $do_contact = new Contact();
        $do_contact->sessionPersistent("do_contact", "index.php", 36000);
    }
    $e_marge = new Event("do_contact->eventMergeContacts");
    $e_marge->addEventAction("mydb.gotoPage", 304);
    $e_marge->addParam("goto", "contacts.php");
    $e_marge->addParam("contact_ids", $contact_ids);
    echo $e_marge->getFormHeader();
    echo $e_marge->getFormEvent();
    foreach ($contact_ids as $contact) {
        echo '<div class="contact">';
        $_SESSION['do_contact']->getContactDetails($contact);
        echo '<span style="color:orange;">Keep&nbsp;&nbsp;<input type="radio" name = "cont_id[]" value ="' . $contact . '"></span>';
        echo '<b>' . $_SESSION['do_contact']->firstname . ' ' . $_SESSION['do_contact']->lastname . '</b><br />';
        echo '<b>Contact Information:</b><br />';
        $ContactPhone = $_SESSION['do_contact']->getChildContactPhone();
        if ($ContactPhone->getNumRows()) {
            echo "<b>Phone</b><br />";
            echo '<div style="width:auto;margin-left:30px;">';
            while ($ContactPhone->next()) {
コード例 #8
0
ファイル: i_contacts.php プロジェクト: jacquesbagui/ofuz
                     <a id="show_tags_link" href="#" onclick="$('#tag_list').slideDown('slow');$('#show_tags_link').hide(); return false;">Show the Tags</a> <!--class="headline10"-->
                     <div id="tag_list" style="display:none">  <?php 
    $do_tag_list = new Tag();
    echo $do_tag_list->getUserTagList("contact");
    ?>
                     </div>
                    </div>
                <?php 
}
?>
                 
                </div>
                <?php 
$e_del_or_tag = new Event("do_Contacts->eventDeleteMultiple");
$e_del_or_tag->addEventAction("do_Contacts->eventAddTagMultiple", 202);
$e_del_or_tag->addEventAction("mydb.gotoPage", 304);
$e_del_or_tag->addParam("goto", "i_contacts.php");
echo $e_del_or_tag->getFormHeader();
echo $e_del_or_tag->getFormEvent();
?>
                <div id="contacts_ctlbar" style="display: none;">
                    <span class="redlink"><a href="#" onclick="setDel(); return false;">Delete</a></span> selected or add tags to selected <input type="text" name="tags" />
                    <span class="sasnlinks">( <span class="bluelink"><a href="#" onclick="fnSelAll(); return false;">select all</a></span> | <span class="bluelink"><a href="#" onclick="fnSelNone(); return false;">select none</a></span> )</span>
                </div>
                <div class="mobile_head_pad5">
<?php 
if ($show_companies) {
    $do_Companies->view_list_companies();
}
$_SESSION['do_Contacts']->view_i_list_contacts();
コード例 #9
0
ファイル: company_edit.php プロジェクト: jacquesbagui/ofuz
                <h1><?php 
echo _('Edit Company');
?>
</h1>
            </div>
        </div>
        <div class="contentfull">
<?php 
if (!is_object($_SESSION['CompanyEditSave'])) {
    $CompanyEdit = new Company($GLOBALS['conx']);
    $CompanyEdit->sessionPersistent("CompanyEditSave", "index.php", 120);
}
$_SESSION['CompanyEditSave']->getId((int) $_GET['id']);
$e_fullContact = new Event("CompanyEditSave->eventValuesFromForm");
$e_fullContact->setLevel(1999);
$e_fullContact->addEventAction("CompanyEditSave->eventCheckDuplicateCompanyInUpdate", 1000);
$e_fullContact->addEventAction("CompanyEditSave->eventUpdate", 2000);
$e_fullContact->addEventAction("CompanyPhone->eventSavePhones", 2001);
$e_fullContact->addEventAction("CompanyEmail->eventSaveEmails", 2002);
//$e_fullContact->addEventAction("ContactInstantMessage->eventSaveIM", 2003);
$e_fullContact->addEventAction("CompanyAddress->eventSaveContactAddress", 2003);
$e_fullContact->addEventAction("CompanyWebsite->eventSaveWebsites", 2004);
$e_fullContact->addEventAction("mydb.gotoPage", 900);
$e_fullContact->addParam("goto", "company.php");
echo $e_fullContact->getFormHeader();
echo $e_fullContact->getFormEvent();
$_SESSION['CompanyEditSave']->setRegistry("company");
$_SESSION['CompanyEditSave']->setApplyRegistry(true, "Form");
?>
                <table class="tplain">
                    <tr>
コード例 #10
0
ファイル: ww_s4.php プロジェクト: jacquesbagui/ofuz
    $e_inv_logo->addEventAction("mydb.gotoPage", 2333);
    $e_inv_logo->addParam("goto", $_SERVER['PHP_SELF']);
    echo $e_inv_logo->getFormHeader();
    echo $e_inv_logo->getFormEvent();
    $_SESSION['InvLogo']->setFields("invoice_logo");
    $_SESSION['InvLogo']->setApplyRegistry(true, "Form");
    echo _('Logo (GIF files are not supported)') . '<br />';
    echo $_SESSION['InvLogo']->setting_value;
    echo '<img src="files/' . $img . '">';
    echo '</td>';
    echo '<td width="10%" style="text-align:left;">';
    echo $e_inv_logo->getFormFooter(_('Save'));
    echo '</td></tr></table>';
} else {
    $e_inv_logo = new Event("InvLogo->eventValuesFromForm");
    $e_inv_logo->addEventAction("InvLogo->add", 2000);
    $e_inv_logo->addEventAction("InvLogo->eventCheckInvLogoExtension", 2);
    echo '<table width="50%" height="100px"><tr><td width="40%">';
    $e_inv_logo->setGotFile(true);
    $e_inv_logo->addEventAction("mydb.gotoPage", 2333);
    $e_inv_logo->addParam("goto", $_SERVER['PHP_SELF']);
    echo $e_inv_logo->getFormHeader();
    echo $e_inv_logo->getFormEvent();
    $_SESSION['InvLogo']->setFields("invoice_logo");
    $_SESSION['InvLogo']->setApplyRegistry(true, "Form");
    echo _('Logo (GIF files are not supported)') . '<br />';
    echo $_SESSION['InvLogo']->setting_value;
    echo $_SESSION['InvLogo']->setting_name;
    echo $_SESSION['InvLogo']->iduser;
    echo '</td>';
    echo '<td width="10%" style="text-align:left;">';
コード例 #11
0
ファイル: contacts.php プロジェクト: jacquesbagui/ofuz
    echo _('Alphabetically');
    ?>
</option>
                            </select>
                          </h3>
                        </form>
                     </div>
                     </div>
                <?php 
}
?>
                 
                </div>
                <?php 
$e_del_or_tag = new Event("do_Contacts->eventAddTagMultiple");
$e_del_or_tag->addEventAction("mydb.gotoPage", 304);
$e_del_or_tag->addParam("goto", "contacts.php");
echo $e_del_or_tag->getFormHeader();
echo $e_del_or_tag->getFormEvent();
?>
		<div id="sticky-anchor"></div>
                <div id="contacts_ctlbar" style="display: none;">
                    <b><?php 
echo _('With the selected contacts you can:');
?>
</b><br />
                    <?php 
echo _('Add tags') . _(':');
?>
					<?php 
$do_suggest_tag = new Tag();
コード例 #12
0
ファイル: os_co_worker.php プロジェクト: jacquesbagui/ofuz
            } else {
                echo '<span>' . sprintf(_("%s shared %d contacts"), $_SESSION['do_coworker']->firstname, $no_cont_shared_by_co_worker) . '</span>&nbsp;' . sprintf(_('and %d projects'), $no_proj_shared_by_co_worker);
            }
            //if ($no_cont_shared > 0 || $no_cont_shared_by_co_worker > 0) {
            //echo '<br />';
            //}
            echo '</div>';
            echo '</div>';
            echo '<div style="clear:both;padding:10px;"></div>';
            echo '<br />';
        }
        // class="co_worker_pending"
    } else {
        // Having some POST data from contacts.php
        $e_share_cont = new Event("do_contact_sharing->eventShareContactsMultiple");
        $e_share_cont->addEventAction("mydb.gotoPage", 304);
        $e_share_cont->addEventAction("ContactTeam->eventShareExistingContactWithTeamCw", 200);
        $e_share_cont->addEventAction("Teams->eventShareCWsWithTeam", 210);
        $e_share_cont->addParam("goto", "co_workers.php");
        $e_share_cont->addParam("idcontacts", $contact_ids);
        echo $e_share_cont->getFormHeader();
        echo $e_share_cont->getFormEvent();
        echo '<a href="teams.php">Teams</a>' . ' - ' . '<a href="co_workers.php">All Co-Workers</a>' . '<br /><br />';
        if ($teams_count) {
            echo '<b>' . _('Your Teams') . '</b><br /><br />';
            while ($do_teams->next()) {
                ?>
				      <input type="checkbox" name="team[]" value="<?php 
                echo $do_teams->idteam;
                ?>
" /> <?php 
コード例 #13
0
ファイル: co_workers.php プロジェクト: jacquesbagui/ofuz
                 echo '<span>' . sprintf(_("%s shared %d contacts") , $_SESSION['do_coworker']->firstname, $no_cont_shared_by_co_worker) . '</span>&nbsp;' . sprintf(_('and %d projects') , $no_proj_shared_by_co_worker);
                 }
         
               // if ($no_cont_shared > 0 || $no_cont_shared_by_co_worker > 0) {
               // echo '<br />';
               // }*/
         echo '</div>';
         echo '</div>';
         echo '<div style="clear:both;padding:10px;"></div>';
         echo '<br />';
     }
     // class="co_worker_pending"
 } else {
     // Having some POST data from contacts.php
     $e_share_cont = new Event("do_contact_sharing->eventShareContactsMultiple");
     $e_share_cont->addEventAction("mydb.gotoPage", 304);
     $e_share_cont->addParam("goto", "co_workers.php");
     $e_share_cont->addParam("idcontacts", $contact_ids);
     echo $e_share_cont->getFormHeader();
     echo $e_share_cont->getFormEvent();
     echo '<b>' . _('Select Co-Worker you want to give access to the contact(s) and click Share to save :') . '</b><br />';
     echo '<div id="coworker_ctlbar" style="display: none;">';
     echo '<span class="redlink"><a href="#" onclick="setContactForCoworker(); return false;" style="font-size:20px;">' . _('Share') . '</a></span>';
     echo '</div>';
     // $user_coworker = new User();
     while ($_SESSION['do_coworker']->next()) {
         // $user_coworker->getId($_SESSION['do_coworker']->idcoworker);
         echo '<div class="ofuz_list_contact" id="cw' . $_SESSION['do_coworker']->idcoworker . '" onclick="fnHighlightCoworkers(\'' . $_SESSION['do_coworker']->idcoworker . '\')">';
         echo '<input type="checkbox" class="ofuz_list_checkbox" name="cwid[]" id="cwid' . $_SESSION['do_coworker']->idcoworker . '" value="' . $_SESSION['do_coworker']->idcoworker . '" onclick="fnHighlightCoworkers(\'' . $_SESSION['do_coworker']->idcoworker . '\')" />&nbsp;&nbsp;';
         $no_cont_shared = $_SESSION['do_contact_sharing']->countSharedContacts($_SESSION['do_coworker']->idcoworker);
         $no_cont_shared_by_co_worker = $_SESSION['do_contact_sharing']->countSharedContactsByCoWorker($_SESSION['do_coworker']->idcoworker);
コード例 #14
0
ファイル: task_edit.php プロジェクト: jacquesbagui/ofuz
include_once "config.php";
include_once "includes/header.inc.php";
include_once "pb_globaldivs.sys.php";
?>
<DIV id="DRAG_script_Script" style="top:46px;left:237px;height:267px;width:451px;position:absolute;visibility:visible;z-index:5;">
<!--META  metainfo="execorder:30;filename:includes/blank_script.script.inc.php;" --><?php 
$do_task = new Task($GLOBALS['conx']);
$do_task->getTaskAddForm();
echo '<br><br><br> Following is just the edit example for the task id 1 <br><br>';
$TaskEdit = new Task($GLOBALS['conx']);
$TaskEdit->getId(1);
$TaskEdit->sessionPersistent("TaskEdit", "index.php", 120);
// $TaskEdit->newUpdateForm("TaskEdit");
$e_task = new Event("TaskEdit->eventValuesFromForm");
$e_task->setLevel(1999);
$e_task->addEventAction("TaskEdit->eventSetDateInFormat", 20);
$e_task->addEventAction("TaskEdit->update", 2000);
echo $e_task->getFormHeader();
echo $e_task->getFormEvent();
$_SESSION['TaskEdit']->setRegistry("task");
$_SESSION['TaskEdit']->setApplyRegistry(true, "Form");
echo $_SESSION['TaskEdit']->task_description;
echo '<br><br>';
$_SESSION['TaskEdit']->due_date = $TaskEdit->convertDateToString($TaskEdit->getDateFormatForTask(1));
echo $_SESSION['TaskEdit']->due_date;
echo '<br><br>';
echo $_SESSION['TaskEdit']->category;
echo '<br><br>';
echo $_SESSION['TaskEdit']->iduser;
echo $e_task->getFormFooter("Update");
?>
コード例 #15
0
ファイル: invoice.php プロジェクト: jacquesbagui/ofuz
    </td><td class="layout_rcolumn">
        <div class="contentfull">
            <?php 
if ($_SESSION['in_page_message'] != '') {
    $msg = new Message();
    if ($_SESSION['in_page_message'] == 'invoice_client_email_not_found') {
        $msg->getMessage($_SESSION['in_page_message']);
        $msg->displayMessage();
        echo '<div style="margin-left:0px;">';
        echo '<div class="messages_unauthorized">';
        $e_set_email = new Event("Contact->eventSetEmailId");
        $e_set_email->addParam('id', $_SESSION['do_invoice']->idinvoice);
        $e_set_email->addParam('contact', $_SESSION['do_invoice']->idcontact);
        $e_set_email->addParam("goto", $_SERVER['PHP_SELF']);
        $e_set_email->addEventAction("do_invoice->eventSendInvoiceByEmail", 105);
        echo $e_set_email->getFormHeader();
        echo $e_set_email->getFormEvent();
        echo '<br />' . _("Please enter the Email address : ");
        echo '<input type="text" name="emailid" value="" >';
        echo $e_set_email->getFormFooter("Submit");
        echo '</div></div><br /><br />';
    } else {
        $msg->setData(array("contact_email" => $_SESSION['in_page_message_data']['contact_email']));
        $msg->getMessage($_SESSION['in_page_message']);
        $msg->displayMessage();
    }
    $_SESSION['in_page_message'] = '';
    $_SESSION['in_page_message_data']['contact_email'] = '';
}
?>
コード例 #16
0
 function eventAjaxGetEditForm(EventControler $evtcl)
 {
     $Parsedown = new Parsedown();
     $_SESSION['ContactNoteEditSave']->setApplyRegistry(false, "Form");
     $html = '';
     $curdiv = $evtcl->curdiv;
     $this->getId($evtcl->idnote);
     $vis_user = $this->note_visibility == 'user' ? 'checked' : '';
     $vis_user_cw = $this->note_visibility == 'user coworker' ? 'checked' : '';
     $vis_user_cont = $this->note_visibility == 'user contact' ? 'checked' : '';
     $vis_user_cw_cont = $this->note_visibility == 'user coworker contact' ? 'checked' : '';
     $do_cont = new Contact();
     $contact_fullname = $do_cont->getContactName($evtcl->idcontact);
     if ($this->iduser == $_SESSION['do_User']->iduser) {
         $note_val = $this->note;
         $e_edit = new Event("ContactNoteEditSave->eventUpdate");
         $e_edit->setLevel(110);
         $e_edit->addEventAction("mydb.gotoPage", 111);
         $e_edit->addEventAction("ContactNoteEditSave->eventHTMLCleanUp", 109);
         $e_edit->setGotFile(true);
         $html .= $e_edit->getFormHeader();
         $html .= $e_edit->getFormEvent();
         $_SESSION['ContactNoteEditSave']->setRegistry("ofuz_add_contact_note");
         $_SESSION['ContactNoteEditSave']->setApplyRegistry(true, "Form");
         $html .= '<br />' . _('Note :') . '<br /><textarea id="note_edit" name = "fields[note]" rows="3" cols="110">' . $Parsedown->text($note_val) . '</textarea><br />';
         $html .= '<div width="100%">';
         $html .= '<div id="edit_note_more" style="position:relative;float:left;text-align:left;width:50%"><a href="#" onclick ="fnEditNoteMoreOpts();return false;">' . _('More Options') . '</a></div>';
         $html .= '<div style="position:relative;float:left;text-align:left;width:50%"><a href="javascript:;" onclick="showProjectList();">' . _('Attached to a project') . '</a>';
         $html .= '<div id="cp_prj_list" style="position:relative;display:none;">';
         $do_prjs = new Project();
         $do_prjs->getAllProjects("open");
         $num_prjs = $do_prjs->getNumRows();
         $html .= '<select name="cpy_prjs" id="cpy_prjs" onchange="populateTasks();">';
         if ($num_prjs > 0) {
             $html .= '<option value="">' . _('Select Project') . '</option>';
         } else {
             $html .= '<option value="">' . _('You do not have Project.') . '</option>';
         }
         while ($do_prjs->next()) {
             $html .= '<option value="' . $do_prjs->getData("idproject") . '">' . $do_prjs->getData("name") . '</option>';
         }
         $html .= '</select>';
         $html .= '</div>';
         $html .= '<div id="cp_prj_tasks"></div>';
         $html .= '</div></div>';
         $html .= '<div class="div_right" id="edit_note_more_opts" style="display: none;"> ';
         $html .= 'File : ' . $_SESSION['ContactNoteEditSave']->document . '<br /><br />';
         $html .= '</div>';
         $html .= '<div id="edit_note_more_opts_vis" style="text-align: left; width: 50%;display: none;"> ';
         $html .= _('Who can view this note:') . '<br />';
         $html .= '<input type="radio" name="fields[note_visibility]" value="user" ' . $vis_user . '> ' . _('Just me') . ' <br />';
         $html .= '<input type="radio" name="fields[note_visibility]" value="user coworker" ' . $vis_user_cw . '> ' . _('My Co-Workers and I') . '<br />';
         $html .= '<input type="radio" name="fields[note_visibility]" value="user contact" ' . $vis_user_cont . '> ' . $contact_fullname . _(' and I') . '<br />';
         $html .= '<input type="radio" name="fields[note_visibility]" value="user coworker contact" ' . $vis_user_cw_cont . '> ' . _('Me, Co-Workers and ') . $contact_fullname;
         $html .= '</div>';
         $html .= '<div style="text-align:right">';
         $html .= '<input type="submit" name="Save" value = "' . _('Save') . '">&nbsp;&nbsp;<a href="#" onclick = "fnCancelEdit(\'' . $curdiv . '\',' . $evtcl->idnote . ');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->idnote . ');return false;">' . _('close') . '</a>';
         $evtcl->addOutputValue($html);
     }
 }
コード例 #17
0
ファイル: Task.class.php プロジェクト: jacquesbagui/ofuz
 function eventAjaxEditTaskFormRHS(EventControler $event_controler)
 {
     $form = '<div class="taskbox1a"><div class="taskbox1b"><div class="taskbox1c">';
     $this->getId($event_controler->id);
     $this->sessionPersistent("TaskEdit", "index.php", 120);
     $e_task = new Event("TaskEdit->eventUpdate");
     $e_task->setLevel(1999);
     $e_task->setDomId('form' . $event_controler->id);
     $e_task->setSecure(false);
     $e_task->addEventAction("TaskEdit->eventSetDateInFormat", 1487);
     $form .= $e_task->getFormHeader();
     $form .= $e_task->getFormEvent();
     $is_sp_date_set = $_SESSION['TaskEdit']->is_sp_date_set;
     $_SESSION['TaskEdit']->setRegistry("task");
     $_SESSION['TaskEdit']->setApplyRegistry(true, "Form");
     $_SESSION['TaskEdit']->fields->addField(new strFBFieldTypeText("task_description"));
     $_SESSION['TaskEdit']->fields->task_description->css_form_style = "width:100%;";
     $form .= $_SESSION['TaskEdit']->task_description . '<br /><br />';
     $_SESSION['TaskEdit']->due_date = $this->convertDateToString($this->getDateFormatForTask($event_controler->id));
     if ($is_sp_date_set == "Yes") {
         $form .= '<span class="text8">' . _('When\'s it due? (Specific Date) (YYYY/mm/dd)') . '<br />';
         $_SESSION['TaskEdit']->fields->addField(new strFBFieldTypeDateSQL("due_date_dateformat"));
         $_SESSION['TaskEdit']->fields->due_date_dateformat->datesql = "Y/m/d::";
         $form .= $_SESSION['TaskEdit']->due_date_dateformat . '</span><br /><br />';
         $form .= '<input type="hidden" name="sp_date_selected" id="sp_date_selected" value="Yes">';
     } else {
         $form .= '<span class="text8" id="when_pop_up">' . _('When\'s it due?') . '</span><br />';
         $form .= $_SESSION['TaskEdit']->due_date . '<br /><br />';
         $form .= '<input type="hidden" name="sp_date_selected" id="sp_date_selected" value="">';
     }
     $form .= '<span class="text8">' . _('Choose a category') . '</span><br />';
     //$form .= $_SESSION['TaskEdit']->category . '<br /><br />';
     $form .= $_SESSION['TaskEdit']->task_category . '<br /><br />';
     $form .= $e_task->getFormFooter(_("Save this task"));
     $form .= '<div class="cancellink">or <a href="#" onclick="fnCancelEdit(' . $event_controler->id . ');">' . _('cancel') . '</a></div>';
     $form .= '</div></div></div>';
     $event_controler->addOutputValue($form);
 }
コード例 #18
0
ファイル: contact.php プロジェクト: jacquesbagui/ofuz
            	    $("#TagList").append("Tags: ");
            	} else {
            	    $("#TagList").append(", ");
            	}
                $("#TagList").append('<span id="Tag'+NextTag+'"><a href="eventcontroler.php?mydb_events[100]=do_Contacts-%3EeventSearchByTag&goto=contacts.php&search_tag_name='+escape(tag_name)+'&mydb_eventkey='+EventKey+'">'+tag_name+'</a><span id="delContactTag'+NextTag+'">&nbsp;<a href="#" onclick="fnDeleteTag('+idtag+',\'Tag'+NextTag+'\'); return false;"><img src="/images/delete.gif" width="14" height="14" alt="Delete this tag" /></a></span></span>');
                NextTag++;
            }
        });
      }
    }
    function fnDeleteTag(idtag,iddom){
        $.ajax({
            type: "GET",
            <?php 
$e_delTagAjax = new Event("Tag->eventAjaxDeleteTagById");
$e_delTagAjax->addEventAction("ContactView->eventDeleteTag");
$e_delTagAjax->setEventControler("ajax_evctl.php");
$e_delTagAjax->setSecure(false);
?>
            url: "<?php 
echo $e_delTagAjax->getUrl();
?>
",
            data: "idtag_delete="+idtag+"&idcontact=<?php 
echo $idcontact;
?>
",
            success: function(){
                $("#"+iddom).remove();
            }
        });
コード例 #19
0
ファイル: i_contact_edit.php プロジェクト: jacquesbagui/ofuz
           <h1>Edit Contact</h1>
       </div>
   </div>
   <div class="mobile_head_pad5">

<?php 
if (!is_object($_SESSION['ContactEditSave'])) {
    $ContactEdit = new Contact($GLOBALS['conx']);
    $ContactEdit->sessionPersistent("ContactEditSave", "index.php", 120);
}
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>
コード例 #20
0
ファイル: invoice_add.php プロジェクト: jacquesbagui/ofuz
</script>
<?php 
$do_feedback = new Feedback();
$do_feedback->createFeedbackBox();
?>
<table class="layout_columns"><tr><td class="layout_lmargin"></td><td>
<div class="layout_content">
<?php 
$thistab = _('Invoices');
include_once 'includes/ofuz_navtabs.php';
$do_breadcrumb = new Breadcrumb();
$do_breadcrumb->getBreadcrumbs();
// Main Invoice Form
$f_invoiceForm = new Event("InvoiceEditSave->addInvoice");
$f_invoiceForm->setLevel(2000);
$f_invoiceForm->addEventAction("InvoiceLine->eventSaveInvoiceline", 2200);
$f_invoiceForm->addEventAction("InvoiceEditSave->eventSetInvoiceCalculation", 2210);
$f_invoiceForm->addParam("goto", "invoice.php");
echo $f_invoiceForm->getFormHeader();
echo $f_invoiceForm->getFormEvent();
$_SESSION['InvoiceEditSave']->setFields("invoice_add");
$_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?');
?>
</div>
コード例 #21
0
 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;
 }
コード例 #22
0
ファイル: project.php プロジェクト: jacquesbagui/ofuz
echo $idproject;
?>
" />
            <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') . _(':');
コード例 #23
0
ファイル: invoice_edit.php プロジェクト: jacquesbagui/ofuz
include_once 'includes/ofuz_navtabs.php';
$do_breadcrumb = new Breadcrumb();
$do_breadcrumb->getBreadcrumbs();
if (!$invoice_access) {
    $msg = new Message();
    echo '<div class="messageshadow_unauthorized">';
    echo '<div class="messages_unauthorized">';
    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");
コード例 #24
0
ファイル: task.php プロジェクト: jacquesbagui/ofuz
</span>
                <?php 
if (is_object($GLOBALS['cfg_submenu_placement']['task'])) {
    echo $GLOBALS['cfg_submenu_placement']['task']->getMenu();
}
?>
        </div>
               
        <div id="ptask_ctlbar" style="display: none;">
            <?php 
$do_project_list = new Project();
$do_project_list->getAllProjects();
$SelectOptions = $do_project_list->getProjectsSelectOptions($_SESSION['do_project_task']->idproject);
$e_ProjectTask = new Event('ProjectTask->eventUpdateProjectTask');
$e_ProjectTask->setLevel(1999);
$e_ProjectTask->addEventAction('WorkFeedProjectTask->eventAddFeed', 2002);
$e_ProjectTask->addEventAction('mydb.gotoPage', 2010);
$e_ProjectTask->addParam('goto', 'Task/' . $idproject_task);
$e_ProjectTask->addParam('task_event_type', 'update_task');
echo $e_ProjectTask->getFormHeader();
echo $e_ProjectTask->getFormEvent();
$do_project_list->idproject = $_SESSION['do_project_task']->idproject;
$task_category_arr = $do_project_list->getDistinctTaskCategoryForProjectUnionUser();
?>
            Task name: &nbsp; <input type="text" name="task_description" value="<?php 
echo htmlentities($_SESSION['do_project_task']->task_description);
?>
" style="width:400px;" /><br /><br />
            Project: &nbsp; <select name="idproject"><?php 
echo $SelectOptions;
?>