function aworkspage() { $this->page(); $this->stylesheet = "style.css"; $this->__widgetfields[] = html::write("<script src=\"shortcuts.js\"></script><div id=\"header\"></div>"); $t = new toolbar(); $t->addWidget(new button("Oficina", "index.php", "page")); $t->addWidget(new button("Operador de Taller", "taller.php", "wrench")); $t->addWidget(new button("Operador de Almacen", "almacen.php", "car")); $this->__widgetfields[] = $t; }
// +-----------------------------------------------------------------+ // | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | This program is free software: you can redistribute it and/or | // | modify it under the terms of the GNU General Public License as | // | published by the Free Software Foundation, either version 3 of | // | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/phreebooks/pages/admin/template_tab_chart_of_accounts.php // $chart_of_accounts_toolbar = new toolbar(); $chart_of_accounts_toolbar->icon_list['cancel']['show'] = false; $chart_of_accounts_toolbar->icon_list['open']['show'] = false; $chart_of_accounts_toolbar->icon_list['save']['show'] = false; $chart_of_accounts_toolbar->icon_list['delete']['show'] = false; $chart_of_accounts_toolbar->icon_list['print']['show'] = false; if ($security_level > 1) { $chart_of_accounts_toolbar->add_icon('new', 'onclick="loadPopUp(\'chart_of_accounts_new\', 0)"', $order = 10); } ?> <div id="tab_chart_of_accounts"> <?php echo $chart_of_accounts_toolbar->build_toolbar(); ?> <h1><?php echo $chart_of_accounts->title;
// +-----------------------------------------------------------------+ // | This program is free software: you can redistribute it and/or | // | modify it under the terms of the GNU General Public License as | // | published by the Free Software Foundation, either version 3 of | // | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/doc_ctl/pages/main/tab_document.php // $fieldset_content = NULL; // build the tab toolbar $docbar = new toolbar(); $docbar->add_icon('export', 'onclick="submitSeq(' . $id . ',\'download\', true)"', $order = 10); $docbar->icon_list['cancel']['show'] = false; $docbar->icon_list['open']['show'] = false; $docbar->icon_list['save']['params'] = 'onclick="submitToDo(\'save_doc\')"'; $docbar->icon_list['print']['show'] = false; $docbar->icon_list['export']['text'] = TEXT_DOWNLOAD_DOCUMENT; if ($security_level > 3) { $docbar->icon_list['delete']['params'] = 'onclick="if (confirm(\'' . DOC_CTL_DELETE_DOCUMENT . '\')) docAction(\'delete\')"'; } else { $docbar->icon_list['delete']['show'] = false; } if ($bookmarked) { $docbar->icon_list['del_bookmark'] = array('show' => true, 'icon' => 'actions/bookmark-new.png', 'params' => 'onclick="docAction(\'del_bookmark\')"', 'text' => TEXT_REMOVE_BOOKMARK, 'order' => 20); } else { $docbar->icon_list['bookmark'] = array('show' => true, 'icon' => 'actions/bookmark-new.png', 'params' => 'onclick="docAction(\'bookmark\')"', 'text' => TEXT_BOOKMARK_DOC, 'order' => 20);
if (!errorobject::hasErrors()) { $sf->estado = $sfe->estado_nuevo; $sf->fecha_entrega_prevista = $sfe->fecha_entrega_prevista; if ($sfe->estado_nuevo == 8) { $sf->fecha_entrega = time(); } $sf->update(); header("location:pedido.php?pedido_id=" . $r->pedido_id); } else { $p->addWidget(new infobox("Error", "Error en el formulario, compruebe los datos", false)); } } error_reporting(E_ALL); $p->addWidget(html::write("<h1>Añadir evento a pedido <b>" . $sf->referencia . "</b> de <b>" . $sf->cliente . "</b> </h1>")); $b = new Box("Datos del Evento"); $t = new toolbar(); $t->addWidget(new button("Guardar Datos del Evento", "javascript:document.forms[0].submit()", "disk")); $b->addWidget($t); $f = new form("", ""); $opts[] = array("caption" => "Sin procesar", "value" => 0); $opts[] = array("caption" => "Orden", "value" => 1); $opts[] = array("caption" => "Taller", "value" => 2); $opts[] = array("caption" => "Excepción Taller", "value" => 3); $opts[] = array("caption" => "Fabricación", "value" => 4); $opts[] = array("caption" => "Excepción en Fabricación", "value" => 5); $opts[] = array("caption" => "Almacén", "value" => 6); $opts[] = array("caption" => "Excepción en Almacén", "value" => 7); $opts[] = array("caption" => "Entrega", "value" => 8); $opts[] = array("caption" => "Excepción en Entrega", "value" => 9); $sel = new form_select("estado_nuevo", "Nuevo estado"); $sel->addOptions($opts);
$p->addWidget(html::write("<h1>Bienvenid@</h1>")); $d = new datagrid("pedido", "pedido.php?"); $d->toolbar = false; $sf->__query = "SELECT * FROM pedidos order by estado"; $d->objectField("idmodelo", new scaffold("modelos"), "referencia"); $d->objectField("idmadera", new scaffold("maderas"), "referencia"); $d->specialField("fecha", "timestamp", "date", "html"); $d->headers("tipo_pedido", "Tipo de Pedido"); $d->specialField("tipo_pedido", "tipo_pedido", "ooentity", "tipowidget"); $d->headers("estado", "Estado"); $d->headers("cliente", "Cliente"); $d->headers("referencia", "Referencia"); $d->hideField("observaciones"); $d->hideField("otro_material"); $d->specialField("estado", "estado", ooentity, estadolistwidget); $d->specialField("fecha_pedido", "timestamp", date, html); $d->specialField("fecha_entrega_prevista", "timestamp", date, html); $d->specialField("fecha_entrega", "timestamp", date, html); $d->headers("fecha_entrega", "Fecha de Entrega"); $d->headers("fecha_entrega_prevista", "Fecha de Entrega Prevista"); $d->headers("fecha_pedido", "Fecha de Pedido"); $b = new Box("Pedidos en Cartera"); $d->drop($sf); $t = new toolbar(); $t->addWidget(new button("Añadir Pedido", "pedido_add.php", "add")); $t->addWidget(new button("Gestionar Modelos", "modelos.php", "package")); $t->addWidget(new button("Gestionar Maderas", "maderas.php", "map")); $b->addWidget($t); $b->addWidget($d); $p->addWidget($b); $p->draw();
// +-----------------------------------------------------------------+ // | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | This program is free software: you can redistribute it and/or | // | modify it under the terms of the GNU General Public License as | // | published by the Free Software Foundation, either version 3 of | // | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/contacts/pages/admin/template_tab_departments.php // $departments_toolbar = new toolbar('departments'); $departments_toolbar->icon_list['cancel']['show'] = false; $departments_toolbar->icon_list['open']['show'] = false; $departments_toolbar->icon_list['save']['show'] = false; $departments_toolbar->icon_list['delete']['show'] = false; $departments_toolbar->icon_list['print']['show'] = false; if ($security_level > 1) { $departments_toolbar->add_icon('new', 'onclick="loadPopUp(\'departments_new\', 0)"', $order = 10); } if ($departments->extra_buttons) { $departments->customize_buttons($departments_toolbar); } ?> <div id="tab_departments"> <?php echo $departments_toolbar->build_toolbar();
// +-----------------------------------------------------------------+ // | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | This program is free software: you can redistribute it and/or | // | modify it under the terms of the GNU General Public License as | // | published by the Free Software Foundation, either version 3 of | // | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/phreedom/pages/admin/template_currency_currency.php // $currency_toolbar = new toolbar('currency'); $currency_toolbar->icon_list['cancel']['show'] = false; $currency_toolbar->icon_list['open']['show'] = false; $currency_toolbar->icon_list['save']['show'] = false; $currency_toolbar->icon_list['delete']['show'] = false; $currency_toolbar->icon_list['print']['show'] = false; if ($security_level > 1) { $currency_toolbar->add_icon('new', 'onclick="loadPopUp(\'currency_new\', 0)"', $order = 10); } if (ENABLE_MULTI_CURRENCY) { $currency_toolbar->add_icon('update', 'onclick="tabPage(\'currency\', \'update\')"', $order = 10); $currency_toolbar->icon_list['update']['text'] = SETUP_UPDATE_EXC_RATE; } ?> <div id="tab_currency"> <?php
</table> <?php echo TEXT_AMOUNT . ' ' . html_input_field('amount', $currencies->format($amount), 'size="15" maxlength="20" style="text-align:right; font-size: 1.5em"'); ?> <footer><?php echo PHREEPOS_PAYMENT_NOTES; ?> </footer> </div> <div id="backgroundPopup"></div> </form> <?php echo html_form('popupOtherTrans', FILENAME_DEFAULT) . chr(10); $thirdToolbar = new toolbar(); $thirdToolbar->icon_list['cancel']['params'] = 'onclick="disablePopup()"'; $thirdToolbar->icon_list['open']['show'] = false; $thirdToolbar->icon_list['save']['params'] = 'onclick="SaveOt()"'; $thirdToolbar->icon_list['save']['show'] = true; $thirdToolbar->icon_list['delete']['show'] = false; $thirdToolbar->icon_list['print']['show'] = false; // pull in extra toolbar overrides and additions if (count($extra_ThirdToolbar_buttons) > 0) { foreach ($extra_ThirdToolbar_buttons as $key => $value) { $thirdToolbar->icon_list[$key] = $value; } } // add the help file index and build the toolbar echo $thirdToolbar->build_toolbar(); // Build the page
// +-----------------------------------------------------------------+ // | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | This program is free software: you can redistribute it and/or | // | modify it under the terms of the GNU General Public License as | // | published by the Free Software Foundation, either version 3 of | // | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/contacts/pages/admin/template_tab_project_costs.php // $project_costs_toolbar = new toolbar('project_costs'); $project_costs_toolbar->icon_list['cancel']['show'] = false; $project_costs_toolbar->icon_list['open']['show'] = false; $project_costs_toolbar->icon_list['save']['show'] = false; $project_costs_toolbar->icon_list['delete']['show'] = false; $project_costs_toolbar->icon_list['print']['show'] = false; if ($security_level > 1) { $project_costs_toolbar->add_icon('new', 'onclick="loadPopUp(\'project_costs_new\', 0)"', $order = 10); } if ($project_costs->extra_buttons) { $project_costs->customize_buttons($project_costs_toolbar); } ?> <div id="tab_project_costs"> <?php echo $project_costs_toolbar->build_toolbar();
// +-----------------------------------------------------------------+ // | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | This program is free software: you can redistribute it and/or | // | modify it under the terms of the GNU General Public License as | // | published by the Free Software Foundation, either version 3 of | // | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/contacts/pages/admin/template_tab_tabs.php // $tabs_toolbar = new toolbar('tabs'); $tabs_toolbar->icon_list['cancel']['show'] = false; $tabs_toolbar->icon_list['open']['show'] = false; $tabs_toolbar->icon_list['save']['show'] = false; $tabs_toolbar->icon_list['delete']['show'] = false; $tabs_toolbar->icon_list['print']['show'] = false; if ($security_level > 1) { $tabs_toolbar->add_icon('new', 'onclick="loadPopUp(\'tabs_new\', 0)"', $order = 10); } if ($tabs->extra_buttons) { $tabs->customize_buttons($tabs_toolbar); } ?> <div id="tab_tabs"> <?php echo $tabs_toolbar->build_toolbar();
function predrawWidget() { $identificator = $this->name; $action = $this->name . "_action"; $_identificator = $this->name . "_id"; $r = new request(); if ($r->filter_text) { if (strpos($this->controller, "?") === false) { $this->controller .= "?prepend=1"; } $this->controller .= "&filter_text=" . $r->filter_text . "&filter_field=" . $r->filter_field; if ($r->filter_match) { $this->controller .= "&filter_match=1"; } } if ($r->{$_identificator}) { $this->__scaffoldobject->open($r->{$_identificator}); } $this->__gridobject->drop($this->__scaffoldobject); if ($r->{$action} == "insert") { $this->__scaffoldobject->fromObject($r); } $this->__formobject->drop($this->__scaffoldobject); switch ($r->{$action}) { default: $button_add = new button($this->button_add, $this->controller . (strpos($this->controller, "?") === false ? "?" : "&") . $action . "=add", "add"); $b = new box($this->name ? $this->name : "List", $this->__gridobject); if (!$this->__disable_add) { $b->addWidget($button_add); } return $b; break; case "add": $this->__formobject->action = $this->__formobject->action . (strpos($this->__formobject->action, "?") === false ? "?" : "&") . $action . "=insert"; $this->__formobject->submit = $this->button_add; $this->__formobject->__target = $this->__formobject->action; return new box($this->name ? $this->name : "Add", $this->__formobject); break; case "insert": $this->__scaffoldobject->fromObject($r); if (is_array($this->__composites)) { foreach ($this->__composites as $k => $v) { $entity = $this->__composites[$k]["entity"]; $efield = $this->__composites[$k]["efield"]; $this->__scaffoldobject->composeField($k, $entity, $efield); } } if ($this->__scaffoldobject->insert()) { $b = new box($this->name ? $this->name : "Message", html::write($this->message_insert_ok)); $t = new toolbar(); $b->addWidget(html::write("<script>setTimeout(\"document.location='" . $this->controller . "'\",1000);</script>")); $b->addWidget($t); return $b; } else { $w = new oowidget(); $b = new box($this->name ? $this->name : "Message", html::write($this->message_insert_failed)); $b->addWidget(errorobject::errorList()); $this->__formobject->action = $this->__formobject->action . (strpos($this->__formobject->action, "?") === false ? "?" : "&") . $action . "=insert"; $this->__formobject->submit = $this->button_add; $this->__formobject->__target = $this->__formobject->action; $b2 = new box($this->name ? $this->name : "Add", $this->__formobject); $w->addWidget($b); $w->addWidget($b2); $b->addWidget(new button($this->button_list, $this->controller)); return $w; } break; case "update": $tmpsf = $this->__scaffoldobject; $this->__scaffoldobject = new scaffold($this->name); $this->__scaffoldobject->__validators = $tmpsf->__validators; $this->__scaffoldobject->fromObject($r); if (is_array($this->__composites)) { foreach ($this->__composites as $k => $v) { $entity = $this->__composites[$k]["entity"]; $efield = $this->__composites[$k]["efield"]; $this->__scaffoldobject->composeField($k, $entity, $efield); } } if ($this->__scaffoldobject->update()) { $b = new box($this->name ? $this->name : "Message", html::write($this->message_update_ok)); $t = new toolbar(); //$b->addWidget(new button($this->button_list, $this->controller)); $b->addWidget(html::write("<script>setTimeout(\"document.location='" . $this->controller . "'\",1000);</script>")); return $b; } else { $w = new oowidget(); $this->__formobject->action = $this->__formobject->action . (strpos($this->__formobject->action, "?") === false ? "?" : "&") . $action . "=update&" . $this->name . "_id=" . $r->{$_identificator}; $this->__formobject->__target = $this->__formobject->action; $this->__formobject->submit = $this->button_update; $b2 = new box($this->name ? $this->name : "View", $this->__formobject); $b = new box($this->name ? $this->name : "Message", html::write($this->message_update_failed)); $b->addWidget(errorobject::errorList()); $b->addWidget(new button($this->button_list, $this->controller)); $w->addWidget($b); $w->addWidget($b2); $b->addWidget(new button($this->button_list, $this->controller)); return $w; return $b; } break; case "view": $this->__formobject->action = $this->__formobject->action . (strpos($this->__formobject->action, "?") === false ? "?" : "&") . $action . "=update&" . $this->name . "_id=" . $r->{$_identificator}; $this->__formobject->__target = $this->__formobject->action; $this->__formobject->submit = $this->button_update; $b = new box($this->name ? $this->name : "View", $this->__formobject); for ($i = 0; $i < count($this->__additionalwidgets); $i++) { $b->addWidget($this->__additionalwidgets[$i]); } $t = new toolbar(); $t->addWidget(new button($this->button_list, $this->controller, "book_previous")); $t->addWidget(new button($this->button_delete, $this->controller . (strpos($this->controller, "?") === false ? "?" : "&") . $action . "=delete&" . $_identificator . "=" . $r->{$_identificator}, "delete")); $b->addWidget($t); return $b; break; case "delete": $b = new box($this->name ? $this->name : "Delete"); $b->addWidget(html::write($this->message_delete_confirm)); $t = new toolbar(); $t->addWidget(new button($this->button_delete, $this->controller . (strpos($this->controller, "?") === false ? "?" : "&") . $action . "=delete_confirm&" . $_identificator . "=" . $r->{$_identificator}, "delete")); $t->addWidget(new button($this->button_list, $this->controller . (strpos($this->controller, "?") === false ? "?" : "&") . $action . "=&" . $_identificator . "=" . $r->{$_identificator}, "book_previous")); $b->addWidget($t); return $b; break; case "delete_confirm": $this->__scaffoldobject->open($r->{$_identificator}); if ($this->__scaffoldobject->delete()) { $b = new box($this->name ? $this->name : "Message", html::write($this->message_delete_ok)); $t = new toolbar(); $t->addWidget(new button($this->button_list, $this->controller)); $t->addWidget(html::write("<meta http-equiv=\"refresh\" content=\"1; url=" . $this->controller . "\" />")); $b->addWidget($t); return $b; } else { $b = new box($this->name ? $this->name : "Message", html::write($this->message_delete_failed)); $b->addWidget(errorobject::errorList()); $b->addWidget(new button($this->button_list, $this->controller)); return $b; } break; } }
// +-----------------------------------------------------------------+ // | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | This program is free software: you can redistribute it and/or | // | modify it under the terms of the GNU General Public License as | // | published by the Free Software Foundation, either version 3 of | // | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/import_bank/pages/admin/template_tab_kt.php // $kt_toolbar = new toolbar(); $kt_toolbar->icon_list['cancel']['show'] = false; $kt_toolbar->icon_list['open']['show'] = false; $kt_toolbar->icon_list['delete']['show'] = false; $kt_toolbar->icon_list['save']['show'] = false; $kt_toolbar->icon_list['print']['show'] = false; if ($security_level > 1) { $kt_toolbar->add_icon('new', 'onclick="loadPopUp(\'known_transactions_new\', 0)"', $order = 10); } ?> <div id="tab_kt"> <?php echo $kt_toolbar->build_toolbar(); ?> <h1><?php echo $kt->title;
" /> <param name="code" value="jzebra.PrintApplet.class" /> <param name="mayscript" value="true" /> <param name="cache_option" value="yes"/> </object> --> <applet id="qz" name="QZ Print Plugin" code="qz.PrintApplet.class" archive="<?php echo DIR_WS_ADMIN . 'modules/phreedom/includes/jzebra/qz-print.jar'; ?> " width="16px" height="16px"> <param name="permissions" value="all-permissions" /> <param name="cache_option" value="yes"/> </applet> <div id="popupPayment"> <?php $SeccondToolbar = new toolbar(); $SeccondToolbar->icon_list['cancel']['params'] = 'onclick="disablePopup()"'; $SeccondToolbar->icon_list['open']['show'] = false; $SeccondToolbar->icon_list['save']['params'] = 'onclick="SavePayment(\'save\')"'; $SeccondToolbar->icon_list['save']['show'] = true; $SeccondToolbar->icon_list['delete']['show'] = false; $SeccondToolbar->icon_list['print']['params'] = 'onclick="SavePayment(\'print\')"'; $SeccondToolbar->icon_list['print']['show'] = true; // pull in extra toolbar overrides and additions if (count($extra_SeccondToolbar_buttons) > 0) { foreach ($extra_SeccondToolbar_buttons as $key => $value) { $SeccondToolbar->icon_list[$key] = $value; } } // add the help file index and build the toolbar echo $SeccondToolbar->build_toolbar();
<?php include "local.php"; $p = new aworkspage(); error_reporting(E_ALL); $sf = new scaffold("pedidos"); $sf->open($r->pedido_id); if ($r->referencia) { $sf->fromObject($r); $sf->update(); } $b = new Box("Datos Generales del Pedido"); $t = new toolbar(); $t->addWidget(new button("Guardar Datos", "javascript:document.forms[0].submit()", "disk")); $t->addWidget(new button("Actualizar Estado del Pedido", "pedido_evento_add.php?pedido_id=" . $r->pedido_id, "lightning")); $b->addWidget($t); $f = new form("", ""); $f->addWidget(new form_separator("Referencia y Cliente")); $f->addWidget(new form_input("referencia", "Referencia", $sf->referencia)); $f->addWidget(new form_html("Tracking", "<span style=\"font-size:14px;font-weight:bold;\">" . $sf->tracking)); $f->addWidget(new form_input("cliente", "Cliente", $sf->cliente)); $f->addWidget(new form_separator("Fechas")); $d = new date(); $d->timestamp = $sf->fecha_pedido; $d->parse(); $f->addWidget(new form_html("Fecha de Pedido ", $d->string)); $d = new date(); $d->timestamp = $sf->fecha_entrega_prevista; $d->parse(); $f->addWidget(new form_html("Fecha Entrega Prevista", $d->string)); $d = new date();
// +-----------------------------------------------------------------+ // | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | This program is free software: you can redistribute it and/or | // | modify it under the terms of the GNU General Public License as | // | published by the Free Software Foundation, either version 3 of | // | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/assets/pages/admin/template_tab_fields.php // $field_toolbar = new toolbar(); $field_toolbar->icon_list['cancel']['show'] = false; $field_toolbar->icon_list['open']['show'] = false; $field_toolbar->icon_list['delete']['show'] = false; $field_toolbar->icon_list['save']['show'] = false; $field_toolbar->icon_list['print']['show'] = false; if ($security_level > 1) { $field_toolbar->add_icon('new', 'onclick="loadPopUp(\'fields_new\', 0)"', $order = 10); } ?> <div id="tab_fields"> <?php echo $field_toolbar->build_toolbar(); ?> <h1><?php echo $fields->title;
// +-----------------------------------------------------------------+ // | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | This program is free software: you can redistribute it and/or | // | modify it under the terms of the GNU General Public License as | // | published by the Free Software Foundation, either version 3 of | // | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/phreebooks/pages/admin/template_tab_tax_rates_vend.php // $tax_rates_vend_toolbar = new toolbar(); $tax_rates_vend_toolbar->icon_list['cancel']['show'] = false; $tax_rates_vend_toolbar->icon_list['open']['show'] = false; $tax_rates_vend_toolbar->icon_list['save']['show'] = false; $tax_rates_vend_toolbar->icon_list['delete']['show'] = false; $tax_rates_vend_toolbar->icon_list['print']['show'] = false; if ($security_level > 1) { $tax_rates_vend_toolbar->add_icon('new', 'onclick="loadPopUp(\'tax_rates_vend_new\', 0)"', $order = 10); } ?> <div id="tab_tax_rates_vend"> <?php echo $tax_rates_vend_toolbar->build_toolbar(); ?> <h1><?php echo $tax_rates_vend->title;
// +-----------------------------------------------------------------+ // | This program is free software: you can redistribute it and/or | // | modify it under the terms of the GNU General Public License as | // | published by the Free Software Foundation, either version 3 of | // | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/phreeform/doc_ctl/pages/main/tab_folder.php // $fieldset_content = NULL; // build the tab toolbar $docbar = new toolbar(); $docbar->icon_list['cancel']['show'] = false; $docbar->icon_list['open']['show'] = false; $docbar->icon_list['save']['show'] = false; $docbar->icon_list['print']['show'] = false; if ($id) { $docbar->icon_list['delete']['params'] = 'onclick="if (confirm(\'' . PHREEFORM_DELETE_DIRECTORY . '\')) dirAction(\'delete\')"'; } else { $docbar->icon_list['delete']['show'] = false; } if ($id) { $docbar->icon_list['go_up'] = array('show' => true, 'icon' => 'actions/go-up.png', 'params' => 'onclick="dirAction(\'go_up\')"', 'text' => 'Up', 'order' => 2); } if ($_REQUEST['action'] != 'search') { $fieldset_content .= $docbar->build_toolbar() . chr(10); }
$sf->fecha_entrega_prevista = $d->timestamp; $sf->fecha_pedido = time(); $sf->fecha_entrega = -1; $tracking = "AW/" . date("y") . date("w") . "/" . strtoupper(substr(md5(uniqid(rand)), 4, 2) . substr(md5(uniqid(rand)), 7, 2) . substr(md5(uniqid(rand)), 12, 2)); $sf->tracking = $tracking; $sf->insert(); if (errorobject::haserrors()) { } else { $id = mysql_insert_id(); header("location:pedido.php?pedido_id=" . $id); } } $p = new aworkspage(); $b = new Box("Añadir Pedido"); $p->addWidget(html::write("<h1>Añadir Pedido</h1>")); $t = new toolbar(); $t->addWidget(new button("Guardar Pedido", "javascript:document.forms[0].submit()", "add")); $b->addWidget($t); $f = new form("", ""); $f->addWidget(new form_separator("Referencia y Cliente")); $f->addWidget(new form_input("referencia", "Referencia Cliente", $r->referencia)); $f->addWidget(new form_input("cliente", "Cliente", $r->cliente)); $sel = new form_select("tipo_pedido", "Tipo de Pedido"); $opts[] = array("value" => 0, "caption" => "Puertas"); $opts[] = array("value" => 1, "caption" => "Ventanas"); $opts[] = array("value" => 2, "caption" => "Puertas+Ventanas"); $sel->addOptions($opts); unset($opts); $f->addWidget($sel); $f->addWidget(new form_separator("Fechas")); $d = new date();
} ?> <?php // *********************** Mailing/Main Address (only one allowed) ****************************** ?> <fieldset> <legend><?php echo ACT_CATEGORY_I_ADDRESS; ?> </legend> <table class="ui-widget" style="border-collapse:collapse;width:100%;"> <tr> <td> <?php // build a secondary toolbar for the contact form $ctoolbar = new toolbar('i'); $ctoolbar->icon_list['cancel']['show'] = false; $ctoolbar->icon_list['open']['show'] = false; $ctoolbar->icon_list['save']['show'] = false; $ctoolbar->icon_list['delete']['show'] = false; $ctoolbar->icon_list['print']['show'] = false; $ctoolbar->add_icon('new', 'onclick="clearAddress(\'im\')"', $order = 10); $ctoolbar->icon_list['new']['icon'] = 'actions/contact-new.png'; $ctoolbar->icon_list['new']['text'] = TEXT_NEW_CONTACT; $ctoolbar->add_icon('copy', 'onclick="copyContactAddress(\'' . $type . '\')"', 20); $ctoolbar->icon_list['copy']['text'] = TEXT_COPY_ADDRESS; echo $output; echo $ctoolbar->build_toolbar(); ?> </td></tr> </table>
// | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | This program is free software: you can redistribute it and/or | // | modify it under the terms of the GNU General Public License as | // | published by the Free Software Foundation, either version 3 of | // | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/phreeform/pages/main/tab_report.php // // build the tab toolbar $docbar = new toolbar(); $docbar->icon_list['cancel']['show'] = false; $docbar->icon_list['open']['params'] = 'onclick="ReportGenPopup(' . $id . ', \'' . $doc_details->fields['doc_ext'] . '\')"'; $docbar->icon_list['save']['show'] = false; $docbar->icon_list['print']['show'] = false; if ($security_level > 2) { $docbar->add_icon('edit', 'onclick="ReportPopup(\'design\', ' . $id . ')"', $order = 11); } if ($security_level > 2) { $docbar->add_icon('rename', 'onclick="ReportPopup(\'rename\', ' . $id . ')"', $order = 12); } if ($security_level > 1) { $docbar->add_icon('copy', 'onclick="ReportPopup(\'copy\', ' . $id . ')"', $order = 13); } if ($security_level > 1) { $docbar->add_icon('export', 'onclick="ReportPopup(\'export\', ' . $id . ')"', $order = 15);