<div class="form-group"> <label for="merge_dest"><?php echo sh('2FltmsgExe') . subscribers_sources; ?> </label> <select class="form-control autoWidth" name="merge_src[]" id="merge_src" multiple> <?php foreach ($mrGrp as $k => $v) { echo '<option value="' . $k . '">' . showIn($v, 'page') . ' (' . cntData("SELECT ID FROM " . db_table_pref . "subscribers WHERE OID=" . set_org_id . " AND GID=" . intval($k) . "") . ')</option>'; } ?> </select> </div> <div class="form-group"> <span><?php echo sh('eZUhfGarpp'); ?> </span><label for="remSrc"><?php echo subscribers_remove_sources_after_merging; ?> </label> <input type="checkbox" class="ionc" id="remSrc" name="remSrc" value="YES"> </div> <div class="form-group"> <button type="submit" name="mergeGroups" id="mergeGroups" class="btn btn-primary"><span class="glyphicon glyphicon-link"></span> <?php echo subscribers_merge; ?> </button> </div> <?php } else {
<?php namespace Bob\BuildConfig; task("default", array("test"), function () { }); desc("Runs all tests."); task("test", array("phpunit.xml", "composer.json"), function () { sh("phpunit"); }); fileTask("phpunit.xml", array("phpunit.dist.xml"), function ($task) { copy($task->prerequisites[0], $task->name); }); fileTask("composer.json", array("composer.lock"), function ($task) { if (!file_exists("composer.phar")) { file_put_contents("composer.phar", file_get_contents("http://getcomposer.org/composer.phar")); } php("composer.phar install"); });
<?php namespace Bob\BuildConfig; task("default", array("test")); desc("Runs all tests."); task("test", array("phpunit.xml", "composer.json"), function () { sh("./vendor/bin/phpunit"); }); fileTask("phpunit.xml", array("phpunit.dist.xml"), function ($task) { copy($task->prerequisites[0], $task->name); }); fileTask("composer.json", array("composer.lock"), function ($task) { if (!file_exists("composer.phar")) { file_put_contents("composer.phar", file_get_contents("http://getcomposer.org/composer.phar")); } php("composer.phar install --dev"); });
</label> <input type="password" name="usr_pass" id="usr_pass" value="" class="form-control autoWidth" autocomplete="off"> </div> <div class="form-group"> <label for="usr_pass2"><?php echo sh('9fSmVUpiv3') . letheglobal_type_it_again; ?> </label> <input type="password" name="usr_pass2" id="usr_pass2" value="" class="form-control autoWidth" autocomplete="off"> </div> <?php if (!$opUserRs['isPrimary']) { ?> <div class="form-group"> <span><?php echo sh('8Ldfvb0tGm'); ?> </span><label for="active"><?php echo letheglobal_active; ?> </label> <input type="checkbox" name="active" id="active" value="YES" class="ionc"<?php echo formSelector($opUserRs['isActive'], 1, 1); ?> > </div> <div class="form-group"> <label for="del"><?php echo letheglobal_delete; ?> </label>
</label> <input type="email" name="usr_mail" id="usr_mail" value="<?php echo isset($_POST['usr_mail']) ? showIn($_POST['usr_mail'], 'input') : ''; ?> " class="form-control autoWidth"> </div> <div class="form-group"> <label for="usr_pass"><?php echo sh('XLjyd6v62s') . letheglobal_password; ?> </label> <input type="password" name="usr_pass" id="usr_pass" value="" class="form-control autoWidth" autocomplete="off"> </div> <div class="form-group"> <label for="usr_pass2"><?php echo sh('9fSmVUpiv3') . letheglobal_type_it_again; ?> </label> <input type="password" name="usr_pass2" id="usr_pass2" value="" class="form-control autoWidth" autocomplete="off"> </div> <div class="carousel-cont"><hr> <span class="pull-right"> <button data-target="#carousel" data-slide="prev" type="button" class="btn btn-success"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> <span class="sr-only">Previous</span> </button> <button data-target="#carousel" data-slide="next" type="button" class="btn btn-success"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">Next</span> </button>
<head> <title>Change Skin Pack</title> </head> <body> <h1>Change Skin Pack</h1> <?php require "function.php"; if ($_POST["confirmed"] != "true") { echo "Enter the new skin pack of the skin '" . $_GET["skin"] . "'.\n"; echo "<form action=\"change_skin_pack.php" . $args . "\" method=\"post\" enctype=\"multipart/form-data\">\n"; echo "<table cellpadding=\"5\">\n"; echo "<tr><td>New Skin Pack</td><td><input name=\"new_skin_pack\" type=\"text\"></td></tr>\n"; echo "</table>\n"; echo "<input name=\"skin\" type=\"hidden\" value=\"" . $_GET["skin"] . "\">\n"; echo "<input name=\"confirmed\" type=\"hidden\" value=\"true\">\n"; echo "<br><input type=\"submit\" value=\"Change Skin Pack\">\n"; echo "</form>\n"; } else { $command = "./change_skin_pack.sh " . sh($_POST["skin"]) . " " . sh($_POST["new_skin_pack"]); echo "Script Output:<br>\n"; echo "<textarea cols=\"100\" rows=\"20\" style=\"resize:none\" readonly>\n"; echo linestart(">>> ", shell_exec($command)); echo "</textarea><br><br>\n"; } echo "\n<br><a href=\"index.php" . $args . "\">Back To Skin Database</a>\n"; ?> </body> </html>
<?php /* * Put the `bob_config.php` into the "Bob" namespace, * otherwise you would've to call the `task` and * `desc` functions with a `Bob\` prefix. */ namespace Bob\BuildConfig; task('default', array('test')); desc("Runs all tests"); task('test', array('composer.lock'), function () { if (!file_exists('phpunit.xml')) { copy('phpunit.dist.xml', 'phpunit.xml'); } echo sh('phpunit'); }); desc('Runs "composer update" when the composer.json was changed'); fileTask('composer.lock', array('composer.json'), function ($task) { echo sh('composer update'); });
<?php namespace Bob; task('default', array('test')); task('test', array('phpunit.xml'), function () { sh('phpunit'); }); fileTask('phpunit.xml', array('phpunit.xml.dist'), function ($task) { copy($task->prerequisites[0], $task->name); });
<div style="padding:10px;"> <?php $dic = ""; foreach ($result as $v) { ?> <div class="gddictname"><?php echo sh($v["fbookname"]); ?> </div> <div class="gdword"><?php echo sh($v["word"]); ?> </div> <div class="1gdarticle"><?php echo nl2br($v["text"]); ?> </div> <?php } ?> </div>
<?php namespace Bob\BuildConfig; task('default', array('test')); task('test', function () { sh(array("phpunit", "--coverage-html", "coverage/")); sh(array("open", "coverage/index.html")); });
<h4><?php echo subscribers_api_data; ?> </h4><hr> <div id="api_act_gen"> </div> </div> <div class="col-md-4"> <h4><?php echo subscribers_api_handler; ?> </h4><hr> <div class="form-group"> <label for="api_link"><?php echo sh('CJ6zfITODb') . subscribers_api_link; ?> </label> <textarea class="form-control" name="api_link" id="api_link" onclick="this.select();" rows="7" readonly></textarea> </div> <div class="form-group"> <button type="button" name="genAPILink" id="genAPILink" class="btn btn-warning"><span class="glyphicon glyphicon-refresh"></span></button> </div> </div> </div> </form> <script> $(document).ready(function(){ $("#api_action").change(function(){ if($(this).val()!=''){ $("#api_link").val('');
<html> <head> <title>Remove Skin Pack</title> </head> <body> <h1>Remove Skin Pack</h1> <?php require "function.php"; if ($_POST["confirmed"] != "true") { echo "Dou you really want to remove all skins from the skin pack '" . $_GET["skin_pack"] . "' from the skin database?\n"; echo "<form action=\"remove_skin_pack.php" . $args . "\" method=\"post\" enctype=\"multipart/form-data\">\n"; echo "<input name=\"skin_pack\" type=\"hidden\" value=\"" . $_GET["skin_pack"] . "\">\n"; echo "<input name=\"confirmed\" type=\"hidden\" value=\"true\">\n"; echo "<br><input type=\"submit\" value=\"Remove Skin Pack\">\n"; echo "</form>\n"; } else { $command = "./remove_skin_pack.sh " . sh($_POST["skin_pack"]); echo "Script Output:<br>\n"; echo "<textarea cols=\"100\" rows=\"20\" style=\"resize:none\" readonly>\n"; echo linestart(">>> ", shell_exec($command)); echo "</textarea><br><br>\n"; } echo "\n<br><a href=\"index.php" . $args . "\">Back To Skin Database</a>\n"; ?> </body> </html>
<html> <head> <title>Remove Skin</title> </head> <body> <h1>Remove Skin</h1> <?php require "function.php"; if ($_POST["confirmed"] != "true") { echo "Dou you really want to remove the skin '" . $_GET["skin"] . "' from the skin database?\n"; echo "<form action=\"remove_skin.php" . $args . "\" method=\"post\" enctype=\"multipart/form-data\">\n"; echo "<input name=\"skin\" type=\"hidden\" value=\"" . $_GET["skin"] . "\">\n"; echo "<input name=\"confirmed\" type=\"hidden\" value=\"true\">\n"; echo "<br><input type=\"submit\" value=\"Remove Skin\">\n"; echo "</form>\n"; } else { $command = "./remove_skin.sh " . sh($_POST["skin"]); echo "Script Output:<br>\n"; echo "<textarea cols=\"100\" rows=\"20\" style=\"resize:none\" readonly>\n"; echo linestart(">>> ", shell_exec($command)); echo "</textarea><br><br>\n"; } echo "\n<br><a href=\"index.php" . $args . "\">Back To Skin Database</a>\n"; ?> </body> </html>
<html> <head> <title>Remove Creator</title> </head> <body> <h1>Remove Creator</h1> <?php require "function.php"; if ($_POST["confirmed"] != "true") { echo "Dou you really want to remove all skins by the creator '" . $_GET["creator"] . "' from the skin database?\n"; echo "<form action=\"remove_creator.php" . $args . "\" method=\"post\" enctype=\"multipart/form-data\">\n"; echo "<input name=\"creator\" type=\"hidden\" value=\"" . $_GET["creator"] . "\">\n"; echo "<input name=\"confirmed\" type=\"hidden\" value=\"true\">\n"; echo "<br><input type=\"submit\" value=\"Remove Creator\">\n"; echo "</form>\n"; } else { $command = "./remove_creator.sh " . sh($_POST["creator"]); echo "Script Output:<br>\n"; echo "<textarea cols=\"100\" rows=\"20\" style=\"resize:none\" readonly>\n"; echo linestart(">>> ", shell_exec($command)); echo "</textarea><br><br>\n"; } echo "\n<br><a href=\"index.php" . $args . "\">Back To Skin Database</a>\n"; ?> </body> </html>
<head> <title>Add Skin</title> </head> <body> <h1>Add Skin</h1> <?php require "function.php"; if ($_POST["confirmed"] != "true") { echo "<form action=\"add_skin.php" . $args . "\" method=\"post\" enctype=\"multipart/form-data\">\n"; echo "<table cellpadding=\"5\">\n"; echo "<tr><td>Image</td><td><input name=\"image\" type=\"file\"></td></tr>\n"; echo "<tr><td>Creator</td><td><input name=\"creator\" type=\"text\"></td></tr>\n"; echo "<tr><td>Skin Pack</td><td><input name=\"skin_pack\" type=\"text\"></td></tr>\n"; echo "</table>\n"; echo "<input name=\"confirmed\" type=\"hidden\" value=\"true\">\n"; echo "<br><input type=\"submit\" value=\"Add Skin\">\n"; echo "</form>\n"; } else { $command = "./add_skin.sh " . sh($_FILES["image"]["tmp_name"]) . " " . sh($_FILES["image"]["name"]) . " " . sh($_POST["creator"]) . " " . sh($_POST["skin_pack"]); echo "Script Output:<br>\n"; echo "<textarea cols=\"100\" rows=\"20\" style=\"resize:none\" readonly>\n"; echo linestart(">>> ", shell_exec($command)); echo "</textarea><br><br>\n"; } echo "\n<br><a href=\"index.php" . $args . "\">Back To Skin Database</a>\n"; ?> </body> </html>
<?php foreach ($word_list as $v) { ?> <a href="javascript:showWord('<?php echo sh($v); ?> ')"><?php echo sh($v); ?> </a><br/> <?php }
<head> <title>Rename Creator</title> </head> <body> <h1>Rename Creator</h1> <?php require "function.php"; if ($_POST["confirmed"] != "true") { echo "Enter the new name of the creator '" . $_GET["creator"] . "'.\n"; echo "<form action=\"rename_creator.php" . $args . "\" method=\"post\" enctype=\"multipart/form-data\">\n"; echo "<table cellpadding=\"5\">\n"; echo "<tr><td>New Name</td><td><input name=\"new_name\" type=\"text\"></td></tr>\n"; echo "</table>\n"; echo "<input name=\"creator\" type=\"hidden\" value=\"" . $_GET["creator"] . "\">\n"; echo "<input name=\"confirmed\" type=\"hidden\" value=\"true\">\n"; echo "<br><input type=\"submit\" value=\"Rename Creator\">\n"; echo "</form>\n"; } else { $command = "./rename_creator.sh " . sh($_POST["creator"]) . " " . sh($_POST["new_name"]); echo "Script Output:<br>\n"; echo "<textarea cols=\"100\" rows=\"20\" style=\"resize:none\" readonly>\n"; echo linestart(">>> ", shell_exec($command)); echo "</textarea><br><br>\n"; } echo "\n<br><a href=\"index.php" . $args . "\">Back To Skin Database</a>\n"; ?> </body> </html>
$apiAct .= '<script> $("#genAPILink").click(function(){ var apiLink = "' . LETHE_API_URI . '"; apiLink += "?act=toblacklist"; apiLink += "&pkey=' . set_org_public_key . '"; apiLink += "&akey=' . set_org_api_key . '"; apiLink += "&lmail=[MAIL_VALUE]"; $("#api_link").val(apiLink); }); </script>'; } else { if ($pos2 == 'moveto') { $apiAct .= ' <div class="form-group"> <label for="api_group">' . sh('ocpnXgO15m') . subscribers_destination_group . '</label> <select class="form-control autoWidth" id="api_group" name="api_group">'; $opGroups = $myconn->query("SELECT * FROM " . db_table_pref . "subscriber_groups WHERE OID=" . set_org_id . " AND isUnsubscribe=0 " . (LETHE_AUTH_VIEW_TYPE ? ' AND UID=' . LETHE_AUTH_ID . '' : '') . "") or die(mysqli_error($myconn)); while ($opGroupsRs = $opGroups->fetch_assoc()) { $apiAct .= '<option value="' . $opGroupsRs['ID'] . '">' . showIn($opGroupsRs['group_name'], 'page') . '</option>'; } $opGroups->free(); $apiAct .= ' </select> </div> <div class="form-group"> <label for="api_mail"><span class="glyphicon glyphicon-ok text-success"></span> ' . letheglobal_e_mail . '</label> </div> '; #** $apiAct .= '<script>
echo '<option value="' . $k . '"' . (defined('set_org_load_type') ? formSelector(set_org_load_type, $k, 0) : '') . '>' . $v . '</option>'; } ?> </select> </div> </div> <!-- SAVE --> <div role="tabpanel" class="tab-pane fade" id="save"> <?php if (!$sr->Get('isPrimary')) { ?> <div class="form-group"> <span><?php echo sh('za7rBvQrZy'); ?> </span><label for="del"><?php echo letheglobal_delete; ?> </label> <input type="checkbox" name="del" id="del" value="YES" data-alert-dialog-text="<?php echo letheglobal_are_you_sure_to_delete; ?> " class="ionc"> </div> <?php } ?> <div class="form-group"> <button name="editOrganization" id="editOrganization" class="btn btn-primary" type="submit"><?php
<input type="email" name="new_rec_mail" id="new_rec_mail" value="" class="form-control"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="new_rec_ip"><?php echo sh('tCwJQ2Q7aB') . letheglobal_ip_address; ?> </label> <input type="ip" name="new_rec_ip" id="new_rec_ip" value="" class="form-control" placeholder="0.0.0.0" pattern="((^|\.)((25[0-5])|(2[0-4]\d)|(1\d\d)|([1-9]?\d))){4}$"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="new_rec_reason"><?php echo sh('VWf7IQKkSM') . subscribers_reason; ?> </label> <select name="new_rec_reason" id="new_rec_reason" class="form-control"> <?php foreach ($LETHE_BLACKLIST_REASON as $k => $v) { echo '<option value="' . $k . '">' . $v . '</option>'; } ?> </select> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="addRecord"> </label> <div><button type="submit" name="addRecord" id="addRecord" class="btn btn-primary"><?php
<div class="form-group"> <span><?php echo sh('wf9sOx76al'); ?> </span><label for="active"><?php echo letheglobal_active; ?> </label> <input type="checkbox" name="active" id="active" value="YES" class="ionc"<?php echo formSelector($sr->Get('isActive'), 1, 1); ?> > </div> <div class="form-group"> <span><?php echo sh('YysgHL1jSw'); ?> </span><label for="user_spec_view"><?php echo organizations_user_can_see_only_their_own_records; ?> </label> <input type="checkbox" name="user_spec_view" id="user_spec_view" value="YES" class="ionc"<?php echo formSelector($sr->Get('user_spec_view'), 1, 1); ?> > </div> <div class="form-group"> <label for="del"><?php echo letheglobal_delete; ?> </label>
<div class="form-group"> <span><?php echo sh('yUEjjdhSBH'); ?> </span><label for="del"><?php echo letheglobal_delete; ?> </label> <input type="checkbox" name="del" id="del" value="YES" data-alert-dialog-text="<?php echo letheglobal_are_you_sure_to_delete; ?> " class="ionc"> </div> <div class="form-group"> <span><?php echo sh('anxXc1c53S'); ?> </span><label for="resetCamp"><?php echo letheglobal_reset; ?> </label> <input type="checkbox" name="resetCamp" id="resetCamp" value="YES" class="ionc"> </div> <div class="form-group test-result"> </div> <div class="form-group"> <hr> <button type="button" class="LethePreview btn btn-warning"><span class="glyphicon glyphicon-eye-open"></span> <?php echo letheglobal_preview; ?>
<div> <input type="checkbox" name="lethe_system_notices" id="lethe_system_notices" data-on-label="<?php echo letheglobal_yes; ?> " data-off-label="<?php echo letheglobal_no; ?> " value="YES" class="letheSwitch"<?php echo formSelector(lethe_system_notices, 1, 1); ?> > </div> </div> <div class="form-group"> <label for="lethe_sidera_helper"><?php echo sh('PzWM4K4rqx'); ?> Pointips</label> <div> <input type="checkbox" name="lethe_sidera_helper" id="lethe_sidera_helper" data-on-label="<?php echo letheglobal_yes; ?> " data-off-label="<?php echo letheglobal_no; ?> " value="YES" class="letheSwitch"<?php echo formSelector(lethe_sidera_helper, 1, 1); ?> > </div> </div>
<?php namespace Bob\BuildConfig; register(new \Pipe\Bob\PipeTaskLibrary()); task('default', array('test')); task('test', array('phpunit.xml'), function () { sh('phpunit tests/'); }); copyTask("phpunit.dist.xml", "phpunit.xml");
<head> <title>Change Creator</title> </head> <body> <h1>Change Creator</h1> <?php require "function.php"; if ($_POST["confirmed"] != "true") { echo "Enter the new creator of the skin '" . $_GET["skin"] . "'.\n"; echo "<form action=\"change_creator.php" . $args . "\" method=\"post\" enctype=\"multipart/form-data\">\n"; echo "<table cellpadding=\"5\">\n"; echo "<tr><td>New Creator</td><td><input name=\"new_creator\" type=\"text\"></td></tr>\n"; echo "</table>\n"; echo "<input name=\"skin\" type=\"hidden\" value=\"" . $_GET["skin"] . "\">\n"; echo "<input name=\"confirmed\" type=\"hidden\" value=\"true\">\n"; echo "<br><input type=\"submit\" value=\"Change Creator\">\n"; echo "</form>\n"; } else { $command = "./change_creator.sh " . sh($_POST["skin"]) . " " . sh($_POST["new_creator"]); echo "Script Output:<br>\n"; echo "<textarea cols=\"100\" rows=\"20\" style=\"resize:none\" readonly>\n"; echo linestart(">>> ", shell_exec($command)); echo "</textarea><br><br>\n"; } echo "\n<br><a href=\"index.php" . $args . "\">Back To Skin Database</a>\n"; ?> </body> </html>
</script> </div> <div role="tabpanel" class="tab-pane fade" id="bounce"> <?php $bounceActList = json_decode($opAccRs['bounce_actions'], true); foreach ($LETHE_BOUNCE_TYPES as $k => $v) { $frmAct = array_key_exists($k, $bounceActList) ? $bounceActList[$k] : 0; ?> <div class="form-group"> <label for="bounces_<?php echo $k; ?> "><?php echo sh('pRP9MnRKZo') . $v['name']; ?> </label> <select name="bounces_<?php echo $k; ?> " id="bounces_<?php echo $k; ?> " class="form-control autoWidth"> <?php foreach ($LETHE_BOUNCE_ACTIONS as $ak => $av) { echo '<option value="' . $ak . '"' . formSelector($frmAct, $ak, 0) . '>' . $av . '</option>'; } ?> </select>
if (isset($_POST['preview'])) { ?> <section class="grid_12"> <div class="box"> <div class="title"><?php echo at('Preview Template'); ?> - <?php echo CHtml::encode(Yii::app()->formtags->replaceTags($model->title, array('user' => $model->user))); ?> </div> <div class='inside'> <div class="in"> <div class="grid_12"> <?php echo sh(Yii::app()->formtags->replaceTags($model->content)); ?> </div> <div class="clear"></div> </div> </div> </div> </section> <?php } ?> <section class="grid_12"> <div class="box"> <div class="title"><?php echo $model->isNewRecord ? at('Create Template') : at('Update Template');
public function fieldModeller() { global $LETHE_SUBSCRIBE_SAVE_FIELDS; $fieldData = ''; /* Save Area */ if ($this->fieldType != 'recaptcha' && $this->fieldType != 'addremove') { $fieldData .= '<div class="form-group"><label for="fieldSave">' . sh('kA6j3CA0Ci') . subscribers_recording_area . '</label>'; $fieldData .= '<select name="fieldSave" id="fieldSave" class="form-control autoWidth">'; foreach ($LETHE_SUBSCRIBE_SAVE_FIELDS as $kf => $vf) { if (cntData("SELECT ID FROM " . db_table_pref . "subscribe_form_fields WHERE OID=" . set_org_id . " AND FID=" . $this->FID . " AND field_save='" . mysql_prep($kf) . "'") == 0 || $kf == 'subscriber_full_data') { $fieldData .= '<option value="' . $kf . '">' . $vf . '</option>'; } } $fieldData .= '</select></div>'; } # ********************************** /* Text */ if ($this->fieldType == 'text' || $this->fieldType == 'phone' || $this->fieldType == 'number' || $this->fieldType == 'url' || $this->fieldType == 'textarea') { $fieldData .= '<div class="form-group"><label for="f_field_label">' . sh('MTpWva4d4t') . subscribers_field_label . '</label>'; $fieldData .= '<input type="text" name="f_field_label" id="f_field_label" class="form-control" required>'; $fieldData .= '</div>'; $fieldData .= '<div class="form-group"><label for="f_field_placeholder">' . sh('ynYKnxzFx4') . subscribers_placeholder . '</label>'; $fieldData .= '<input type="text" name="f_field_placeholder" id="f_field_placeholder" class="form-control">'; $fieldData .= '</div>'; $fieldData .= '<div class="form-group"><label for="f_field_pattern">' . sh('b7H8gLtspF') . subscribers_regex_pattern . '</label>'; $fieldData .= '<input type="text" name="f_field_pattern" id="f_field_pattern" class="form-control">'; $fieldData .= '</div>'; $fieldData .= '<div class="container-fluid"><div class="col-md-4"><div class="form-group">'; $fieldData .= '<span>' . sh('DQzwYjoVhQ') . '</span> <label><input type="checkbox" name="isRequired" id="isRequired" value="YES"> ' . subscribers_required . '?</label>'; $fieldData .= '</div></div>'; $fieldData .= '<div class="col-md-8"><div class="form-group errAlertField sHide">'; $fieldData .= '<label for="f_field_error">' . sh('pkikR7j8Zb') . subscribers_error_message . '</label><input type="text" name="f_field_error" id="f_field_error" class="form-control input-sm">'; $fieldData .= '</div></div></div>'; } else { if ($this->fieldType == 'date') { $fieldData .= '<div class="form-group"><label for="f_field_label">' . sh('MTpWva4d4t') . subscribers_field_label . '</label>'; $fieldData .= '<input type="text" name="f_field_label" id="f_field_label" class="form-control" required>'; $fieldData .= '</div>'; $fieldData .= '<div class="form-group"><label for="f_field_placeholder">' . sh('ynYKnxzFx4') . subscribers_placeholder . '</label>'; $fieldData .= '<input type="text" name="f_field_placeholder" id="f_field_placeholder" class="form-control">'; $fieldData .= '</div>'; $fieldData .= '<div class="form-group"><label for="f_field_pattern">' . sh('b7H8gLtspF') . subscribers_regex_pattern . '</label>'; $fieldData .= '<input type="text" name="f_field_pattern" id="f_field_pattern" class="form-control">'; $fieldData .= '</div>'; $fieldData .= '<div class="container-fluid"><div class="col-md-4"><div class="form-group">'; $fieldData .= '<span>' . sh('DQzwYjoVhQ') . '</span> <label><input type="checkbox" name="isRequired" id="isRequired" value="YES"> ' . subscribers_required . '?</label>'; $fieldData .= '</div></div>'; $fieldData .= '<div class="col-md-8"><div class="form-group errAlertField sHide">'; $fieldData .= '<label for="f_field_error">' . sh('pkikR7j8Zb') . subscribers_error_message . '</label><input type="text" name="f_field_error" id="f_field_error" class="form-control input-sm">'; $fieldData .= '</div></div></div>'; $fieldData .= '<div class="container-fluid"><div class="col-md-5"><div class="form-group">'; $fieldData .= '<span>' . sh('rt7Cq8bHvu') . '</span> <label><input type="checkbox" name="isDatepicker" id="isDatepicker" value="YES"> ' . subscribers_add_datepicker . '</label>'; $fieldData .= '</div></div></div>'; } else { if ($this->fieldType == 'select') { $fieldData .= '<div class="form-group"><label for="f_field_label">' . sh('MTpWva4d4t') . subscribers_field_label . '</label>'; $fieldData .= '<input type="text" name="f_field_label" id="f_field_label" class="form-control" required>'; $fieldData .= '</div>'; $fieldData .= '<div class="form-group"><label for="f_field_select">' . sh('MTpWva4d4t') . subscribers_options . '</label>'; $fieldData .= '<select name="f_field_select" id="f_field_select" class="form-control" multiple></select>'; $fieldData .= '</div>'; $fieldData .= '<div class="form-group"> <label>' . sh('6WYoauQXgG') . subscribers_controls . '</label> <button type="button" onclick="javascript:listbox_move(\'f_field_select\', \'up\',\'' . letheglobal_please_select_a_option_to_move . '\');" class="btn btn-warning btn-sm init-list tooltips" title="' . letheglobal_up . '"><span class="glyphicon glyphicon-chevron-up"></span></button> <button type="button" onclick="javascript:listbox_move(\'f_field_select\', \'down\',\'' . letheglobal_please_select_a_option_to_move . '\');" class="btn btn-warning btn-sm init-list tooltips" title="' . letheglobal_down . '"><span class="glyphicon glyphicon-chevron-down"></span></button> <button type="button" onclick="javascript:listbox_remove(\'f_field_select\',\'' . letheglobal_please_select_a_option_to_remove . '\');" class="btn btn-danger btn-sm init-list tooltips" title="' . letheglobal_delete . '"><span class="glyphicon glyphicon-remove"></span></button> </div> '; $fieldData .= '<div class="container-fluid"><label>' . sh('iqHcTILAYR') . subscribers_new_option . '</label><div class="clearfix"></div>'; $fieldData .= '<div class="col-md-6"><input id="boxKey" type="text" class="form-control" placeholder="' . subscribers_value . '"></div>'; $fieldData .= '<div class="col-md-6"> <div class="input-group"> <input type="text" id="boxVal" class="form-control" placeholder="' . subscribers_text . '"> <span class="input-group-btn"> <button class="btn btn-success" id="addBoxItem" type="button">' . letheglobal_add . '</button> </span> </div> </div>'; $fieldData .= '</div>'; $fieldData .= '<hr><div class="container-fluid"><div class="col-md-4"><div class="form-group">'; $fieldData .= '<span>' . sh('DQzwYjoVhQ') . '</span> <label><input type="checkbox" name="isRequired" id="isRequired" value="YES"> ' . subscribers_required . '?</label>'; $fieldData .= '</div></div>'; $fieldData .= '<div class="col-md-8"><div class="form-group errAlertField sHide">'; $fieldData .= '<label for="f_field_error">' . sh('pkikR7j8Zb') . subscribers_error_message . '</label><input type="text" name="f_field_error" id="f_field_error" class="form-control input-sm">'; $fieldData .= '</div></div></div>'; $fieldData .= '<input type="hidden" name="f_field_data" id="tempbox" value="">'; $fieldData .= '<script> /* Add Item */ $("#addBoxItem").click(function(){ var commaSep = ""; if($("#tempbox").val()==""){commaSep="";}else{commaSep=",";} if($("#boxKey").val()=="" || $("#boxVal").val()==""){alert("' . letheglobal_please_enter_a_value . '");return false;} $("#tempbox").val($("#tempbox").val()+commaSep+$("#boxKey").val()+":"+$("#boxVal").val()); $("#boxKey").val(""); $("#boxVal").val(""); var newList = $("#tempbox").val().split(","); /* Clear List */ $("#f_field_select").html(""); /* Make List */ for (a in newList) { parseData = newList[a].split(":"); $("#f_field_select").append(\'<option value="\'+ parseData[0] +\'">\'+ parseData[1] +\'</option>\'); } }); /* Init List */ $(".init-list").click(function(){ var initData = ""; $("#f_field_select > option").each(function() { if(initData!=""){initData=initData+",";} initData = initData + $(this).text() + ":" + $(this).val(); }); $("#tempbox").val(initData); }); /* Init Helpers */ $(".tooltips").tooltip(); </script>'; } else { if ($this->fieldType == 'checkbox') { $fieldData .= '<div class="form-group"><label for="f_field_label">' . sh('MTpWva4d4t') . subscribers_field_label . '</label>'; $fieldData .= '<input type="text" name="f_field_label" id="f_field_label" class="form-control" required>'; $fieldData .= '</div>'; $fieldData .= '<div class="form-group"><label for="f_field_select">' . sh('MTpWva4d4t') . subscribers_options . '</label>'; $fieldData .= '<select name="f_field_select" id="f_field_select" class="form-control" multiple></select>'; $fieldData .= '</div>'; $fieldData .= '<div class="form-group"> <label>' . sh('6WYoauQXgG') . subscribers_controls . '</label> <button type="button" onclick="javascript:listbox_move(\'f_field_select\', \'up\',\'' . letheglobal_please_select_a_option_to_move . '\');" class="btn btn-warning btn-sm init-list tooltips" title="' . letheglobal_up . '"><span class="glyphicon glyphicon-chevron-up"></span></button> <button type="button" onclick="javascript:listbox_move(\'f_field_select\', \'down\',\'' . letheglobal_please_select_a_option_to_move . '\');" class="btn btn-warning btn-sm init-list tooltips" title="' . letheglobal_down . '"><span class="glyphicon glyphicon-chevron-down"></span></button> <button type="button" onclick="javascript:listbox_remove(\'f_field_select\',\'' . letheglobal_please_select_a_option_to_remove . '\');" class="btn btn-danger btn-sm init-list tooltips" title="' . letheglobal_delete . '"><span class="glyphicon glyphicon-remove"></span></button> </div> '; $fieldData .= '<div class="container-fluid"><label>' . sh('iqHcTILAYR') . subscribers_new_option . '</label><div class="clearfix"></div>'; $fieldData .= '<div class="col-md-6"><input id="boxKey" type="text" class="form-control" placeholder="' . subscribers_value . '"></div>'; $fieldData .= '<div class="col-md-6"> <div class="input-group"> <input type="text" id="boxVal" class="form-control" placeholder="' . subscribers_text . '"> <span class="input-group-btn"> <button class="btn btn-success" id="addBoxItem" type="button">' . letheglobal_add . '</button> </span> </div> </div>'; $fieldData .= '</div>'; $fieldData .= '<hr><div class="container-fluid"><div class="col-md-4"><div class="form-group">'; $fieldData .= '<span>' . sh('DQzwYjoVhQ') . '</span> <label><input type="checkbox" name="isRequired" id="isRequired" value="YES"> ' . subscribers_required . '?</label>'; $fieldData .= '</div></div>'; $fieldData .= '<div class="col-md-8"><div class="form-group errAlertField sHide">'; $fieldData .= '<label for="f_field_error">' . sh('pkikR7j8Zb') . subscribers_error_message . '</label><input type="text" name="f_field_error" id="f_field_error" class="form-control input-sm">'; $fieldData .= '</div></div></div>'; $fieldData .= '<input type="hidden" name="f_field_data" id="tempbox" value="">'; $fieldData .= '<script> /* Add Item */ $("#addBoxItem").click(function(){ var commaSep = ""; if($("#tempbox").val()==""){commaSep="";}else{commaSep=",";} if($("#boxKey").val()=="" || $("#boxVal").val()==""){alert("' . letheglobal_please_enter_a_value . '");return false;} $("#tempbox").val($("#tempbox").val()+commaSep+$("#boxKey").val()+":"+$("#boxVal").val()); $("#boxKey").val(""); $("#boxVal").val(""); var newList = $("#tempbox").val().split(","); /* Clear List */ $("#f_field_select").html(""); /* Make List */ for (a in newList) { parseData = newList[a].split(":"); $("#f_field_select").append(\'<option value="\'+ parseData[0] +\'">\'+ parseData[1] +\'</option>\'); } }); /* Init List */ $(".init-list").click(function(){ var initData = ""; $("#f_field_select > option").each(function() { if(initData!=""){initData=initData+",";} initData = initData + $(this).text() + ":" + $(this).val(); }); $("#tempbox").val(initData); }); /* Init Helpers */ $(".tooltips").tooltip(); </script>'; } else { if ($this->fieldType == 'radio') { $fieldData .= '<div class="form-group"><label for="f_field_label">' . sh('MTpWva4d4t') . subscribers_field_label . '</label>'; $fieldData .= '<input type="text" name="f_field_label" id="f_field_label" class="form-control" required>'; $fieldData .= '</div>'; $fieldData .= '<div class="form-group"><label for="f_field_select">' . sh('MTpWva4d4t') . subscribers_options . '</label>'; $fieldData .= '<select name="f_field_select" id="f_field_select" class="form-control" multiple></select>'; $fieldData .= '</div>'; $fieldData .= '<div class="form-group"> <label>' . sh('6WYoauQXgG') . subscribers_controls . '</label> <button type="button" onclick="javascript:listbox_move(\'f_field_select\', \'up\',\'' . letheglobal_please_select_a_option_to_move . '\');" class="btn btn-warning btn-sm init-list tooltips" title="' . letheglobal_up . '"><span class="glyphicon glyphicon-chevron-up"></span></button> <button type="button" onclick="javascript:listbox_move(\'f_field_select\', \'down\',\'' . letheglobal_please_select_a_option_to_move . '\');" class="btn btn-warning btn-sm init-list tooltips" title="' . letheglobal_down . '"><span class="glyphicon glyphicon-chevron-down"></span></button> <button type="button" onclick="javascript:listbox_remove(\'f_field_select\',\'' . letheglobal_please_select_a_option_to_remove . '\');" class="btn btn-danger btn-sm init-list tooltips" title="' . letheglobal_delete . '"><span class="glyphicon glyphicon-remove"></span></button> </div> '; $fieldData .= '<div class="container-fluid"><label>' . sh('iqHcTILAYR') . subscribers_new_option . '</label><div class="clearfix"></div>'; $fieldData .= '<div class="col-md-6"><input id="boxKey" type="text" class="form-control" placeholder="' . subscribers_value . '"></div>'; $fieldData .= '<div class="col-md-6"> <div class="input-group"> <input type="text" id="boxVal" class="form-control" placeholder="' . subscribers_text . '"> <span class="input-group-btn"> <button class="btn btn-success" id="addBoxItem" type="button">' . letheglobal_add . '</button> </span> </div> </div>'; $fieldData .= '</div>'; $fieldData .= '<hr><div class="container-fluid"><div class="col-md-4"><div class="form-group">'; $fieldData .= '<span>' . sh('DQzwYjoVhQ') . '</span> <label><input type="checkbox" name="isRequired" id="isRequired" value="YES"> ' . subscribers_required . '?</label>'; $fieldData .= '</div></div>'; $fieldData .= '<div class="col-md-8"><div class="form-group errAlertField sHide">'; $fieldData .= '<label for="f_field_error">' . sh('pkikR7j8Zb') . subscribers_error_message . '</label><input type="text" name="f_field_error" id="f_field_error" class="form-control input-sm">'; $fieldData .= '</div></div></div>'; $fieldData .= '<input type="hidden" name="f_field_data" id="tempbox" value="">'; $fieldData .= '<script> /* Add Item */ $("#addBoxItem").click(function(){ var commaSep = ""; if($("#tempbox").val()==""){commaSep="";}else{commaSep=",";} if($("#boxKey").val()=="" || $("#boxVal").val()==""){alert("' . letheglobal_please_enter_a_value . '");return false;} $("#tempbox").val($("#tempbox").val()+commaSep+$("#boxKey").val()+":"+$("#boxVal").val()); $("#boxKey").val(""); $("#boxVal").val(""); var newList = $("#tempbox").val().split(","); /* Clear List */ $("#f_field_select").html(""); /* Make List */ for (a in newList) { parseData = newList[a].split(":"); $("#f_field_select").append(\'<option value="\'+ parseData[0] +\'">\'+ parseData[1] +\'</option>\'); } }); /* Init List */ $(".init-list").click(function(){ var initData = ""; $("#f_field_select > option").each(function() { if(initData!=""){initData=initData+",";} initData = initData + $(this).text() + ":" + $(this).val(); }); $("#tempbox").val(initData); }); /* Init Helpers */ $(".tooltips").tooltip(); </script>'; } else { if ($this->fieldType == 'recaptcha') { global $LETHE_SUBSCRIBE_FORM_RECAPTCHA_LANG; $fieldData .= '<div class="form-group"><label for="f_field_label">' . sh('MTpWva4d4t') . subscribers_field_label . '</label>'; $fieldData .= '<input type="text" name="f_field_label" id="f_field_label" class="form-control" required>'; $fieldData .= '</div>'; $fieldData .= '<div class="form-group"><label for="f_field_error">' . sh('pkikR7j8Zb') . subscribers_error_message . '</label><input type="text" name="f_field_error" id="f_field_error" class="form-control"></div>'; $fieldData .= '<div class="form-group"><label for="f_field_recapt_api">' . sh('za7rBvqrZy') . subscribers_api_version . '</label><select name="f_field_recapt_api" id="f_field_recapt_api" class="form-control autoWidth"><option value="v1">API V1</option><option value="v2">API V2</option></select></div> <div id="f_field_recapt_api_lang_area"><input type="hidden" name="f_field_recapt_api_lang" value="en"></div> <div id="f_field_recapt_api_theme_area"><input type="hidden" name="f_field_recapt_api_theme" value="light"></div> <div id="f_field_recapt_api_type_area"><input type="hidden" name="f_field_recapt_api_type" value="image"></div> <script> $("#f_field_recapt_api").on("change",function(){ if($(this).val()=="v1"){ $("#f_field_recapt_api_lang_area").html(\'<input type="hidden" name="f_field_recapt_api_lang" value="en">\'); $("#f_field_recapt_api_theme_area").html(\'<input type="hidden" name="f_field_recapt_api_theme" value="light">\'); $("#f_field_recapt_api_type_area").html(\'<input type="hidden" name="f_field_recapt_api_type" value="image">\'); }else{ // Language $("#f_field_recapt_api_lang_area").html(\'<div class="form-group"><label for="f_field_recapt_api_lang">' . sh('ZlPryzxM0A') . subscribers_language . '</label><select name="f_field_recapt_api_lang" id="f_field_recapt_api_lang" class="form-control autoWidth"></select></div>\');'; foreach ($LETHE_SUBSCRIBE_FORM_RECAPTCHA_LANG as $kk => $vv) { $fieldData .= '$("#f_field_recapt_api_lang").append(\'<option value="' . $kk . '">' . $vv . '</option>\');'; } $fieldData .= ' // Theme $("#f_field_recapt_api_theme_area").html(\'<div class="form-group"><label for="f_field_recapt_api_theme">' . sh('zb3rOGprAQ') . subscribers_theme . '</label><select name="f_field_recapt_api_theme" id="f_field_recapt_api_theme" class="form-control autoWidth"><option value="light">Light</option><option value="dark">Dark</option></select></div>\'); // Type $("#f_field_recapt_api_type_area").html(\'<div class="form-group"><label for="f_field_recapt_api_type">' . sh('41PgQN2rna') . subscribers_type . '</label><select name="f_field_recapt_api_type" id="f_field_recapt_api_type" class="form-control autoWidth"><option value="image">Image</option><option value="audio">Audio</option></select></div>\'); } }); </script> '; } else { if ($this->fieldType == 'addremove') { $fieldData .= '<div class="form-group"><label for="f_field_error">' . sh('pkikR7j8Zb') . subscribers_error_message . '</label><input type="text" name="f_field_error" id="f_field_error" class="form-control"></div>'; $fieldData .= '<div class="form-group"><label for="f_addremove_add">' . subscribers_add_label . ':</label><input type="text" name="f_addremove_add" id="f_addremove_add" class="form-control" placeholder="' . letheglobal_add . '"></div>'; $fieldData .= '<div class="form-group"><label for="f_addremove_remove">' . subscribers_label_of_remove . ':</label><input type="text" name="f_addremove_remove" id="f_addremove_remove" class="form-control" placeholder="' . letheglobal_remove . '"></div>'; } } } } } } } /* Actions */ $fieldData .= '<script> $("#isRequired").change(function(){ $(".errAlertField").slideToggle(); }); $(".intoAjax input[type=checkbox]").ionCheckRadio(); </script> '; return $fieldData; }
</colgroup> <tr> <td>Dictionary name</td> <td>Words</td> <td>Description</td> <td>Error</td> </tr> <?php foreach ($dic_list as $v) { ?> <tr> <td><?php echo sh($v["fbookname"]); ?> </td> <td><?php echo sh($v["fwordcount"]); ?> </td> <td><?php echo sh($v["fdescription"]); ?> </td> <td><?php echo sh($v["ferror"]); ?> </td> </tr> <?php }
<div class="form-group"> <label for="sc-lists"><?php echo sh('44ql7ZGaYA') . letheglobal_short_codes; ?> <a href="javascript:;" class="sc-opener"><span class="glyphicon glyphicon-chevron-down"></span></a></label> <div id="sc-box" class="sHide"> <div class="well"><?php echo scList('details'); ?> </div> </div> </div> <div class="form-group"> <label for="details"><?php echo sh('gOZYzxBDQL') . letheglobal_details; ?> </label> <textarea class="mceEditor form-control" id="details" name="details"><?php echo $sr->Get('temp_contents'); ?> </textarea> </div> <?php if ($sr->Get('temp_type') == 'normal') { ?> <div class="form-group"> <label for="del"><?php echo letheglobal_delete; ?>