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; }
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; }
</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: ') . ' </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> <div class="spacerblock_80"></div>
$do_group = new Group(); $do_group->get_all_groups(); //if there is only one group in the system and we choose to delete it then there is no group to trasfer data if ($do_group->getNumRows() > 1) { $group_transfer = true; } $e_del = new Event($obj . "->eventDeleteRecord"); $e_del->addParam("id", $id); $e_del->addParam("next_page", NavigationControl::getNavigationLink($obj, $return_page)); if ($group_transfer === true) { $e_del->addParam("group_transfer_opt", "yes"); } else { $e_del->addParam("group_transfer_opt", "no"); } echo '<form class="form-horizontal" id="' . $obj . '__eventDeleteRecord" name="' . $obj . '__eventDeleteRecord" action="/eventcontroler.php" method="post">'; echo $e_del->getFormEvent(); ?> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h3><span class="label label-info"><?php echo _('Delete group data transfer'); ?> </span></h3> </div> <div class="modal-body"> <?php echo _('Before deleting the group please select an user or group to trasfer the existing group\'s data.'); ?> <br /><br />
* create invoice from sales order * @author Abhik Chakraborty */ ?> <div class="container-fluid"> <div class="row-fluid"> <div class="span12" style="margin-left:3px;"> <div class="row-fluid"> <div class="datadisplay-outer"> <?php $e_add_entity = new Event("Invoice->eventAddRecord"); $e_add_entity->addParam("idmodule",15); $e_add_entity->addParam("module","Invoice"); $e_add_entity->addParam("error_page",NavigationControl::getNavigationLink($module,"add")); echo '<form class="form-horizontal" id="Invoice__addRecord" name="Invoice__addRecord" action="/eventcontroler.php" method="post" enctype="multipart/form-data">'; echo $e_add_entity->getFormEvent(); require("edit_view_form_fields.php"); ?> </form> </div> </div><!--/row--> </div><!--/span--> </div><!--/row--> </div> <script> <?php echo $do_crmfields->get_js_form_validation($module_id,"Invoice__addRecord","edit"); ?> $.validator.addMethod("notEqual", function(value,element,param) { return this.optional(element) || value != param; },"Please select a value "
<?php // Copyright SQCRM. For licensing, reuse, modification and distribution see license.txt /** * @author Abhik Chakraborty */ include_once "config.php"; $e_test = new Event("ListviewAction->eventTest"); $e_test->addParam("ids", $_REQUEST["chk"]); echo '<form class="" id="ListviewAction__eventTest" name="ListviewAction__eventTest" action="/eventcontroler.php" method="post">'; echo $e_test->getFormEvent(); ?> <div class="modal-dialog" role="document"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <span class="label label-warning"><?php echo _('WARNING!'); ?> </span> </div> <div class="modal-body"> <?php echo _('Are you sure you want to submit ?'); ?> </div> <div class="modal-footer"> <a href="#" class="btn btn-default active" data-dismiss="modal"><i class="glyphicon glyphicon-remove-sign"></i> <?php echo _('Close'); ?>
<?php // Copyright SQCRM. For licensing, reuse, modification and distribution see license.txt /** * Change password modal * @author Abhik Chakraborty */ include_once "config.php"; $idmodule = $_GET["idmodule"]; $referrar = $_GET["referrar"]; $allow = true; $e_add = new Event("CustomFields->eventAddCustomField"); echo '<form class="" id="CustomFields__eventAddCustomField" name="CustomFields__eventAddCustomField" action="/eventcontroler.php" method="post">'; echo $e_add->getFormEvent(); ?> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h3><span class="label label-info"><?php echo _('Add a new custom field'); ?> </span></h3> </div> <div class="modal-body"> <div style="float:left;width:200px;" class="box_content"> <ul class="nav nav-list" id="cf_selector"> <li class="" id="1"><a href="#"><img src="/themes/images/text-box.png" style="vertical-align:center;margin-right:4px;"><?php echo _('Text Box'); ?> </a></li>
</div> </div> </div><!--/datadisplay-outer--> </div><!--/span--> </div><!--/row--> </div> <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" id="rename_profile"> <?php // Here goes updating the name and description of the profile $e_update = new Event("Profile->eventRenameProfile"); $e_update->addParam("id", $do_profile->idprofile); $e_update->addParam("error_page", NavigationControl::getNavigationLink($module, "profile_detail", $do_profile->idprofile)); $e_update->addParam("next_page", NavigationControl::getNavigationLink($module, "profile_detail", $do_profile->idprofile)); echo '<form class="" id="Profile__eventRenameProfile" name="Profile__eventRenameProfile" action="/eventcontroler.php" method="post">'; echo $e_update->getFormEvent(); ?> <div class="modal-dialog bs-example-modal-lg" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h3><span class="label label-info"><?php echo _('Rename Profile'); ?> </span></h3> </div> <div class="modal-body"> <div class="form-group"> <label class="control-label" for="profilename"><?php echo _('Profile Name'); ?>
?> "><?php echo _('Currency'); ?> </a></h3> <p><?php echo _('Manage currency settings'); ?> </p> </div> <div class="datadisplay-outer"> <?php echo '<div id="message"></div>'; $e_edit = new Event("CRMGlobalSettings->eventAjaxUpdateCurrencySettings"); echo '<form class="form-horizontal" id="CRMGlobalSettings__eventAjaxUpdateCurrencySettings" name="CRMGlobalSettings__eventAjaxUpdateCurrencySettings" method="post" enctype="multipart/form-data">'; echo $e_edit->getFormEvent(); ?> <label class="control-label" for="currency"><?php echo _('Select a currency'); ?> </label> <div class="controls"> <select name="currency" id="currency" class="currency_settings"> <?php foreach ($currency_array as $key => $val) { ?> <option value = "<?php echo $key . '-' . (string) $val['hex']; ?> " <?php
<?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
<?php // Copyright SQCRM. For licensing, reuse, modification and distribution see license.txt /** * custom view edit view * @author Abhik Chakraborty */ $e_add_cv = new Event($module."->eventAddRecord"); $e_add_cv->addParam("target_module_id",$target_module_id); $e_add_cv->addParam("error_page",NavigationControl::getNavigationLink($module,"add")); echo '<form class="form-horizontal" id="'.$module.'__addEditRecord" name="'.$module.'__addEditRecord" action="/eventcontroler.php" method="post" enctype="multipart/form-data">'; echo $e_add_cv->getFormEvent(); ?> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="datadisplay-outer"> <div class="left_600"> <a href="<?php echo NavigationControl::getNavigationLink($_SESSION["do_module"]->modules_full_details[$target_module_id]["name"],"list");?>" class="btn btn-default active"> <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> <?php echo _('Cancel');?></a> <input type="submit" class="btn btn-primary" value="<?php echo _('Save');?>"/> </div> <div class="clear_float"></div> <hr class="form_hr"> <div class="box_content_header"><strong><?php echo _('Custom view information');?></strong> <hr class="form_hr"> <div class="row"> <label class="col-sm-2 control-label" for="cvname">* <?php echo _('Custom view name');?></label> <div class="col-xs-6"> <input type = "text" name="cvname" id="cvname" value="" class="form-control input-sm"> </div> </div>
$do_fields->next(); $fieldid = $do_fields->idfields; } $e_change = new Event("CRMEntity->eventChangeAssignedToEntity"); $e_change->addParam("ids", $ids); $e_change->addParam("module", $module); $e_change->addParam("module_id", $module_id); $e_change->addParam("fieldid", $fieldid); $e_change->addParam("next_page", NavigationControl::getNavigationLink($obj, $return_page)); if ($group_transfer === true) { $e_change->addParam("group_transfer_opt", "yes"); } else { $e_change->addParam("group_transfer_opt", "no"); } echo '<form class="form-horizontal" id="CRMEntity__eventChangeAssignedToEntity" name="CRMEntity__eventChangeAssignedToEntity" action="/eventcontroler.php" method="post">'; echo $e_change->getFormEvent(); ?> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h3><span class="label label-info"><?php echo _('Change Assigned to'); ?> </span></h3> </div> <div class="modal-body"> <?php echo _('Please select an user or group to change the assigned to'); ?> <br /><br />
<div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="row"> <div class="datadisplay-outer"> <?php $e_edit_entity = new Event($module."->eventEditRecord"); $e_edit_entity->addParam("idmodule",$module_id); $e_edit_entity->addParam("module",$module); $e_edit_entity->addParam("sqrecord",$sqcrm_record_id); if (isset($_REQUEST["return_page"]) && strlen($_REQUEST["return_page"]) > 2) { $e_edit_entity->addParam("return_page",$_REQUEST["return_page"]); } $e_edit_entity->addParam("error_page",NavigationControl::getNavigationLink($module,"edit",$sqcrm_record_id)); echo '<form class="form-horizontal" id="'.$module.'__editRecord" name="'.$module.'__editRecord" action="/eventcontroler.php" method="post" enctype="multipart/form-data">'; echo $e_edit_entity->getFormEvent(); require("edit_view_form_fields.php"); ?> </form> </div> </div><!--/row--> </div><!--/span--> </div><!--/row--> </div> <script> <?php echo $do_crmfields->get_js_form_validation($module_id,$module."__editRecord","edit"); ?> $.validator.addMethod("notEqual", function(value,element,param) { return this.optional(element) || value != param; },"Please select a value "
<input type="submit" class="btn btn-primary" id="" value="<?php echo _('update'); ?> "/> </div> </form> </div> <div class="box_content_header"><?php echo _('Change your profile avatar'); ?> <hr class="form_hr"> <br /> <?php $e_logo_up = new Event("\\cpanel_user\\User->eventUploadUserAvatar"); echo '<form class="form-horizontal" id="User__eventUploadUserAvatar" name="User__eventUploadUserAvatar" action="' . CPANEL_EVENTCONTROLER_PATH . 'eventcontroler.php" method="post" enctype="multipart/form-data">'; echo $e_logo_up->getFormEvent(); echo FieldType12::display_field('contact_avatar', $_SESSION["do_cpaneluser"]->contact_avatar, 'l'); ?> <hr class="form_hr"> <div id="settings_currency"> <input type="submit" class="btn btn-primary" id="" value="<?php echo _('update'); ?> "/> </div> </form> </div> </div> </div> </div> </div>
</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"); echo $do_suggest_tag->tag_name;
if (is_object($GLOBALS['cfg_submenu_placement']['timesheet'])) { echo $GLOBALS['cfg_submenu_placement']['timesheet']->getMenu(); } ?> </div> </div> <div class="sub_action_menu"> <?php $e_filter = new Event("adm_project_report_discuss->eventSetMonth"); $e_filter->setLevel(501); $e_filter->addParam("goto", $_PHP['SELF']); ?> <form id="setFilterProjHrReport" name="setFilterProjHrReport" method="post" action="/eventcontroler.php"> <?php echo $e_filter->getFormEvent(); echo $_SESSION['adm_project_report_discuss']->getYearDropDown(); echo ' '; echo $_SESSION['adm_project_report_discuss']->getMonthDropDown(); echo ' '; echo $_SESSION['adm_project_report_discuss']->getWeekDropDowns(); ?> </form> </div> <br/><div class="dottedline"></div> <div class="headline_fuscia"><?php echo _('Projects'); ?> </div> <?php $do_prj_discuss = new ProjectDiscuss();
if (isset($edit) && $edit == 1) { $edit_msg = _('Update Report'); $e_set_report_data->addParam("mode","edit"); $e_set_report_data->addParam("sqrecord",$sqcrm_record_id); $do_report = new Report(); $do_report->getId($sqcrm_record_id); $report_name = $do_report->name; $idreport_folder = $do_report->idreport_folder; $description = $do_report->description; } else { $edit_msg = _('Create Report'); $e_set_report_data->addParam("mode","add"); } echo '<form class="form-horizontal" id="Report__eventSaveReport" name="Report__eventSaveReport" action="/eventcontroler.php" method="post">'; echo $e_set_report_data->getFormEvent(); ?> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="box_content"> <p><strong><?php echo $edit_msg;?> > <?php echo _('Step 7');?></strong></p> <p class="lead"><?php echo _('Add report informations')?></p> </div> <div class="box_content"> <label class="control-label" for="name">* <?php echo _('Report Name');?></label> <div class="controls"> <input type = "text" name="name" id="name" value="<?php echo $report_name ; ?>" class="form-control input-sm"> </div><br /> <label class="control-label" for="idreport_folder"><?php echo _('Report Folder');?></label> <div class="controls">
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 echo $_SESSION['ContactEditSave']->lastname;
echo ' '; $e_filter_inv->addParam("status", "Paid"); $e_filter_inv->addParam("goto", $_SERVER['PHP_SELF']); echo $e_filter_inv->getLink(_('Paid')); if ($_SESSION['do_invoice_list']->filter_inv_status_val != '') { echo ' '; $e_filter_inv->addParam("status", "None"); $e_filter_inv->addParam("goto", $_SERVER['PHP_SELF']); echo $e_filter_inv->getLink(_('All')); echo ' '; } echo ' '; $e_filter_inv->addParam("type", "date"); $e_filter_inv->addParam("goto", $_PHP['SELF']); echo '<form id="setFilterInvMonth" name="setFilterInvMonth" method="post" action="/eventcontroler.php" style="display:inline;">'; echo $e_filter_inv->getFormEvent(); echo $_SESSION['do_invoice_list']->getYearDropDownFilter(); echo ' '; echo $_SESSION['do_invoice_list']->getMonthDropDownFilter(); echo '</form>'; ?> <?php } else { $e_filter_inv = new Event("do_invoice_list->eventUnsetFilterInvoice"); $e_filter_inv->setLevel(10); $e_filter_inv->addParam("goto", $_SERVER['PHP_SELF']); echo $e_filter_inv->getLink(_("View all invoices")); echo ' '; } ?> <div class="right_20_top_0">
// Copyright SQCRM. For licensing, reuse, modification and distribution see license.txt /** * custom view edit view * @author Abhik Chakraborty */ $custom_date_options_style = 'style="display:block;"'; if (is_array($saved_date_filter) && count($saved_date_filter) > 0 && $saved_date_filter["filter_type"] != 1) { $custom_date_options_style = 'style="display:none;"'; } $e_edit_cv = new Event($module . "->eventEditRecord"); $e_edit_cv->addParam("target_module_id", $module_obj->idmodule); $e_edit_cv->addParam("sqrecord", $sqcrm_record_id); $e_edit_cv->addParam("error_page", NavigationControl::getNavigationLink($module, "add")); echo '<form class="form-horizontal" id="' . $module . '__addEditRecord" name="' . $module . '__addEditRecord" action="/eventcontroler.php" method="post" enctype="multipart/form-data">'; echo $e_edit_cv->getFormEvent(); ?> <div class="container-fluid"> <div class="row-fluid"> <div class="datadisplay-outer"> <div class="left_600"> <a href="<?php echo NavigationControl::getNavigationLink($_SESSION["do_module"]->modules_full_details[$module_obj->idmodule]["name"], "list"); ?> " class="btn btn-inverse"> <i class="icon-white icon-remove-sign"></i> <?php echo _('Cancel'); ?> </a> <input type="submit" class="btn btn-primary" value="<?php echo _('Save');
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?'); ?>
$e_del_paypal->addParam("goto", $_SERVER['PHP_SELF']); echo '<b>' . _('Paypal details') . '</b> ' . $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 /> <a href="index.php" title="">Skip >></a>
<?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"]; } ?>
* Enables the export functionality for list data * @author Abhik Chakraborty */ include_once "config.php"; $idinvoice = $_REQUEST["idinvoice"]; $idorganization = $_REQUEST["idorganization"]; $contact_emails = array(); if ((int) $idorganization > 0) { $do_org = new Organization(); $contact_emails = $do_org->get_organization_contacts_email((int) $idorganization); } $e_export = new Event("Invoice->sendInvoiceWithEmail"); $e_export->addParam("idinvoice", $idinvoice); $e_export->addParam("module", "Invoice"); echo '<form class="form-horizontal" id="Invoice__sendInvoiceWithEmail" name="Invoice__sendInvoiceWithEmail" action="/eventcontroler.php" method="post">'; echo $e_export->getFormEvent(); ?> <div class="modal-dialog" role="document"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h3><span class="label label-info"><?php echo _('Choose emails to send the invoice'); ?> </span></h3> </div> <div class="modal-body"> <div class="box_content" id=""> <?php if (count($contact_emails) > 0) {
} 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'); ?>
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 .= " <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; }