function formularioURL($titulo, $mensaje, $sv, $anex = "") { $defurl = isset($_SESSION[$sv]) ? $_SESSION[$sv] : ""; //if($defurl=='SI')$defurl=''; //Parche feo $ret = "\n\n<form action='url-proc.php' method='post' name='form_{$sv}'>\n\n <input type='hidden' name='titulo' value='{$titulo}'/>\n <input type='hidden' name='mensaje' value='{$mensaje}'/>\n <input type='hidden' name='sv' value='{$sv}'/>\n\n <input type='text' name='url' value='{$defurl}' size='40'/>\n <input type='button' value='Verificar' onclick='window.open(form_{$sv}.url.value, \"_NEW\", \"width=550,height=400\");' />\n <input type='submit' value='Actualizar' />\n {$anex}\n\n</form>\n\n<br/><br/>" . html_button($_SESSION['back']); return $ret; }
/** * Get Home buttons * * @return object - HTML Home button. */ function getHomeButton() { $home = html_button("button", "Home"); $home->set_tag_attribute("onclick", "javascript:document.location='/';"); $home->set_style("margin: 10px; vertical-align: middle; width: 90px;"); return $home; }
function formMenuIntermedio($items, $sv, $titulo1, $msg1) { ?> A continuación se presenta el formulario para la generación de páginas intermedias. <!-- Formulario para el directorio --> <br/><br/> <form name="frm" method="POST" action="histo-proc.php"> <input type="submit" value="Generar página" /> <br/><br/> <?php echo "<input type='hidden' name='titulo' value='" . $titulo1 . "'/>\n"; echo "<input type='hidden' name='sv' value='" . $sv . "'/>\n"; echo "<input type='hidden' name='archivo' value='" . $sv . '.html' . "'/>\n"; //Valores anuales echo "<table class='tabla'><tr><th>Título: </th><th colspan='3'>"; echo acentosHTML("<input type='text' size='60' name='tit1' value='" . $titulo1 . "'/></th></tr>\n"); echo "<tr><td>Mensaje: </td><td colspan='3'>"; echo acentosHTML("<textarea cols='50' rows='3' name='mensaje'>" . $msg1 . "</textarea></td></tr>\n"); //for($y=$_POST['desde_ano'];$y<=$para_ano;$y++) { // echo "<tr><td>Opción $y: </td><td><input type='text' size='30' name='opc[]' value='Año $y'/></td>"; // echo "<td>Enlace: </td><td><input type='text' size='30' name='lnk[]' value='$y/$url1'/></td></tr>\n"; //} foreach ($items as $key => $val) { echo '<tr>'; echo '<td>Opción</td>'; echo '<td><input type="text" name="opc[]" value="' . $key . '"/></td>'; echo '<td>Enlace</td>'; echo '<td><input type="text" name="lnk[]" value="' . $val . '"/></td>'; echo '</tr>'; } echo "</table><br/><br/>\n"; ?> <input type="submit" value="Generar página" /> <br/><br/><?php echo html_button($_SESSION['back']); ?> </form> <?php }
function formularioMultipagina($titulo, $msg1, $msg2, $cols, $links, $nombre, $sv, $backto, $headings = "", $footnotes = NULL, $str_enlace = array(), $str_noenlace = array(), $showbackbtn = true) { $lnk = implode(",", $links); $str_enlace = implode(",", $str_enlace); $str_noenlace = implode(",", $str_noenlace); $retStr = "\n <form method='post' action='multi-list.php' enctype='multipart/form-data'>\n\n <input type='hidden' name='nombre' value='{$nombre}' />\n <input type='hidden' name='titulo' value='{$titulo}' />\n <input type='hidden' name='msg1' value='{$msg1}' />\n <input type='hidden' name='msg2' value='{$msg2}' />\n <input type='hidden' name='sv' value='{$sv}' />\n <input type='hidden' name='cols' value='{$cols}' />\n <input type='hidden' name='links' value='{$lnk}' />\n <input type='hidden' name='str_enlace' value='{$str_enlace}' />\n <input type='hidden' name='str_noenlace' value='{$str_noenlace}' />\n <input type='hidden' name='backto' value='{$backto}' />\n <input type='hidden' name='headings' value='{$headings}' />\n\n <input type='file' name='archivo' />\n <select name='tipo'>\n <option value='excel' selected>CSV generado por Excel</option>\n <option value='calc'>CSV generado por OpenOffice</option>\n </select>\n <br/>" . ($footnotes !== NULL ? "<br />Notas a pie de página<br /><textarea rows='10' cols='60' name='footnotes'>" . $footnotes . "</textarea>" : "<input type='hidden' name='footnotes' value='' />") . "<br /><br />\n <input type='submit' value='Procesar' />"; if ($showbackbtn) { $retStr .= "<br/><br/>" . html_button($_SESSION['back']); } $retStr .= "</form>"; return $retStr; }
function formularioExcepcion($opciones, $titulo, $sv, $archivo, $textarea_readonly = false) { if ($textarea_readonly) { $textarea_readonly = 'readonly="readonly"'; } else { $textarea_readonly = ''; } $url_main = isset($_GET['g']) ? "generar.php" : "main.php"; $ret = "\n\n <!-- -->\n<form method='post' action='msg-proc.php' name='frm_{$sv}'>\n\n <input type='hidden' name='titulo' value='{$titulo}' />\n <input type='hidden' name='sv' value='{$sv}' />\n <input type='hidden' name='archivo' value='{$archivo}' />"; if ($opciones) { $ret .= "Textos predefinidos: \n\t <select name='sel' onchange='frm_{$sv}.texto.value=frm_{$sv}.sel.value;'>\n\t <option value=''>-- Elija un texto --</option>\n\t"; foreach ($opciones as $k => $v) { $ret = $ret . acentosHTML(" <option value='{$v}'>{$k}</option>\n"); } $ret = $ret . " </select><br/>"; } $ret .= "<textarea " . $textarea_readonly . " name=\"texto\" cols=\"40\" rows=\"6\"></textarea><br/>\n <input type=\"submit\" value=\"Procesar\" />\n</form>\n<br/><br/>\n" . html_button($_SESSION['back']); return $ret; }
function formHistorico($archivo1, $titulo1, $msg1, $opc1, $archivo2, $titulo2, $msg2, $opc2, $sv, $defano = 2006, $boton = 1) { global $para_mes, $para_ano; $tit1 = ""; $url1 = ""; foreach ($opc1 as $k => $v) { $tit1 = "{$tit1},{$k}"; $url1 = "{$url1},{$v}"; } $tit1 = substr($tit1, 1); $url1 = substr($url1, 1); $tit2 = ""; $url2 = ""; foreach ($opc2 as $k => $v) { $tit2 = "{$tit2},{$k}"; $url2 = "{$url2},{$v}"; } $tit2 = substr($tit2, 1); $url2 = substr($url2, 1); ?> <form method="POST" action="histo-form1.php" name="frm<?php echo $sv; ?> "> <input type="hidden" name="archivo1" value="<?php echo acentosHTML($archivo1); ?> "/> <input type="hidden" name="titulo1" value="<?php echo acentosHTML($titulo1); ?> "/> <input type="hidden" name="msg1" value="<?php echo acentosHTML($msg1); ?> "/> <input type="hidden" name="url1" value="<?php echo acentosHTML($url1); ?> "/> <input type="hidden" name="tit1" value="<?php echo acentosHTML($tit1); ?> "/> <input type="hidden" name="sv" value="<?php echo $sv; ?> "/> <table class="tabla"> <tr> <td><b>Desde qué año se inicia el directorio:</b><br/> El directorio histórico comenzará en dicho año e incluirá entradas hasta el <?php echo $para_ano; ?> . <?php if ($defano == 2006) { echo "<br/>La publicación de esta información se realiza a partir del año 2006 conforme al Instructivo Presidencial N° 008 (04/12/2006) sobre Transparencia Activa."; } ?> </td> <td valign="top"> <select name="desde_ano"> <?php for ($i = 2006; $i <= $para_ano; $i++) { echo " <option value='{$i}' " . ($i == $defano ? "selected" : "") . ">Año {$i}</option>\n"; } ?> </select> </td> </tr> <tr> <?php if (isset($_SESSION[$sv])) { echo " <th align='left'> (Este directorio histórico ya ha sido generado)</th>"; } else { echo " <td> </td>"; } ?> <td><input type="submit" value="Siguiente paso" /> </td> </tr> </table><br/> </form> <?php if ($boton == 1) { echo html_button($_SESSION['back']); } }
<tr> <td colspan="5"> </td> <!-- Update Button --> <td colspan="3"> <input type="hidden" name="buglist" value="<?php echo $t_hidden_bug_list; ?> " /> <input type="submit" class="button" value="<?php echo lang_get('update_sponsorship_button'); ?> " /> </td> </tr> </table> </form> </div> <?php } # end sponsored issues ?> <br /> <div> <?php html_button('account_sponsor_page.php', lang_get($t_show_all ? 'sponsor_hide' : 'sponsor_show'), array('show_all' => $t_show_all ? 0 : 1)); ?> </div> <?php html_page_bottom();
<?php echo html_input('hidden', 'contact_id', $contact['id']); ?> <?php echo html_csrf_token(); ?> <div class="editor"> <?php echo html_editor('content'); ?> </div> <div class="buttons"> <span id="error_wrap"></span> <span class="ctrenter_hint">ctrl+enter</span> <?php echo html_button(LANG_SEND, 'send', 'icms.messages.send()'); ?> </div> </form> <?php } } } ?> </div> </div> <?php }
} else { $t_email_data = email_queue_get((int) $f_to); // check if email was found. This can fail if another request picks up the email first and sends it. echo 'Sending email...<br />'; if ($t_email_data !== false) { if (!email_send($t_email_data)) { echo 'Email Not Sent - Deleting from queue<br />'; email_queue_delete($t_email_data->email_id); } else { echo 'Email Sent<br />'; } } else { echo 'Email not found in queue<br />'; } } } } $t_ids = email_queue_get_ids(); if (count($t_ids) > 0) { echo '<table><tr><th>' . lang_get('id') . '</th><th>' . lang_get('email') . '</th><th>' . lang_get('timestamp') . '</th><th>Send Or Delete</th></tr>'; foreach ($t_ids as $t_id) { $row = email_queue_get($t_id); echo '<tr><td>' . $row->email_id . '</td><td>' . $row->email . '</td><td>' . date(config_get('complete_date_format'), $row->submitted) . '</td><td>', html_button('email_queue.php', 'Send Or Delete', array('send' => $row->email_id)), '</td></tr>'; } echo '</table>'; html_button('email_queue.php', 'Send All', array('send' => 'all')); html_button('email_queue.php', 'Send Or Delete All', array('send' => 'sendordelall')); } else { echo 'Email Queue Empty'; } html_page_bottom();
function html_button_wiki($p_bug_id) { if (ON == config_get('wiki_enable')) { if (access_has_bug_level(config_get('update_bug_threshold'), $p_bug_id)) { html_button('wiki.php', lang_get_defaulted('Wiki'), array('id' => $p_bug_id, 'type' => 'issue'), 'get'); } } }
echo html_input('text', 'author_email', $email); ?> </div> </div> <?php } ?> <?php echo $user->is_logged ? html_editor('content') : html_textarea('content'); ?> <div class="buttons"> <?php echo html_button(LANG_PREVIEW, 'preview', 'icms.comments.preview()'); ?> <?php echo html_button(LANG_SEND, 'submit', 'icms.comments.submit()'); ?> </div> <div class="loading"> <?php echo LANG_LOADING; ?> </div> </form> <?php } else { ?> <p><?php printf(LANG_COMMENTS_LOW_KARMA, cmsUser::getPermissionValue('comments', 'karma')); ?> </p>
<style> * { font-family: sans-serif; font-size: 14px; } #image_preview { padding:15px; } #image_preview .button { margin-bottom: 5px; } #image_preview .image img { width:100%; } </style> <div id="image_preview"> <div class="button"> <?php echo html_button(LANG_CANCEL, "cancel", "cancel()"); ?> </div> <div class="image"> <img src="<?php echo $url; ?> "> </div> </div> <script> parent.fileclick('<?php echo $url; ?> '); function cancel(){ parent.fileclick(''); window.location.href = '<?php echo $this->href_to('upload');
?> <?php echo html_input('hidden', 'pt', $profile_type); ?> <?php echo html_input('hidden', 'pi', $profile_id); ?> <?php echo html_editor('content'); ?> <div class="buttons"> <?php echo html_button(LANG_PREVIEW, 'preview', 'icms.wall.preview()'); ?> <?php echo html_button(LANG_SEND, 'submit', 'icms.wall.submit()'); ?> </div> <div class="loading"> <?php echo LANG_LOADING; ?> </div> </form> </div> <div id="entries_list"> <?php if (!$entries) { ?>
?> </div> <div class="content"><?php echo $notice['content']; ?> </div> <?php if ($notice['actions']) { ?> <div class="buttons"> <?php foreach ($notice['actions'] as $name => $action) { ?> <?php echo html_button($action['title'], $name, "icms.messages.noticeAction({$notice['id']}, '{$name}')", array('class' => 'button-small')); ?> <?php } ?> </div> <?php } ?> </div> <?php } ?>
<?php require_once "common-histo.php"; $_SESSION['back'] = "personal_historico.php"; html_header("Directorio Histórico de Dotación de Personal"); echo acentosHTML("\nEsta funcionalidad le permitirá construir el\ndirectorio histórico de dotación de personal\nde su Organismo.\n<br/><br/>"); echo "<h2>Dotación de Planta</h2>"; formHistorico("planta_historico.html", "Directorio Anual de Dotación de Planta", "Este directorio organiza la dotación de personal de planta por año.", array("Dotación de personal de planta" => "per_planta.html"), "", "", "", array(), "planta_historico", 2006, 0); echo "<h2>Dotación a Contrata</h2>"; formHistorico("contrata_historico.html", "Directorio Anual de Dotación a Contrata", "Este directorio organiza la dotación de personal a contrata por año.", array("Dotación de personal a contrata" => "per_contrata.html"), "", "", "", array(), "contrata_historico", 2006, 0); echo "<h2>Dotación a Honorarios</h2>"; formHistorico("honorarios_historico.html", "Directorio Anual de Dotación a Honorarios", "Este directorio organiza la dotación de personal a honorarios por año.", array("Dotación de personal a honorarios" => "per_honorarios.html"), "", "", "", array(), "honorarios_historico", 2006, 0); echo "<h2>Otras Contrataciones sujetas al Código del Trabajo</h2>"; formHistorico("codtrabajo_historico.html", "Directorio Anual de Otras Contrataciones sujetas al Código del Trabajo", "Este directorio organiza las demás contrataciones sujetas al Código del Trabajo, por año.", array("Otras contrataciones sujetas al Código del Trabajo" => "per_otros.html"), "", "", "", array(), "codtrabajo_historico", 2009, 0); echo html_button("main.php"); html_footer();
<?php $this->addBreadcrumb(LANG_USERS_CFG_FIELDS); $this->addToolButton(array('class' => 'add', 'title' => LANG_CP_FIELD_ADD, 'href' => $this->href_to('fields_add'))); $this->addToolButton(array('class' => 'save', 'title' => LANG_SAVE, 'href' => null, 'onclick' => "icms.datagrid.submit('{$this->href_to('fields_reorder')}')")); $this->addToolButton(array('class' => 'help', 'title' => LANG_HELP, 'target' => '_blank', 'href' => LANG_HELP_URL_COM_USERS)); ?> <?php $this->renderGrid($this->href_to('fields_ajax'), $grid); ?> <div class="buttons"> <?php echo html_button(LANG_SAVE_ORDER, 'save_button', "icms.datagrid.submit('{$this->href_to('fields_reorder')}')"); ?> </div>
} else { unset($_SESSION['url_ministro_patrimonio']); } if (!ereg("^ *\$", $_POST['url_subsecretario_intereses'])) { $_SESSION['url_subsecretario_intereses'] = $_POST['url_subsecretario_intereses']; $txt = "<li>Intereses del Subsecretario(a)</li>"; } else { unset($_SESSION['url_subsecretario_intereses']); } if (!ereg("^ *\$", $_POST['url_subsecretario_patrimonio'])) { $_SESSION['url_subsecretario_patrimonio'] = $_POST['url_subsecretario_patrimonio']; $txt = "{$txt}<li>Patrimonio del Subsecretario(a)</li>"; } else { unset($_SESSION['url_subsecretario_patrimonio']); } html_header("Sitios externos (actualizado)"); ?> Los enlaces han sido actualizados. <ul> <?php echo $txt; ?> </ul><br/> <?php echo html_button($_SESSION['back']); ?> <?php html_footer();
if (!isset($_POST['custid'])) { $_POST['custid'] = 0; } if (!isset($_POST['price'])) { $_POST['price'] = ''; } if (!isset($_POST['content'])) { $_POST['content'] = ''; } if (!isset($_POST['notes'])) { $_POST['notes'] = ''; } customer_select("Customer *", "custid", $_POST['custid'], 0, 'required'); html_textarea("Quote Description *", "content", $_POST['content'], "body", 'required'); html_text("Price *", "price", $_POST['price'], 'required'); html_textarea("Internal Notes (not seen by Customer)", "notes", $_POST['notes'], "notes"); ?> </fieldset> <fieldset class="buttons"> <?php html_button("Save Quote"); ?> </fieldset> </form> <br> <br> <?php include "../tmpl/footer.php";
<label id="is_childs"> <?php echo html_checkbox('is_childs', true); ?> <?php echo LANG_CP_PROPS_BIND_RECURSIVE; ?> </label> </div> </form> <div style="display:none"> <?php echo html_select('props_list', array_collection_to_list($props, 'id', 'title')); ?> </div> <?php } ?> <div class="buttons"> <?php echo html_button(LANG_SAVE_ORDER, 'save_button', "icms.datagrid.submit('{$this->href_to('ctypes', array('props_reorder', $ctype['name']))}')"); ?> </div> </td> </tr> </table> <?php }
function custom_function_override_print_bug_view_page_custom_buttons($p_bug_id) { # Zuerst die lokalierten Buttontexte auslesen if (lang_get_current() === 'german') { $t_bfe_clone_issue_button = 'Klon in anderes Projekt...'; $t_bfe_edit_failure_class_button = 'Fehlerklasse bearbeiten...'; } else { $t_bfe_clone_issue_button = 'Clone To Other Project...'; $t_bfe_edit_failure_class_button = 'Edit Failure Class...'; } # Wenn Zugriff mindestens onsite developer, dann darf er Issues klonen if (access_has_project_level(50)) { echo '<td>'; html_button_bug_clone_to_project($p_bug_id, $t_bfe_clone_issue_button); echo '</td>'; } # Wenn Zugriff ändern von Fehlerklasse erlaubt, dann darf er sie ändern # Aber nur bis Status 'bestätigt' (40=confirmed) # Und nur für QS-Reporter (30) und ab Entwickler vor Ort (50) aufwärts if (custom_field_has_write_access(1, $p_bug_id)) { if (bug_get_field($p_bug_id, 'status') < 40) { if (access_compare_level(access_get_project_level(), array(30, 50, 55, 70, 90))) { echo '<td>'; $t_bfe_bugs[] = $p_bug_id; $t_src = relationship_get_all_src($p_bug_id); $t_src_count = count($t_src); $t_dest = relationship_get_all_dest($p_bug_id); $t_dest_count = count($t_dest); if ($t_src_count || $t_dest_count) { # Zunächst die Destination Bug IDs for ($x = 0; $x < $t_src_count; $x++) { $t_thisbugid = $t_src[$x]->dest_bug_id; if (access_has_bug_level(50, $t_thisbugid)) { $t_bfe_bugs[] = $t_thisbugid; } } # und jetzt die Source Bug IDs for ($y = 0; $y < $t_dest_count; $y++) { $t_thisbugid = $t_dest[$y]->src_bug_id; if (access_has_bug_level(50, $t_thisbugid)) { $t_bfe_bugs[] = $t_thisbugid; } } } if (count($t_bfe_bugs) > 1) { bfe_fehlerklasse_button('bug_actiongroup_page.php', $t_bfe_edit_failure_class_button, $t_bfe_bugs); } else { html_button('bug_actiongroup_page.php', $t_bfe_edit_failure_class_button, array('bug_arr[]' => $p_bug_id, 'action' => 'custom_field_1')); } echo '</td>'; } } } }
<tr> <td>Oficio Ordinario N° 487 del Ministerio Secretaría General de la Presidencia, del 04 de abril de 2012, que entrega instrucciones para la implementación de la Instrucción General N° 10 del Consejo Para la Transparencia.</td> <td><a target="_NEW" href="oficios/oficio_487.pdf">Descargar documento</a></td> </tr> <tr> <td>Instrucción General N°11 sobre Transparencia Activa, que introduce modificaciones a las Instrucciones Generales N° 4, 7 y 9, y fija un texto refundido, coordinado y sistematizado</td> <td><a target="_NEW" href="http://www.consejotransparencia.cl/consejo/site/artic/20121219/asocfile/20121219205010/instrucci__n_general__n___11_ta.pdf">Descargar documento</a></td> </tr> <tr> <td>Ley N° 20.730 del Ministerio Secretaría General de la Presidencia, del 3 de marzo de 2014, que regula el Lobby y las gestiones que representen intereses particulares ante las autoridades y funcionarios.</td> <td><a target="_NEW" href="http://bcn.cl/1m5hl">Descargar documento</a></td> </tr> <tr> <td> Reglamento de la ley N° 20.730 que regula el Lobby y las gestiones que representen intereses particulares ante las autoridades y funcionarios de la Administración del Estado, del 28 de agosto de 2014.</td> <td><a target="_NEW" href="http://bcn.cl/1n1dc">Descargar documento</a></td> </tr> </table> <br/> <?php echo html_button('javascript:history.back();'); ?> <?php html_footer();
?> <?php $hooks_html = cmsEventsManager::hookAll($attributes['hook']['event'], $param); ?> <?php if ($hooks_html) { echo html_each($hooks_html); } ?> <?php } ?> <?php echo $append_html; ?> <div class="buttons"> <?php echo html_submit($submit['title']); ?> <?php if ($cancel['show']) { echo html_button($cancel['title'], 'cancel', "location.href='{$cancel['href']}'"); } ?> </div> </form>
<fieldset> <?php html_text("First Name", "fname", $r->fname, 'required'); html_text("Surname", "sname", $r->sname); html_text("Company Name", "co_name", $r->co_name); customer_select("Customer", "custid", $r->custid); supplier_select("Supplier", "suppid", $r->suppid); html_text("Role", "role", $r->role); html_textarea("Notes", "notes", $r->notes, "notes"); include "/srv/athenace/lib/shared/adds.edit.form.php"; ?> </fieldset> <fieldset class="buttons"> <?php html_button("Save changes"); ?> or <a href="/contacts/" class="cancel" title="Cancel">Cancel</a> </fieldset> </form> <?php include "../tmpl/footer.php";
echo $this->href_to('menu', array('tree_ajax')); ?> ", data: { id: node.data.key } }); } }); }); </script> </td> <td class="main" valign="top"> <?php $this->renderGrid($this->href_to('menu', array('items_ajax', 1, 0)), $grid); ?> <div class="buttons"> <?php echo html_button(LANG_SAVE_ORDER, 'save_button', "icms.datagrid.submit('{$this->href_to('menu', array('items_reorder'))}')"); ?> </div> </td> </tr> </table>
function print_project_user_list($p_user_id, $p_include_remove_link = true) { $t_mantis_project_user_list_table = db_get_table('mantis_project_user_list_table'); $t_mantis_project_table = db_get_table('mantis_project_table'); $c_user_id = db_prepare_int($p_user_id); $query = "SELECT DISTINCT p.id, p.name, p.view_state, u.access_level\n\t\t\t\tFROM {$t_mantis_project_table} p\n\t\t\t\tLEFT JOIN {$t_mantis_project_user_list_table} u\n\t\t\t\tON p.id=u.project_id\n\t\t\t\tWHERE p.enabled = '1' AND\n\t\t\t\t\tu.user_id=" . db_param() . "\n\t\t\t\tORDER BY p.name"; $result = db_query_bound($query, array($c_user_id)); $category_count = db_num_rows($result); for ($i = 0; $i < $category_count; $i++) { $row = db_fetch_array($result); $t_project_id = $row['id']; $t_project_name = string_attribute($row['name']); $t_view_state = $row['view_state']; $t_access_level = $row['access_level']; $t_access_level = get_enum_element('access_levels', $t_access_level); $t_view_state = get_enum_element('project_view_state', $t_view_state); echo $t_project_name . ' [' . $t_access_level . '] (' . $t_view_state . ')'; if ($p_include_remove_link && access_has_project_level(config_get('project_user_threshold'), $t_project_id)) { html_button('manage_user_proj_delete.php', lang_get('remove_link'), array('project_id' => $t_project_id, 'user_id' => $p_user_id)); } echo '<br />'; } }
?> <?php echo html_input('hidden', 'pi', $profile_id); ?> <?php echo html_editor('content'); ?> <div class="buttons"> <?php echo html_button(LANG_PREVIEW, 'preview', 'icms.wall.preview()'); ?> <?php echo html_button(LANG_SEND, 'submit', 'icms.wall.submit()'); ?> <?php echo html_button(LANG_CANCEL, 'cancel', 'icms.wall.restoreForm()', array('class' => 'button-cancel')); ?> </div> <div class="loading"> <?php echo LANG_LOADING; ?> </div> </form> </div> <div id="entries_list"> <?php if (!$entries) { ?>
function print_project_user_list($p_user_id, $p_include_remove_link = true) { $t_projects = user_get_assigned_projects($p_user_id); foreach ($t_projects as $t_project_id => $t_project) { $t_project_name = string_attribute($t_project['name']); $t_view_state = $t_project['view_state']; $t_access_level = $t_project['access_level']; $t_access_level = get_enum_element('access_levels', $t_access_level); $t_view_state = get_enum_element('project_view_state', $t_view_state); echo $t_project_name . ' [' . $t_access_level . '] (' . $t_view_state . ')'; if ($p_include_remove_link && access_has_project_level(config_get('project_user_threshold'), $t_project_id)) { html_button('manage_user_proj_delete.php', lang_get('remove_link'), array('project_id' => $t_project_id, 'user_id' => $p_user_id)); } echo '<br />'; } }
<h3><?php echo LANG_GROUPS_ADD_STAFF; ?> </h3> <div class="hint"><?php echo LANG_GROUPS_ADD_STAFF_HINT; ?> </div> <div class="field"> <?php echo html_input('text', 'username', '', array('id' => 'staff-username', 'autocomplete' => 'off')); ?> <?php echo html_button(LANG_ADD, 'add', 'icms.groups.addStaff()', array('id' => 'staff-submit', 'disabled' => 'disabled')); ?> <div class="loading-icon" style="display:none"></div> </div> </div> <script> <?php $list = array(); if (is_array($members)) { foreach ($members as $member) { $list[] = $member['email']; } }
$t_custom_ids = custom_field_get_ids(); foreach ($t_custom_ids as $t_id) { printf("<OPTION VALUE=\"%d\">%s", $t_id, custom_field_get_field($t_id, 'name')); } ?> </SELECT> to <SELECT name="dest_id"> <?php # @@@ should be expanded and configurable # list matches exact field name from database $t_dest_ids = array('fixed_in_version'); foreach ($t_dest_ids as $t_id) { printf("<OPTION VALUE=\"%s\">%s", $t_id, $t_id); } ?> </SELECT> <input type="submit" class="button" value="Copy" > </form> </center></td></tr> <!-- Database Statistics --> <tr bgcolor="#ffffff"><td>Show database statistics.</td><td><center> <?php html_button('db_stats.php', 'Display', array()); ?> </center></td></tr> </table> </body> </html>
$sqltext = "SELECT customer.co_name,addsid,price,\ninvoices.invoicesid,invoices.incept as invincept,content\nFROM customer,invoices\nWHERE invoices.custid=customer.custid\nAND invoices.invoicesid=?"; // print $sqltext; $q = $db->select($sqltext, array($_GET['id']), 'i'); if (!empty($q)) { $r = $q[0]; } else { header("Location: /jobs/"); exit; } $adds = getAddress($r->addsid); $url = base64_encode("/mail/invoice.php?id=" . $_GET['id']); ?> <form role="form" action="/mail/send_owl" method="post" enctype="multipart/form-data" style="display: inline;"><?php html_button("Email This Quote to " . $r->co_name); ?> <input type="hidden" name=url value="<?php echo $url; ?> "> </form> <h1> View Invoice <?php echo $r->invoicesid; ?> </h1> <div>