function tpl_content() { global $page, $webimroot; ?> <?php echo getlocal("page.preview.intro"); ?> <br /> <br /> <form name="preview" method="get" action="<?php echo $webimroot; ?> /operator/themes.php"> <div> <?php print_tabbar(); ?> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <div class="fieldForm"> <div class="field"> <div class="flabel"><?php echo getlocal("page.preview.choose"); ?> </div> <div class="fvaluenodesc"> <select name="preview" onchange="this.form.submit();"><?php foreach ($page['availablePreviews'] as $k) { echo "<option value=\"" . $k . "\"" . ($k == form_value("preview") ? " selected=\"selected\"" : "") . ">" . $k . "</option>"; } ?> </select> </div> </div> <div class="field"> <div class="flabel"><?php echo getlocal("page.preview.choosetpl"); ?> </div> <div class="fvaluenodesc"> <select name="template" onchange="this.form.submit();"><?php foreach ($page['availableTemplates'] as $k) { echo "<option value=\"" . $k . "\"" . ($k == form_value("template") ? " selected=\"selected\"" : "") . ">" . $k . "</option>"; } ?> </select> </div> </div> <?php if ($page['canshowerrors']) { ?> <div class="field"> <div class="flabel"><?php echo getlocal("page.preview.showerr"); ?> </div> <div class="fvaluenodesc"> <input type="checkbox" name="showerr" value="on"<?php echo form_value_cb('showerr') ? " checked=\"checked\"" : ""; ?> onchange="this.form.submit();"/> </div> </div> <?php } foreach ($page['previewList'] as $pp) { ?> <div class="field"> <div class="flabel"> <?php echo htmlspecialchars($pp['label']); ?> <a href="<?php echo $page['showlink']; echo $pp['id']; ?> " target="_blank" title="in separate window" onclick="this.newWindow = window.open('<?php echo $page['showlink']; echo $pp['id']; ?> ', '<?php echo $pp['id']; ?> ', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=<?php echo $pp['w']; ?> ,height=<?php echo $pp['h']; ?> ,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;">link</a> </div> <div class="fvalueframe"> <iframe id="sample<?php echo $pp['id']; ?> " width="<?php echo $pp['w']; ?> " height="<?php echo $pp['h']; ?> " src="<?php echo $page['showlink']; echo $pp['id']; ?> " frameborder="0" scrolling="no"> No iframes </iframe> </div> </div> <?php } ?> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> </form> <?php }
function tpl_content() { global $page, $webimroot; ?> <?php echo getlocal("page.translate.descr"); ?> <br /> <br /> <form name="translateForm" method="get" action="<?php echo $webimroot; ?> /operator/translate.php"> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <div class="packedFormField"> <?php echo getlocal("translate.direction"); ?> <br/> <select name="source" onchange="this.form.submit();"><?php foreach ($page['availableLocales'] as $k) { echo "<option value=\"" . $k["id"] . "\"" . ($k["id"] == form_value("source") ? " selected=\"selected\"" : "") . ">" . $k["name"] . "</option>"; } ?> </select> => <select name="target" onchange="this.form.submit();"><?php foreach ($page['availableLocales'] as $k) { echo "<option value=\"" . $k["id"] . "\"" . ($k["id"] == form_value("target") ? " selected=\"selected\"" : "") . ">" . $k["name"] . "</option>"; } ?> </select> </div> <div class="packedFormField"> <?php echo getlocal("translate.sort"); ?> <br/> <select name="sort" onchange="this.form.submit();"><?php foreach ($page['availableOrders'] as $k) { echo "<option value=\"" . $k["id"] . "\"" . ($k["id"] == form_value("sort") ? " selected=\"selected\"" : "") . ">" . $k["name"] . "</option>"; } ?> </select> </div> <div class="packedFormField"> <?php echo getlocal("translate.show"); ?> <br/> <select name="show" onchange="this.form.submit();"><?php foreach ($page['showOptions'] as $k) { echo "<option value=\"" . $k["id"] . "\"" . ($k["id"] == form_value("show") ? " selected=\"selected\"" : "") . ">" . $k["name"] . "</option>"; } ?> </select> </div> <br clear="all"/> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </form> <br/> <?php if ($page['pagination']) { if ($page['pagination.items']) { echo generate_pagination($page['pagination'], false); } ?> <table class="translate"> <thead> <tr class="header"><th> Key </th><th> <?php echo topage($page['title1']); ?> </th><th> <?php echo topage($page['title2']); ?> </th></tr> </thead> <tbody> <?php if ($page['pagination.items']) { foreach ($page['pagination.items'] as $localstr) { ?> <tr> <td> <a href="<?php echo $webimroot; ?> /operator/translate.php?source=<?php echo $page['lang1']; ?> &target=<?php echo $page['lang2']; ?> &key=<?php echo $localstr['id']; ?> " target="_blank" onclick="this.newWindow = window.open('<?php echo $webimroot; ?> /operator/translate.php?source=<?php echo $page['lang1']; ?> &target=<?php echo $page['lang2']; ?> &key=<?php echo $localstr['id']; ?> ', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php echo topage($localstr['id']); ?> </a> </td> <td> <?php echo topage($localstr['l1']); ?> </td> <td> <?php echo topage($localstr['l2']); ?> </td> </tr> <?php } } else { ?> <tr> <td colspan="3"> <?php echo getlocal("tag.pagination.no_items"); ?> </td> </tr> <?php } ?> </tbody> </table> <?php if ($page['pagination.items']) { echo "<br/>"; echo generate_pagination($page['pagination']); } } ?> <?php }
</div> <div class="row"> <input type="text" name="txtConfirmEmail" size="50" value="<?php echo form_value('txtConfirmEmail'); ?> " placeholder="<?php echo _t('Re-type your email *'); ?> " /> </div> <div class="row"> <textarea name="txaComment" rows="7" cols="60" placeholder="<?php echo _t('Enter comment *'); ?> "><?php echo form_value('txaComment'); ?> </textarea> </div> <div class="row"> <input type="submit" name="btnSubmit" value="<?php echo _t('Post Comment'); ?> " class="button green" /> </div> </div> <?php form_token(); ?> </form> <?php
function form_input($type, $name, $values = array(), array $errors = array(), array $attributes = array(), $class = '') { $class .= error_class($errors, $name); $html = '<input type="' . $type . '" name="' . $name . '" id="form-' . $name . '" ' . form_value($values, $name) . ' class="' . $class . '" '; $html .= implode(' ', $attributes) . '/>'; if (in_array('required', $attributes)) { $html .= '<span class="form-required">*</span>'; } $html .= error_list($errors, $name); return $html; }
function tpl_content() { global $page, $webimroot, $errors; ?> <?php echo getlocal("page.notifications.intro"); ?> <br /> <br /> <?php require_once 'inc_errors.php'; ?> <form name="notifyFilterForm" method="get" action="<?php echo $webimroot; ?> /operator/notifications.php"> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <div class="packedFormField"> <?php echo getlocal("notifications.kind"); ?> <br/> <select name="kind" onchange="this.form.submit();"><?php foreach ($page['allkinds'] as $k) { echo "<option value=\"" . $k . "\"" . ($k == form_value("kind") ? " selected=\"selected\"" : "") . ">" . getlocal("notifications.kind." . ($k ? $k : "all")) . "</option>"; } ?> </select> </div> <div class="packedFormField"> <?php echo getlocal("notifications.locale"); ?> <br/> <select name="lang" onchange="this.form.submit();"><?php foreach ($page['locales'] as $k) { echo "<option value=\"" . $k["id"] . "\"" . ($k["id"] == form_value("lang") ? " selected=\"selected\"" : "") . ">" . $k["name"] . "</option>"; } ?> </select> </div> <br clear="all"/> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </form> <br/> <?php if ($page['pagination']) { ?> <table class="list"> <thead> <tr class="header"> <th> <?php echo getlocal("notifications.head.to"); ?> </th><th> <?php echo getlocal("notifications.head.subj"); ?> </th><th> <?php echo getlocal("notifications.head.msg"); ?> </th><th> <?php echo getlocal("notifications.head.time"); ?> </th> </tr> </thead> <tbody> <?php if ($page['pagination.items']) { foreach ($page['pagination.items'] as $b) { ?> <tr> <td class="notlast"> <a href="<?php echo $webimroot; ?> /operator/notification.php?id=<?php echo $b['id']; ?> " target="_blank" onclick="this.newWindow = window.open('<?php echo $webimroot; ?> /operator/notification.php?id=<?php echo $b['id']; ?> ', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=720,height=520,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;" class="<?php echo $b['vckind'] == 'xmpp' ? 'xmpp' : 'mail'; ?> "> <?php echo htmlspecialchars(shorten(topage($b['vcto']), 30)); ?> </a> </td> <td class="notlast"> <?php echo htmlspecialchars(shorten(topage($b['vcsubject']), 30)); ?> </td> <td class="notlast"> <?php echo htmlspecialchars(shorten(topage($b['tmessage']), 30)); ?> </td> <td> <?php echo date_to_text($b['created']); ?> </td> </tr> <?php } } else { ?> <tr> <td colspan="4"> <?php echo getlocal("tag.pagination.no_items.elements"); ?> </td> </tr> <?php } ?> </tbody> </table> <?php if ($page['pagination.items']) { echo "<br/>"; echo generate_pagination($page['pagination']); } } ?> <?php }
function tpl_content() { global $page, $mibewroot, $errors; ?> <?php if ($page['saved']) { ?> <?php echo getlocal2("page_ban.sent", array(safe_htmlspecialchars($page['address']))); ?> <script type="text/javascript"><!-- setTimeout( (function() { window.close(); }), 1500 ); //--></script> <?php } else { ?> <?php echo getlocal("page_ban.intro"); ?> <br/> <br/> <?php require_once 'inc_errors.php'; ?> <?php if ($page['thread']) { ?> <?php echo getlocal2("page_ban.thread", array(safe_htmlspecialchars($page['thread']))); ?> <br/> <br/> <?php } ?> <form name="banForm" method="post" action="<?php echo $mibewroot; ?> /operator/ban.php"> <?php print_csrf_token_input(); ?> <input type="hidden" name="banId" value="<?php echo safe_htmlspecialchars($page['banId']); ?> "/> <?php if ($page['threadid']) { ?> <input type="hidden" name="threadid" value="<?php echo safe_htmlspecialchars($page['threadid']); ?> "/> <?php } ?> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <div class="fieldForm"> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.address'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="address" size="40" value="<?php echo form_value('address'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.address.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.ban_days'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="days" size="4" value="<?php echo form_value('days'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.ban_days.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.ban_comment'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="comment" size="40" value="<?php echo form_value('comment'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.ban_comment.description'); ?> </div> <br clear="all"/> </div> <div class="fbutton"> <input type="image" name="save" value="" src="<?php echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.save")); ?> " alt="<?php echo safe_htmlspecialchars(getlocal("button.save")); ?> "/> </div> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> <div class="asterisk"> <?php echo getlocal("common.asterisk_explanation"); ?> </div> </form> <?php } ?> <?php }
function tpl_content() { global $page, $mibewroot, $errors; ?> <?php if ($page['saved']) { ?> <?php echo getlocal("page.translate.done"); ?> <script type="text/javascript"><!-- if(window.opener && window.opener.location) { window.opener.location.reload(); } setTimeout( (function() { window.close(); }), 500 ); //--></script> <?php } if (!$page['saved']) { ?> <?php echo getlocal("page.translate.one"); ?> <br/> <br/> <?php require_once 'inc_errors.php'; ?> <form name="translateForm" method="post" action="<?php echo $mibewroot; ?> /operator/translate.php"> <?php print_csrf_token_input(); ?> <input type="hidden" name="key" value="<?php echo safe_htmlspecialchars($page['key']); ?> "/> <input type="hidden" name="target" value="<?php echo safe_htmlspecialchars($page['target']); ?> "/> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <div class="fieldForm"> <div class="field"> <div class="flabel"><?php echo safe_htmlspecialchars($page['title1']); ?> </div> <div class="fvaluenodesc"> <textarea name="original" disabled="disabled" cols="20" rows="5" class="wide"><?php echo form_value('original'); ?> </textarea> </div> </div> <div class="field"> <div class="flabel"><?php echo safe_htmlspecialchars($page['title2']); ?> </div> <div class="fvaluenodesc"> <textarea name="translation" cols="20" rows="5" class="wide"><?php echo form_value('translation'); ?> </textarea> </div> </div> <div class="fbutton"> <input type="image" name="save" value="" src="<?php echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.save")); ?> " alt="<?php echo safe_htmlspecialchars(getlocal("button.save")); ?> "/> </div> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </form> <?php } ?> <?php }
function tpl_content() { global $page, $webimroot, $errors; ?> <?php if ($page['saved']) { ?> <?php echo getlocal("cannededit.done"); ?> <script><!-- if(window.opener && window.opener.location) { window.opener.location.reload(); } setTimeout( (function() { window.close(); }), 500 ); //--></script> <?php } if (!$page['saved']) { ?> <?php echo $page['key'] ? getlocal("cannededit.descr") : getlocal("cannednew.descr"); ?> <br/> <br/> <?php require_once 'inc_errors.php'; ?> <form name="cannedForm" method="post" action="<?php echo $webimroot; ?> /operator/cannededit.php"> <?php print_csrf_token_input(); ?> <input type="hidden" name="key" value="<?php echo $page['key']; ?> "/> <?php if (!$page['key']) { ?> <input type="hidden" name="lang" value="<?php echo $page['locale']; ?> "/> <input type="hidden" name="group" value="<?php echo $page['groupid']; ?> "/> <?php } ?> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <div class="fieldForm"> <div class="field"> <div class="flabel"><?php echo getlocal("cannededit.message"); ?> </div> <div class="fvaluenodesc"> <textarea name="message" cols="20" rows="5" class="wide"><?php echo form_value('message'); ?> </textarea> </div> </div> <div class="fbutton"> <input type="image" name="save" value="" src='<?php echo $webimroot . getlocal("image.button.save"); ?> ' alt='<?php echo getlocal("button.save"); ?> '/> </div> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </form> <?php } ?> <?php }
function tpl_content() { global $page, $webimroot, $errors; ?> <?php echo getlocal("page_avatar.intro"); ?> <br /> <br /> <?php require_once 'inc_errors.php'; ?> <form name="avatarForm" method="post" action="<?php echo $webimroot; ?> /operator/avatar.php" enctype="multipart/form-data"> <input type="hidden" name="op" value="<?php echo $page['opid']; ?> "/> <div> <?php print_tabbar(); ?> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <p> <b><?php echo $page['currentop']; ?> ‎</b> </p> <div class="fieldForm"> <?php if ($page['avatar']) { ?> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.avatar.current'); ?> </div> <div class="fvalue"> <img src="<?php echo $page['avatar']; ?> " alt="cannot load avatar"/><br/> <?php if ($page['canmodify']) { ?> <a class="formauth" href='<?php echo $webimroot; ?> /operator/avatar.php?op=<?php echo $page['opid']; ?> &delete=true'> <?php echo getlocal("page_agent.clear_avatar"); ?> </a> <?php } ?> </div> <div class="fdescr"> — <?php echo getlocal('form.field.avatar.current.description'); ?> </div> <br clear="all"/> </div> <?php } else { if (!$page['canmodify']) { ?> <div class="field"> <div class="fvaluenodesc"> No avatar </div> </div> <?php } } ?> <?php if ($page['canmodify']) { ?> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.avatar.upload'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="file" name="avatarFile" size="40" value="<?php echo form_value('avatarFile'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.avatar.upload.description'); ?> </div> <br clear="all"/> </div> <div class="fbutton"> <input type="image" name="save" value="" src='<?php echo $webimroot . getlocal("image.button.save"); ?> ' alt='<?php echo getlocal("button.save"); ?> '/> </div> <?php } ?> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> <div class="asterisk"> <?php echo getlocal("common.asterisk_explanation"); ?> </div> </form> <?php }
<p> <input type="text" class="span12" name="blog[subject]" id="input_subject" placeholder="제목*" value="<?php echo h(form_value($this, 'blog', 'subject')); ?> "> </p> <p> <textarea class="span12" rows="10" name="blog[content]" id="input_contents" placeholder="내용*"><?php echo h(form_value($this, 'blog', 'content')); ?> </textarea> </p>
function checkbox_checked($data, $key, $value, $default = '') { $v = form_value($data, $key, $default); return $value == $v ? 'checked' : ''; }
<?php echo form_input(array('class' => 'form-control', 'name' => 'country', 'value' => form_value('country', $user))); ?> </div> <div class="clearfix"></div> </div> <br /> <div class="field-row row-fluid"> <div class="col-md-4"> <?php echo form_label(__('Phone', true), 'phone'); ?> </div> <div class="col-md-8"> <?php echo form_input(array('class' => 'form-control', 'name' => 'phone', 'autocomplete' => 'off', 'value' => form_value('phone', $user))); ?> </div> <div class="clearfix"></div> </div> </div> </div> </div> </div> </div> <div class="panel-footer"> <div class="col-md-12 text-right"> <?php echo isset($user->id) ? form_hidden('id', $user->id) : ''; ?>
</div> </div> <div class="control-group"> <label class="control-label" for="input_repassword"><i class="icon-check"></i> 비밀번호 확인</label> <div class="controls"> <input type="password" name="user[repassword]" id="input_repassword" placeholder="비밀번호 확인" value="<?php echo form_value($this, 'user', 'repassword'); ?> "> </div> </div> <div class="control-group"> <label class="control-label" for="input_nickname"><i class="icon-check"></i> 별명</label> <div class="controls"> <input type="text" name="user[nickname]" id="input_nickname" placeholder="별명" value="<?php echo form_value($this, 'user', 'nickname'); ?> "> </div> </div> <script type="text/javascript"> function make_nickname() { $('#input_nickname').val($('#input_email').val().split('@')[0]); } $(function() { $('#input_email').keyup(function() { $('#input_nickname').val($('#input_email').val().split('@')[0]); }) $('#input_email').blur(function() {
?> </div> <div class="clearfix"></div> </div> </div> </div> </div> </div> </div> <div class="panel-footer"> <div class="col-md-12 text-right"> <?php echo isset($user->id) ? form_hidden('id', $user->id) : ''; ?> <a href="<?php _u('admin/users/index/' . form_value('gid', $user)); ?> " class="btn btn-default"> <i class="fa fa-arrow-circle-left"></i> <?php __('Cancel'); ?> </a> <button type="submit" class="btn btn-primary"> <i class="fa fa-save"></i> <?php __('Save'); ?> </button> </div> <div class="clearfix"></div>
<section> <div class="page-header"> <h3>비밀번호 찾기</h3> </div> <div class="alert"> 이메일 주소를 입력하시면 임시 비밀번호가 해당 이메일 주소로 발송됩니다.<br> 로그 인 후 임시 비밀번호를 반드시 변경해 주세요. </div> <form id="form" class="form-horizontal" method="post"> <div class="control-group"> <label class="control-label" for="input_email"><i class="icon-check"></i> 이메일</label> <div class="controls"> <input type="email" name="user[email]" id="input_email" placeholder="이메일" value="<?php echo h(form_value($this, 'user', 'email')); ?> "> </div> </div> <div class="form-actions"> <button type="button" class="btn btn-large btn-primary" id="button_submit">임시 비밀번호 발송</button> <button type="button" class="btn btn-large" id="button_cancel">취소</button> </div> </form> </section> <script type="text/javascript"> function cancel() { window.history.back(); } function submit() { $('#form').attr('action', '/user/send_password');
function tpl_content() { global $page, $mibewroot; ?> <?php echo getlocal("page_search.intro"); ?> <br /> <br /> <form name="searchForm" method="get" action="<?php echo $mibewroot; ?> /operator/history.php"> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <div class="fieldForm"> <div class="field"> <div class="flabel"><?php echo getlocal("page_analysis.full.text.search"); ?> </div> <div class="fvaluenodesc"> <div id="searchtext"> <input type="text" name="q" size="80" value="<?php echo form_value('q'); ?> " class="formauth"/> </div> <div id="searchbutton"> <input type="image" name="search" src="<?php echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.search")); ?> " alt="<?php echo safe_htmlspecialchars(getlocal("button.search")); ?> "/> </div> </div> <br clear="all"/> </div> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </form> <br/> <?php if ($page['pagination']) { ?> <table class="list"> <thead> <tr class="header"> <th> <?php echo getlocal("page.analysis.search.head_name"); ?> </th><th> <?php echo getlocal("page.analysis.search.head_host"); ?> </th><th> <?php echo getlocal("page.analysis.search.head_operator"); ?> </th><th> <?php echo getlocal("page.analysis.search.head_messages"); ?> </th><th> <?php echo getlocal("page.analysis.search.head_time"); ?> </th></tr> </thead> <tbody> <?php if ($page['pagination.items']) { foreach ($page['pagination.items'] as $chatthread) { ?> <tr> <td> <a href="<?php echo $mibewroot; ?> /operator/threadprocessor.php?threadid=<?php echo urlencode($chatthread['threadid']); ?> " target="_blank" onclick="this.newWindow = window.open('<?php echo $mibewroot; ?> /operator/threadprocessor.php?threadid=<?php echo urlencode($chatthread['threadid']); ?> ', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=720,height=520,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php echo topage(safe_htmlspecialchars($chatthread['userName'])); ?> </a> </td> <td> <?php echo get_user_addr(topage($chatthread['remote'])); ?> </td> <td> <?php if ($chatthread['agentName']) { echo topage(safe_htmlspecialchars($chatthread['agentName'])); } else { if ($chatthread['groupid'] && $chatthread['groupid'] != 0 && isset($page['groupName'][$chatthread['groupid']])) { echo "- " . topage(safe_htmlspecialchars($page['groupName'][$chatthread['groupid']])) . " -"; } } ?> </td> <td> <?php echo topage(safe_htmlspecialchars($chatthread['size'])); ?> </td> <td> <?php echo date_diff_to_text($chatthread['modified'] - $chatthread['created']); ?> , <?php echo date_to_text($chatthread['created']); ?> </td> </tr> <?php } } else { ?> <tr> <td colspan="5"> <?php echo getlocal("tag.pagination.no_items"); ?> </td> </tr> <?php } ?> </tbody> </table> <?php if ($page['pagination.items']) { echo "<br/>"; echo generate_pagination($page['pagination']); } } ?> <?php }
function tpl_content() { global $page, $webimroot, $errors; ?> <?php echo getlocal("page.gen_button.intro"); ?> <br /> <br /> <?php require_once 'inc_errors.php'; ?> <form name="buttonCodeForm" method="get" action="<?php echo $webimroot; ?> /operator/getcode.php"> <div> <?php print_tabbar(); ?> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <div class="fieldForm"> <div class="fieldinrow"> <div class="flabel"><?php echo getlocal("page.gen_button.choose_locale"); ?> </div> <div class="fvaluenodesc"> <select name="lang" onchange="this.form.submit();"><?php foreach ($page['availableLocales'] as $k) { echo "<option value=\"" . $k . "\"" . ($k == form_value("lang") ? " selected=\"selected\"" : "") . ">" . $k . "</option>"; } ?> </select> </div> </div> <?php if ($page['showgroups']) { ?> <div class="fieldinrow"> <div class="flabel"><?php echo getlocal("page.gen_button.choose_group"); ?> </div> <div class="fvaluenodesc"> <select name="group" onchange="this.form.submit();"><?php foreach ($page['groups'] as $k) { echo "<option value=\"" . $k['groupid'] . "\"" . ($k['groupid'] == form_value("group") ? " selected=\"selected\"" : "") . ">" . $k['vclocalname'] . "</option>"; } ?> </select> </div> </div> <?php } ?> <br clear="all"/> <div class="fieldinrow"> <div class="flabel"><?php echo getlocal("page.gen_button.choose_image"); ?> </div> <div class="fvaluenodesc"> <select name="i" onchange="this.form.submit();"><?php foreach ($page['availableImages'] as $k) { echo "<option value=\"" . $k . "\"" . ($k == form_value("image") ? " selected=\"selected\"" : "") . ">" . $k . "</option>"; } ?> </select> </div> </div> <div class="fieldinrow"> <div class="flabel"><?php echo getlocal("page.gen_button.choose_style"); ?> </div> <div class="fvaluenodesc"> <select name="style" onchange="this.form.submit();"><?php foreach ($page['availableStyles'] as $k => $v) { echo "<option value=\"" . $k . "\"" . ($k == form_value("style") ? " selected=\"selected\"" : "") . ">" . $v . "</option>"; } ?> </select> </div> </div> <br clear="all"/> <div class="fieldinrow"> <div class="flabel"><?php echo getlocal("page.gen_button.include_site_name"); ?> </div> <div class="fvaluenodesc"> <input type="checkbox" name="hostname" value="on"<?php echo form_value_cb('hostname') ? " checked=\"checked\"" : ""; ?> onchange="this.form.submit();"/> </div> </div> <?php if ($page['formhostname']) { ?> <div class="fieldinrow"> <div class="flabel"><?php echo getlocal("page.gen_button.secure_links"); ?> </div> <div class="fvaluenodesc"> <input type="checkbox" name="secure" value="on"<?php echo form_value_cb('secure') ? " checked=\"checked\"" : ""; ?> onchange="this.form.submit();"/> </div> </div> <?php } ?> <br clear="all"/> <div class="field"> <div class="flabel"><?php echo getlocal("page.gen_button.modsecurity"); ?> </div> <div class="fvaluenodesc"> <input type="checkbox" name="modsecurity" value="on"<?php echo form_value_cb('modsecurity') ? " checked=\"checked\"" : ""; ?> onchange="this.form.submit();"/> </div> </div> <div class="field"> <div class="flabel"><?php echo getlocal("page.gen_button.code"); ?> </div> <div class="fvaluewithta" dir="ltr"> <textarea cols="44" rows="15"><?php echo htmlspecialchars($page['buttonCode']); ?> </textarea> </div> <div class="fdescr"><?php echo getlocal("page.gen_button.code.description"); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal("page.gen_button.sample"); ?> </div> <div class="fvaluenodesc"> <?php echo $page['buttonCode']; ?> </div> </div> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> </form> <?php }
function tpl_content() { global $page, $mibewroot, $errors; if ($page['isdone']) { ?> <div id="loginpane"> <div class="header"> <h2><?php echo getlocal("restore.sent.title"); ?> </h2> </div> <div class="fieldForm"> <?php echo getlocal("restore.sent"); ?> <br/> <br/> <a href="<?php echo $mibewroot; ?> /operator/login.php"><?php echo getlocal("restore.back_to_login"); ?> </a> </div> </div> <?php } else { ?> <form name="restoreForm" method="post" action="<?php echo $mibewroot; ?> /operator/restore.php"> <div id="loginpane"> <div class="header"> <h2><?php echo getlocal("restore.title"); ?> </h2> </div> <div class="fieldForm"> <?php echo getlocal("restore.intro"); ?> <br/><br/> <?php require_once 'inc_errors.php'; ?> <div class="field"> <div class="fleftlabel"><?php echo getlocal("restore.emailorlogin"); ?> </div> <div class="fvalue"> <input type="text" name="loginoremail" size="25" value="<?php echo form_value('loginoremail'); ?> " class="formauth"/> </div> <br clear="all"/> </div> <div class="fbutton"> <table class="submitbutton"><tr> <td><a href="javascript:document.restoreForm.submit();"> <img src="<?php echo $mibewroot; ?> /images/submit.gif" width="40" height="35" border="0" alt="" /></a></td> <td class="submit"><a href="javascript:document.restoreForm.submit();"> <?php echo getlocal("restore.submit"); ?> </a></td> <td><a href="javascript:document.restoreForm.submit();"> <img src="<?php echo $mibewroot; ?> /images/submitrest.gif" width="10" height="35" border="0" alt="" /></a></td> </tr></table> <div class="links"> <a href="login.php"><?php echo getlocal("restore.back_to_login"); ?> </a> </div> </div> </div> </div> </form> <?php } }
function expand_var($matches) { global $page, $mibewroot, $jsver, $errors, $current_style; $prefix = $matches[1]; $var = $matches[2]; if (!$prefix) { if ($var == 'mibewroot') { return $mibewroot; } else { if ($var == 'jsver') { return $jsver; } else { if ($var == 'tplroot') { return "{$mibewroot}/styles/{$current_style}"; } else { if ($var == 'styleid') { return $current_style; } else { if ($var == 'pagination') { return generate_pagination($page['pagination']); } else { if ($var == 'errors' || $var == 'harderrors') { if (isset($errors) && count($errors) > 0) { $result = getlocal("{$var}.header"); foreach ($errors as $e) { $result .= getlocal("errors.prefix") . $e . getlocal("errors.suffix"); } $result .= getlocal("errors.footer"); return $result; } } } } } } } } else { if ($prefix == 'msg:' || $prefix == 'url:') { if (strpos($var, ",") !== false) { $pos = strpos($var, ","); $param = substr($var, $pos + 1); $var = substr($var, 0, $pos); return getlocal2($var, array($page[$param])); } return getlocal($var); } else { if ($prefix == 'form:') { return form_value($var); } else { if ($prefix == 'page:') { return isset($page[$var]) ? $page[$var] : ""; } else { if ($prefix == 'if:' || $prefix == 'else:' || $prefix == 'endif:' || $prefix == 'ifnot:') { return "<!-- wrong {$prefix}:{$var} -->"; } } } } } return ""; }
function tpl_content() { global $page, $webimroot, $errors; ?> <div id="loginintro"> <p><?php echo getlocal("app.descr"); ?> </p> </div> <form name="loginForm" method="post" action="<?php echo $webimroot; ?> /operator/login.php"> <div id="loginpane"> <div class="header"> <h2><?php echo getlocal("page_login.title"); ?> </h2> </div> <div class="fieldForm"> <?php echo getlocal("page_login.intro"); ?> <br/><br/> <?php require_once 'inc_errors.php'; ?> <div class="field"> <div class="fleftlabel"><?php echo getlocal("page_login.login"); ?> </div> <div class="fvalue"> <input type="text" name="login" size="25" value="<?php echo form_value('login'); ?> " class="formauth"/> </div> <br clear="all"/> </div> <div class="field"> <div class="fleftlabel"><?php echo getlocal("page_login.password"); ?> </div> <div class="fvalue"> <input type="password" name="password" size="25" value="" class="formauth"/> </div> <br clear="all"/> </div> <div class="field"> <div class="fleftlabel"> </div> <div class="fvalue"> <label> <input type="checkbox" name="isRemember" value="on"<?php echo form_value_cb('isRemember') ? " checked=\"checked\"" : ""; ?> /> <?php echo getlocal("page_login.remember"); ?> </label> </div> <br clear="all"/> </div> <div class="fbutton"> <input type="image" name="login" src='<?php echo $webimroot . getlocal("image.button.login"); ?> ' alt='<?php echo getlocal("button.enter"); ?> '/> <div class="links"> <a href="restore.php"><?php echo getlocal("restore.pwd.message"); ?> </a><br/> </div> </div> </div> </div> </form> <?php }
function tpl_content() { global $page, $webimroot, $errors; ?> <?php echo getlocal("page_settings.intro"); ?> <br /> <br /> <?php require_once 'inc_errors.php'; if ($page['stored']) { ?> <div id="formmessage"><?php echo getlocal("settings.saved"); ?> </div> <?php } ?> <form name="settings" method="post" action="<?php echo $webimroot; ?> /operator/settings.php"> <div> <?php print_tabbar(); ?> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <div class="fieldForm"> <div class="field"> <div class="flabel"><?php echo getlocal('settings.email'); ?> </div> <div class="fvalue"> <input type="text" name="email" size="40" value="<?php echo form_value('email'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.email.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.company.title'); ?> </div> <div class="fvalue"> <input type="text" name="title" size="40" value="<?php echo form_value('title'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.company.title.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.chat.title'); ?> </div> <div class="fvalue"> <input type="text" name="chattitle" size="40" value="<?php echo form_value('chattitle'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.chat.title.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.logo'); ?> </div> <div class="fvalue"> <input type="text" name="logo" size="40" value="<?php echo form_value('logo'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.logo.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.host'); ?> </div> <div class="fvalue"> <input type="text" name="hosturl" size="40" value="<?php echo form_value('hosturl'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.host.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.geolink'); ?> </div> <div class="fvalue"> <input type="text" name="geolink" size="40" value="<?php echo form_value('geolink'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.geolink.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.geolinkparams'); ?> </div> <div class="fvalue"> <input type="text" name="geolinkparams" size="40" value="<?php echo form_value('geolinkparams'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.geolinkparams.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.usernamepattern'); ?> </div> <div class="fvalue"> <input type="text" name="usernamepattern" size="40" value="<?php echo form_value('usernamepattern'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.usernamepattern.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.chatstyle'); ?> </div> <div class="fvalue"> <select name="chatstyle" ><?php foreach ($page['availableStyles'] as $k) { echo "<option value=\"" . $k . "\"" . ($k == form_value("chatstyle") ? " selected=\"selected\"" : "") . ">" . $k . "</option>"; } ?> </select> </div> <div class="fdescr"> — <?php echo getlocal('settings.chatstyle.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.sendmessagekey'); ?> </div> <div class="fvaluenodesc"> <label> <input type="radio" name="sendmessagekey" value="enter" <?php echo form_value("sendmessagekey") == "enter" ? " checked=\"checked\"" : ""; ?> />Enter</label> <label> <input type="radio" name="sendmessagekey" value="center" <?php echo form_value("sendmessagekey") == "center" ? " checked=\"checked\"" : ""; ?> />Ctrl-Enter</label> </div> </div> <div class="fbutton"> <input type="image" name="save" value="" src='<?php echo $webimroot . getlocal("image.button.save"); ?> ' alt='<?php echo getlocal("button.save"); ?> '/> </div> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> <div class="asterisk"> <?php echo getlocal("common.asterisk_explanation"); ?> </div> </form> <?php }
?> <br> <?php } ?> <br> 電話番号: <input type="text" name="tell" value="<?php echo form_value('tell'); ?> "> <br><br> 自己紹介文 <br> <textarea name="comment" rows=10 cols=50 style="resize:none" wrap="hard"><?php echo form_value('comment'); ?> </textarea><br><br> <input type="hidden" name="mode" value="CONFIRM"> <input type="submit" name="btnSubmit" value="確認画面へ"> </form> <?php echo return_top(); ?> </body> </html>
function tpl_content() { global $page, $webimroot, $errors; ?> <?php echo getlocal("page_settings.intro"); ?> <br /> <br /> <?php require_once 'inc_errors.php'; if ($page['stored']) { ?> <div id="formmessage"><?php echo getlocal("settings.saved"); ?> </div> <?php } ?> <form name="performance" method="post" action="<?php echo $webimroot; ?> /operator/performance.php"> <?php print_csrf_token_input(); ?> <div> <?php print_tabbar(); ?> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <div class="fieldForm"> <div class="field"> <div class="flabel"><?php echo getlocal('settings.onlinetimeout'); ?> </div> <div class="fvalue"> <input type="text" name="onlinetimeout" size="40" value="<?php echo form_value('onlinetimeout'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.onlinetimeout.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.frequencyoperator'); ?> </div> <div class="fvalue"> <input type="text" name="frequencyoperator" size="40" value="<?php echo form_value('frequencyoperator'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.frequencyoperator.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.frequencychat'); ?> </div> <div class="fvalue"> <input type="text" name="frequencychat" size="40" value="<?php echo form_value('frequencychat'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.frequencychat.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.frequencyoldchat'); ?> </div> <div class="fvalue"> <input type="text" name="frequencyoldchat" size="40" value="<?php echo form_value('frequencyoldchat'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.frequencyoldchat.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.onehostconnections'); ?> </div> <div class="fvalue"> <input type="text" name="onehostconnections" size="40" value="<?php echo form_value('onehostconnections'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.onehostconnections.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('settings.threadlifetime'); ?> </div> <div class="fvalue"> <input type="text" name="threadlifetime" size="40" value="<?php echo form_value('threadlifetime'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('settings.threadlifetime.description'); ?> </div> <br clear="all"/> </div> <div class="fbutton"> <input type="image" name="save" value="" src='<?php echo $webimroot . getlocal("image.button.save"); ?> ' alt='<?php echo getlocal("button.save"); ?> '/> </div> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> <div class="asterisk"> <?php echo getlocal("common.asterisk_explanation"); ?> </div> </form> <?php }
function tpl_content() { global $page, $webimroot, $errors; ?> <?php echo getlocal("statistics.description"); ?> <br /> <br /> <?php require_once 'inc_errors.php'; ?> <form name="statisticsForm" method="get" action="<?php echo $webimroot; ?> /operator/statistics.php"> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <div class="fieldForm"> <div class="field"> <div class="flabel"><?php echo getlocal("statistics.dates"); ?> </div> <div class="fvaluenodesc"> <div class="searchctrl"> <?php echo getlocal("statistics.from"); ?> <select name="startday"><?php foreach ($page['availableDays'] as $k) { echo "<option value=\"" . $k . "\"" . ($k == form_value("startday") ? " selected=\"selected\"" : "") . ">" . $k . "</option>"; } ?> </select> <select name="startmonth"><?php foreach ($page['availableMonth'] as $k => $v) { echo "<option value=\"" . $k . "\"" . ($k == form_value("startmonth") ? " selected=\"selected\"" : "") . ">" . $v . "</option>"; } ?> </select> </div> <div class="searchctrl"> <?php echo getlocal("statistics.till"); ?> <select name="endday"><?php foreach ($page['availableDays'] as $k) { echo "<option value=\"" . $k . "\"" . ($k == form_value("endday") ? " selected=\"selected\"" : "") . ">" . $k . "</option>"; } ?> </select> <select name="endmonth"><?php foreach ($page['availableMonth'] as $k => $v) { echo "<option value=\"" . $k . "\"" . ($k == form_value("endmonth") ? " selected=\"selected\"" : "") . ">" . $v . "</option>"; } ?> </select> </div> <div id="searchbutton"> <input type="image" name="search" src='<?php echo $webimroot . getlocal("image.button.search"); ?> ' alt='<?php echo getlocal("button.search"); ?> '/> </div> </div> <br clear="all"/> </div> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </form> <?php if ($page['showresults']) { ?> <br/> <br/> <div class="tabletitle"> <?php echo getlocal("report.bydate.title"); ?> </div> <table class="statistics"> <thead> <tr><th> <?php echo getlocal("report.bydate.1"); ?> </th><th> <?php echo getlocal("report.bydate.2"); ?> </th><th> <?php echo getlocal("report.bydate.3"); ?> </th><th> <?php echo getlocal("report.bydate.4"); ?> </th></tr> </thead> <tbody> <?php if ($page['reportByDate']) { ?> <?php foreach ($page['reportByDate'] as $row) { ?> <tr> <td><?php echo $row['date']; ?> </td> <td><?php echo $row['threads']; ?> </td> <td><?php echo $row['agents']; ?> </td> <td><?php echo $row['users']; ?> </td> </tr> <?php } ?> <tr> <td><b><?php echo getlocal("report.total"); ?> </b></td> <td><?php echo $page['reportByDateTotal']['threads']; ?> </td> <td><?php echo $page['reportByDateTotal']['agents']; ?> </td> <td><?php echo $page['reportByDateTotal']['users']; ?> </td> </tr> <?php } else { ?> <tr> <td colspan="4"> <?php echo getlocal("report.no_items"); ?> </td> </tr> <?php } ?> </tbody> </table> <br/> <br/> <div class="tabletitle"><?php echo getlocal("report.byoperator.title"); ?> </div> <table class="statistics"> <thead> <tr><th> <?php echo getlocal("report.byoperator.1"); ?> </th><th> <?php echo getlocal("report.byoperator.2"); ?> </th><th> <?php echo getlocal("report.byoperator.3"); ?> </th><th> <?php echo getlocal("report.byoperator.4"); ?> </th></tr> </thead> <tbody> <?php if ($page['reportByAgent']) { ?> <?php foreach ($page['reportByAgent'] as $row) { ?> <tr> <td><?php echo topage(htmlspecialchars($row['name'])); ?> </td> <td><?php echo $row['threads']; ?> </td> <td><?php echo $row['msgs']; ?> </td> <td><?php echo $row['avglen']; ?> </td> </tr> <?php } } else { ?> <tr> <td colspan="4"> <?php echo getlocal("report.no_items"); ?> </td> </tr> <?php } ?> </tbody> </table> <?php } ?> <?php }
function tpl_content() { global $page, $mibewroot, $errors; ?> <?php if ($page['opid']) { echo getlocal("page_agent.intro"); } if (!$page['opid']) { echo getlocal("page_agent.create_new"); } ?> <br /> <br /> <?php require_once 'inc_errors.php'; if ($page['needChangePassword']) { ?> <div id="formmessage"><?php echo getlocal("error.no_password"); ?> </div> <br/> <?php } else { if ($page['stored']) { ?> <div id="formmessage"><?php echo getlocal("data.saved"); ?> </div> <?php } } ?> <?php if ($page['opid'] || $page['canmodify']) { ?> <form name="agentForm" method="post" action="<?php echo $mibewroot; ?> /operator/operator.php"> <?php print_csrf_token_input(); ?> <input type="hidden" name="opid" value="<?php echo safe_htmlspecialchars($page['opid']); ?> "/> <?php if (!$page['showjabber']) { ?> <input type="hidden" name="jabber" value="<?php echo form_value('jabber'); ?> "/> <?php if (form_value_cb('jabbernotify')) { ?> <input type="hidden" name="jabbernotify" value="on"/><?php } } ?> <div> <?php if (!$page['needChangePassword']) { print_tabbar(); } ?> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <div class="fieldForm"> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.login'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="login" size="40" value="<?php echo form_value('login'); ?> " class="formauth"<?php echo $page['canmodify'] && !$page['opid'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.login.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.mail'); ?> </div> <div class="fvalue"> <input type="text" name="email" size="40" value="<?php echo form_value('email'); ?> " class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.mail.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.password'); if (!$page['opid'] || $page['needChangePassword']) { ?> <span class="required">*</span><?php } ?> </div> <div class="fvalue"> <input type="password" name="password" size="40" value="" class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> autocomplete="off"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.password.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.password_confirm'); if (!$page['opid'] || $page['needChangePassword']) { ?> <span class="required">*</span><?php } ?> </div> <div class="fvalue"> <input type="password" name="passwordConfirm" size="40" value="" class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> autocomplete="off"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.password_confirm.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.agent_name'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="name" size="40" value="<?php echo form_value('name'); ?> " class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.agent_name.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.agent_commonname'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="commonname" size="40" value="<?php echo form_value('commonname'); ?> " class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.agent_commonname.description'); ?> </div> <br clear="all"/> </div> <?php if ($page['showjabber']) { ?> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.jabber'); ?> </div> <div class="fvalue"> <input type="text" name="jabber" size="40" value="<?php echo form_value('jabber'); ?> " class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.jabber.description'); ?> </div> <br clear="all"/> </div> <div class="field" style="padding-top:0.3em;"> <div class="flabel"><?php echo getlocal('form.field.jabbernotify'); ?> </div> <div class="fvalue"> <input type="checkbox" name="jabbernotify" value="on"<?php echo form_value_cb('jabbernotify') ? " checked=\"checked\"" : ""; echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.jabbernotify.description'); ?> </div> <br clear="all"/> </div> <?php } ?> <?php if ($page['canmodify']) { ?> <div class="fbutton"> <input type="image" name="save" value="" src="<?php echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.save")); ?> " alt="<?php echo safe_htmlspecialchars(getlocal("button.save")); ?> "/> </div> <?php } ?> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> <div class="asterisk"> <?php echo getlocal("common.asterisk_explanation"); ?> </div> </form> <?php } }
function tpl_content() { global $page, $webimroot, $errors; ?> <?php echo getlocal("canned.descr"); ?> <br /> <br /> <?php require_once 'inc_errors.php'; ?> <form name="cannedForm" method="get" action="<?php echo $webimroot; ?> /operator/canned.php"> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <div class="packedFormField"> <?php echo getlocal("canned.locale"); ?> <br/> <select name="lang" onchange="this.form.submit();"><?php foreach ($page['locales'] as $k) { echo "<option value=\"" . $k["id"] . "\"" . ($k["id"] == form_value("lang") ? " selected=\"selected\"" : "") . ">" . $k["name"] . "</option>"; } ?> </select> </div> <?php if ($page['showgroups']) { ?> <div class="packedFormField"> <?php echo getlocal("canned.group"); ?> <br/> <select name="group" onchange="this.form.submit();"><?php foreach ($page['groups'] as $k) { echo "<option value=\"" . $k["groupid"] . "\"" . ($k["groupid"] == form_value("group") ? " selected=\"selected\"" : "") . ">" . $k["vclocalname"] . "</option>"; } ?> </select> </div> <?php } ?> <br clear="all"/> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </form> <br/> <div class="tabletool"> <img src="<?php echo $webimroot; ?> /images/buttons/createban.gif" border="0" alt=""/> <a href="<?php echo $webimroot; ?> /operator/cannededit.php?lang=<?php echo form_value("lang"); ?> &group=<?php echo form_value("group"); ?> " target="_blank" onclick="this.newWindow = window.open('<?php echo $webimroot; ?> /operator/cannededit.php?lang=<?php echo form_value("lang"); ?> &group=<?php echo form_value("group"); ?> ', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"> <?php echo getlocal("canned.add"); ?> </a> </div> <br clear="all"/> <?php if ($page['pagination']) { ?> <table class="translate"> <thead> <tr class="header"><th> <?php echo getlocal("cannededit.message"); ?> </th><th> <?php echo getlocal("canned.actions"); ?> </th></tr> </thead> <tbody> <?php if ($page['pagination.items']) { foreach ($page['pagination.items'] as $localstr) { ?> <tr> <td> <?php echo str_replace("\n", "<br/>", htmlspecialchars(topage($localstr['vcvalue']))); ?> </td> <td> <a href="<?php echo $webimroot; ?> /operator/cannededit.php?key=<?php echo $localstr['id']; ?> " target="_blank" onclick="this.newWindow = window.open('<?php echo $webimroot; ?> /operator/cannededit.php?key=<?php echo $localstr['id']; ?> ', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php echo getlocal("canned.actions.edit"); ?> </a>, <a href="<?php echo $webimroot; ?> /operator/canned.php?act=delete&key=<?php echo $localstr['id']; ?> &lang=<?php echo form_value("lang"); ?> &group=<?php echo form_value("group"); print_csrf_token_in_url(); ?> "><?php echo getlocal("canned.actions.del"); ?> </a> </td> </tr> <?php } } else { ?> <tr> <td colspan="3"> <?php echo getlocal("tag.pagination.no_items.elements"); ?> </td> </tr> <?php } ?> </tbody> </table> <?php if ($page['pagination.items']) { echo "<br/>"; echo generate_pagination($page['pagination']); } } ?> <?php }
function tpl_content() { global $page, $mibewroot, $errors; ?> <?php if ($page['grid']) { echo getlocal("page.group.intro"); } if (!$page['grid']) { echo getlocal("page.group.create_new"); } ?> <br /> <br /> <?php require_once 'inc_errors.php'; if ($page['stored']) { ?> <div id="formmessage"><?php echo getlocal("data.saved"); ?> </div> <?php } ?> <form name="groupForm" method="post" action="<?php echo $mibewroot; ?> /operator/group.php"> <?php print_csrf_token_input(); ?> <input type="hidden" name="gid" value="<?php echo safe_htmlspecialchars($page['grid']); ?> "/> <div> <?php print_tabbar(); ?> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <div class="fieldForm"> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.groupname'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="name" size="40" value="<?php echo form_value('name'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.groupname.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.groupdesc'); ?> </div> <div class="fvalue"> <input type="text" name="description" size="40" value="<?php echo form_value('description'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.groupdesc.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.groupcommonname'); ?> </div> <div class="fvalue"> <input type="text" name="commonname" size="40" value="<?php echo form_value('commonname'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.groupcommonname.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.groupcommondesc'); ?> </div> <div class="fvalue"> <input type="text" name="commondescription" size="40" value="<?php echo form_value('commondescription'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.groupcommondesc.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.mail'); ?> </div> <div class="fvalue"> <input type="text" name="email" size="40" value="<?php echo form_value('email'); ?> " class="formauth"/> </div> <div class="fdescr"> — <?php echo getlocal('form.field.groupemail.description'); ?> </div> <br clear="all"/> </div> <div class="fbutton"> <input type="image" name="save" value="" src="<?php echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.save")); ?> " alt="<?php echo safe_htmlspecialchars(getlocal("button.save")); ?> "/> </div> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> <div class="asterisk"> <?php echo getlocal("common.asterisk_explanation"); ?> </div> </form> <?php }
function tpl_content() { global $page, $webimroot, $errors; ?> <?php if ($page['opid']) { echo getlocal("page_agent.intro"); } if (!$page['opid']) { echo getlocal("page_agent.create_new"); } ?> <br /> <br /> <?php require_once 'inc_errors.php'; if ($page['stored']) { ?> <div id="formmessage"><?php echo getlocal("data.saved"); ?> </div> <?php } ?> <?php if ($page['opid'] || $page['canmodify']) { ?> <form name="agentForm" method="post" action="<?php echo $webimroot; ?> /operator/operator.php"> <input type="hidden" name="opid" value="<?php echo $page['opid']; ?> "/> <div> <?php print_tabbar(); ?> <div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner"> <div class="fieldForm"> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.login'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="login" size="40" value="<?php echo form_value('login'); ?> " class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.login.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.mail'); ?> </div> <div class="fvalue"> <input type="text" name="email" size="40" value="<?php echo form_value('email'); ?> " class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.mail.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.password'); if (!$page['opid']) { ?> <span class="required">*</span><?php } ?> </div> <div class="fvalue"> <input type="password" name="password" size="40" value="" class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.password.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.password_confirm'); if (!$page['opid']) { ?> <span class="required">*</span><?php } ?> </div> <div class="fvalue"> <input type="password" name="passwordConfirm" size="40" value="" class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.password_confirm.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.agent_name'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="name" size="40" value="<?php echo form_value('name'); ?> " class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.agent_name.description'); ?> </div> <br clear="all"/> </div> <div class="field"> <div class="flabel"><?php echo getlocal('form.field.agent_commonname'); ?> <span class="required">*</span></div> <div class="fvalue"> <input type="text" name="commonname" size="40" value="<?php echo form_value('commonname'); ?> " class="formauth"<?php echo $page['canmodify'] ? "" : " disabled=\"disabled\""; ?> /> </div> <div class="fdescr"> — <?php echo getlocal('form.field.agent_commonname.description'); ?> </div> <br clear="all"/> </div> <?php if ($page['canmodify']) { ?> <div class="fbutton"> <input type="image" name="save" value="" src='<?php echo $webimroot . getlocal("image.button.save"); ?> ' alt='<?php echo getlocal("button.save"); ?> '/> </div> <?php } ?> </div> </div><div class="formbottom"><div class="formbottomi"></div></div></div> </div> <div class="asterisk"> <?php echo getlocal("common.asterisk_explanation"); ?> </div> </form> <?php } }