示例#1
0
" value="YES" class="letheSwitch"<?php 
echo isset($_POST['org_random_load']) && $_POST['org_random_load'] == 'YES' ? ' checked' : '';
?>
>
							</div>
						</div>
						
						<div class="form-group">
							<label for="org_load_type"><?php 
echo sh('07NRNro5bL') . organizations_load;
?>
</label>
							<select name="org_load_type" id="org_load_type" class="form-control autoWidth">
								<?php 
foreach ($LETHE_LOAD_TYPES as $k => $v) {
    echo '<option value="' . $k . '"' . (isseter('org_load_type', 0, 1) ? formSelector($_POST['org_load_type'], $k, 0) : '') . '>' . $v . '</option>';
}
?>
							</select>
						</div>
					
					</div>
				  </div>

				</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>
示例#2
0
</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>
					<input type="checkbox" data-alert-dialog-text="<?php 
                echo letheglobal_are_you_sure_to_delete;
                ?>
" name="del" id="del" value="YES" class="ionc">
				</div>
				<?php 
            }
示例#3
0
				</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>
	</div>
    <div role="tabpanel" class="tab-pane fade" id="save">
	&nbsp;
	<div class="form-group">
		<button type="submit" name="saveSets" id="saveSets" class="btn btn-primary"><?php 
echo letheglobal_save;
?>
</button>
	</div>
	</div>
  </div>
示例#4
0
" value="YES" class="letheSwitch"<?php 
                echo defined('set_org_random_load') && set_org_random_load == 1 ? ' checked' : '';
                ?>
>
				</div>
			</div>
			
			<div class="form-group">
				<label for="org_load_type"><?php 
                echo sh('07NRNro5bL') . organizations_load;
                ?>
</label>
				<select name="org_load_type" id="org_load_type" class="form-control autoWidth">
					<?php 
                foreach ($LETHE_LOAD_TYPES as $k => $v) {
                    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">
			&nbsp;
			<?php 
                if (!$sr->Get('isPrimary')) {
                    ?>
			<div class="form-group">
				<span><?php 
                    echo sh('za7rBvQrZy');
示例#5
0
</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>
				<input type="checkbox" data-alert-dialog-text="<?php 
                    echo letheglobal_are_you_sure_to_delete;
                    ?>
" name="del" id="del" value="YES" class="ionc">
			</div>
			<div class="form-group">
				<button name="editUser" id="editUser" class="btn btn-primary" type="submit"><?php 
示例#6
0
    public function fieldOptionEditor()
    {
        global $LETHE_SUBSCRIBE_SAVE_FIELDS;
        $fieldData = '<div class="intoAjax" id="fieldUpdForm">';
        $fieldSets = $this->fieldSettings;
        /* Save Area */
        if ($fieldSets['field_type'] != 'recaptcha' && $fieldSets['field_type'] != 'addremove' && $fieldSets['field_type'] != 'submit' && $fieldSets['field_type'] != 'email') {
            $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) {
                $fieldData .= $fieldSets['field_save'] != 'subscriber_full_data' && $fieldSets['field_save'] == $kf ? '<option value="' . $fieldSets['field_save'] . '" selected>' . $LETHE_SUBSCRIBE_SAVE_FIELDS[$fieldSets['field_save']] . '</option>' : '';
                if (cntData("SELECT ID FROM " . db_table_pref . "subscribe_form_fields WHERE OID=" . set_org_id . " AND FID=" . $fieldSets['FID'] . " AND field_save='" . mysql_prep($kf) . "'") == 0 || $kf == 'subscriber_full_data') {
                    $fieldData .= '<option value="' . $kf . '">' . $vf . '</option>';
                }
            }
            $fieldData .= '</select></div>';
        }
        /* Text */
        if ($fieldSets['field_type'] == 'text' || $fieldSets['field_type'] == 'phone' || $fieldSets['field_type'] == 'number' || $fieldSets['field_type'] == 'url' || $fieldSets['field_type'] == '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" value="' . showIn($fieldSets['field_label'], 'input') . '" 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" value="' . showIn($fieldSets['field_placeholder'], 'input') . '" 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" value="' . showIn($fieldSets['field_pattern'], 'input') . '" 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"' . formSelector($fieldSets['field_required'], 1, 2) . '> ' . subscribers_required . '?</label>';
            $fieldData .= '</div></div>';
            $fieldData .= '<div class="col-md-8"><div class="form-group errAlertField ' . ($fieldSets['field_required'] == 0 ? 'sHide' : '') . '">';
            $fieldData .= '<label for="f_field_error">' . sh('pkikR7j8Zb') . subscribers_error_message . '</label><input type="text" name="f_field_error" id="f_field_error" value="' . showIn($fieldSets['field_error'], 'input') . '" class="form-control input-sm">';
            $fieldData .= '</div></div></div>';
        } else {
            if ($fieldSets['field_type'] == '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" value="' . showIn($fieldSets['field_label'], 'input') . '" 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" value="' . showIn($fieldSets['field_placeholder'], 'input') . '">';
                $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" value="' . showIn($fieldSets['field_pattern'], 'input') . '">';
                $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"' . formSelector($fieldSets['field_required'], 1, 2) . '> ' . subscribers_required . '?</label>';
                $fieldData .= '</div></div>';
                $fieldData .= '<div class="col-md-8"><div class="form-group errAlertField ' . ($fieldSets['field_required'] == 0 ? '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" value="' . showIn($fieldSets['field_error'], 'input') . '">';
                $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"' . formSelector($fieldSets['field_data'], 'YES', 2) . '> ' . subscribers_add_datepicker . '</label>';
                $fieldData .= '</div></div></div>';
            } else {
                if ($fieldSets['field_type'] == '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" value="' . showIn($fieldSets['field_label'], 'input') . '" 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>';
                    $catchOpt = $fieldSets['field_data'];
                    if (!is_null($catchOpt)) {
                        $catchOpt = explode(",", $catchOpt);
                        foreach ($catchOpt as $o1 => $o2) {
                            $catchData = explode(':', $o2);
                            $fieldData .= '<option value="' . showIn(array_key_exists(0, $catchData) ? $catchData[0] : '', 'input') . '">' . showIn(array_key_exists(1, $catchData) ? $catchData[1] : '', 'page') . '</option>';
                        }
                    }
                    $fieldData .= '</select></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"' . formSelector($fieldSets['field_required'], 1, 2) . '> ' . subscribers_required . '?</label>';
                    $fieldData .= '</div></div>';
                    $fieldData .= '<div class="col-md-8"><div class="form-group errAlertField ' . ($fieldSets['field_required'] == 0 ? '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" value="' . showIn($fieldSets['field_error'], 'input') . '">';
                    $fieldData .= '</div></div></div>';
                    $fieldData .= '<input type="hidden" name="f_field_data" id="tempbox" value="' . showIn($fieldSets['field_data'], 'input') . '">';
                    $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 ($fieldSets['field_type'] == '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" value="' . showIn($fieldSets['field_label'], 'input') . '" 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>';
                        $catchOpt = $fieldSets['field_data'];
                        if (!is_null($catchOpt)) {
                            $catchOpt = explode(",", $catchOpt);
                            foreach ($catchOpt as $o1 => $o2) {
                                $catchData = explode(':', $o2);
                                $fieldData .= '<option value="' . showIn(array_key_exists(0, $catchData) ? $catchData[0] : '', 'input') . '">' . showIn(array_key_exists(1, $catchData) ? $catchData[1] : '', 'page') . '</option>';
                            }
                        }
                        $fieldData .= '</select></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"' . formSelector($fieldSets['field_required'], 1, 2) . '> ' . subscribers_required . '?</label>';
                        $fieldData .= '</div></div>';
                        $fieldData .= '<div class="col-md-8"><div class="form-group errAlertField ' . ($fieldSets['field_required'] == 0 ? '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" value="' . showIn($fieldSets['field_error'], 'input') . '">';
                        $fieldData .= '</div></div></div>';
                        $fieldData .= '<input type="hidden" name="f_field_data" id="tempbox" value="' . showIn($fieldSets['field_data'], 'input') . '">';
                        $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 ($fieldSets['field_type'] == '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" value="' . showIn($fieldSets['field_label'], 'input') . '" 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>';
                            $catchOpt = $fieldSets['field_data'];
                            if (!is_null($catchOpt)) {
                                $catchOpt = explode(",", $catchOpt);
                                foreach ($catchOpt as $o1 => $o2) {
                                    $catchData = explode(':', $o2);
                                    $fieldData .= '<option value="' . showIn(array_key_exists(0, $catchData) ? $catchData[0] : '', 'input') . '">' . showIn(array_key_exists(1, $catchData) ? $catchData[1] : '', 'page') . '</option>';
                                }
                            }
                            $fieldData .= '</select></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"' . formSelector($fieldSets['field_required'], 1, 2) . '> ' . subscribers_required . '?</label>';
                            $fieldData .= '</div></div>';
                            $fieldData .= '<div class="col-md-8"><div class="form-group errAlertField ' . ($fieldSets['field_required'] == 0 ? '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" value="' . showIn($fieldSets['field_error'], 'input') . '">';
                            $fieldData .= '</div></div></div>';
                            $fieldData .= '<input type="hidden" name="f_field_data" id="tempbox" value="' . showIn($fieldSets['field_data'], 'input') . '">';
                            $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 ($fieldSets['field_type'] == 'recaptcha') {
                                global $LETHE_SUBSCRIBE_FORM_RECAPTCHA_LANG;
                                $recaptData = explode("@", $fieldSets['field_data']);
                                if (!array_key_exists(1, $recaptData)) {
                                    $recaptData[1] = 'en';
                                }
                                if (!array_key_exists(2, $recaptData)) {
                                    $recaptData[2] = 'light';
                                }
                                if (!array_key_exists(3, $recaptData)) {
                                    $recaptData[3] = 'image';
                                }
                                $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" value="' . showIn($fieldSets['field_label'], 'input') . '" 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" value="' . showIn($fieldSets['field_error'], 'input') . '" 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"' . formSelector($recaptData[0], 'v1', 0) . '>API V1</option><option value="v2"' . formSelector($recaptData[0], 'v2', 0) . '>API V2</option></select></div>
			<div id="f_field_recapt_api_lang_area">
			';
                                if ($recaptData[0] == 'v1') {
                                    $fieldData .= '
								<input type="hidden" name="f_field_recapt_api_lang" value="en">
								<input type="hidden" name="f_field_recapt_api_theme" value="light">
								<input type="hidden" name="f_field_recapt_api_type" value="image">
							';
                                } else {
                                    $fieldData .= '<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">';
                                    foreach ($LETHE_SUBSCRIBE_FORM_RECAPTCHA_LANG as $kk => $vv) {
                                        $fieldData .= '<option value="' . $kk . '"' . formSelector($recaptData[1], $kk, 0) . '>' . $vv . '</option>';
                                    }
                                    $fieldData .= '
							</select>
						 
						 </div>
						 
						 <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"' . formSelector($recaptData[2], 'light', 0) . '>Light</option>
								<option value="dark"' . formSelector($recaptData[2], 'dark', 0) . '>Dark</option>
							<select>
						 </div>
						 <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"' . formSelector($recaptData[3], 'image', 0) . '>Image</option>
								<option value="audio"' . formSelector($recaptData[3], 'audio', 0) . '>Audio</option>
							<select>
						 </div>
						 ';
                                }
                                $fieldData .= '
			</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">\');
					}else{
						$("#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 .= '
					}
				});
			</script>';
                            } else {
                                if ($fieldSets['field_type'] == 'addremove') {
                                    $addRemOpt = explode("[@]", $fieldSets['field_data']);
                                    $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" value="' . showIn($fieldSets['field_error'], 'input') . '"></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 . '" value="' . showIn($addRemOpt[0], 'input') . '"></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 . '" value="' . showIn($addRemOpt[1], 'input') . '"></div>';
                                }
                            }
                        }
                    }
                }
            }
        }
        /* E-Mail */
        if ($fieldSets['field_type'] == 'email') {
            $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" value="' . showIn($fieldSets['field_label'], 'input') . '" 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" value="' . showIn($fieldSets['field_placeholder'], 'input') . '" 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" value="' . showIn($fieldSets['field_pattern'], 'input') . '" class="form-control">';
            $fieldData .= '</div>';
            $fieldData .= '<div class="form-group">';
            $fieldData .= '<label for="f_field_error">' . sh('pkikR7j8Zb') . subscribers_error_message . '</label><input type="text" name="f_field_error" id="f_field_error" value="' . showIn($fieldSets['field_error'], 'input') . '" class="form-control input-sm">';
            $fieldData .= '</div>';
        }
        /* Submit */
        if ($fieldSets['field_type'] == 'submit') {
            $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" value="' . showIn($fieldSets['field_label'], 'input') . '" required>';
            $fieldData .= '</div>';
        }
        /* Delete Box */
        if ($fieldSets['field_type'] != 'email' && $fieldSets['field_type'] != 'submit') {
            $fieldData .= '<hr><div class="form-group">
				<span>' . sh('Y3lrxePM75') . '</span> <label><input type="checkbox" name="del" id="del" value="YES"> ' . letheglobal_delete . '</label>
			</div>';
        }
        /* Save Button */
        $fieldData .= '<hr><div class="form-group"><button type="button" name="updateFields" id="updateFields" class="btn btn-primary">' . letheglobal_save . '</button></div>';
        /* Actions */
        $fieldData .= '</div><div id="field-upd-result"></div><script>
						$("#isRequired").change(function(){
							$(".errAlertField").slideToggle();
						});
						$(".intoAjax input[type=checkbox]").ionCheckRadio();
						
						/* Send Data */
						$("#updateFields").click(function(){
							$.ajax({
								url: "modules/lethe.subscribers/act.xmlhttp.php?pos=updateFields&ID=' . $fieldSets['ID'] . '",
								type: "POST",
								data: $("#fieldUpdForm input,#fieldUpdForm select").serialize(),
								success: function(data){
									$("#field-upd-result").html(data);
									getAjax("#sortable-container","modules/lethe.subscribers/act.xmlhttp.php?pos=fieldorders&ID=' . $fieldSets['FID'] . '","<span class=\\"spin glyphicon glyphicon-refresh\\"></span>");
								},
								error: function(){
									$("#field-upd-result").html("<div class=\\"alert alert-danger\\">' . subscribers_there_is_error_while_submit . '</div>");
								}
							});
							});
						
						
					</script>
					';
        return $fieldData;
    }
示例#7
0
                $fieldData .= '
		</div>
		<div class="form-group">
			<label for="ar_end">' . autoresponder_finish_the_campaign . '</label> 
			<input type="checkbox" name="ar_end" id="ar_end" class="ionc" value="YES"' . formSelector($ar_end, 1, 1) . '>
		</div>
		';
            } else {
                if ($ppos == 3) {
                    $fieldData = '
		<div class="form-group">
			<label for="ar_time">' . letheglobal_before . ': </label><span class="clearfix"></span>
			<input type="text" name="ar_time[]" id="ar_time" value="' . showIn($ar_time, 'input') . '" class="form-control autoWidth sInline" placeholder="1">
			<select name="ar_time[]" id="ar_time_type" class="form-control autoWidth sInline">';
                    foreach ($LETHE_AR_TIME_TYPES as $k => $v) {
                        $fieldData .= '<option value="' . $k . '"' . formSelector($ar_time_type, $k, 0) . '>' . $v . '</option>';
                    }
                    $fieldData .= '
			</select>
			<span class="clearfix"></span>
		</div>
		';
                } else {
                    $fieldData = '
		<div class="bounceMeh"><strong class="text-danger">' . autoresponder_please_choose_an_action . '!</strong> <span class="glyphicon glyphicon-chevron-up"></span></div>
		<script>
			$("div.bounceMeh").effect("bounce", { times:4, distance:15 }, "slow");
		</script>
		';
                }
            }
示例#8
0
                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>
					</div>
					<?php 
            }
            ?>
				
				</div>
				<div role="tabpanel" class="tab-pane fade" id="save">
					&nbsp;
					<div class="form-group">
						<label for="del"><?php 
            echo letheglobal_delete;
            ?>
示例#9
0
									<option value="0"<?php 
                        echo formSelector($listMod, 0, 0);
                        ?>
><?php 
                        echo letheglobal_clicks;
                        ?>
</option>
									<option value="1"<?php 
                        echo formSelector($listMod, 1, 0);
                        ?>
><?php 
                        echo letheglobal_opens;
                        ?>
</option>
									<option value="2"<?php 
                        echo formSelector($listMod, 2, 0);
                        ?>
><?php 
                        echo letheglobal_bounces;
                        ?>
</option>
								</select>
								<button type="button" name="getReport" id="getReport" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-stats"></span></button>
							</div>
						</div>
					</form>
				</div><hr>
				
				<script src="Scripts/Chart.min.js"></script>
					<?php 
                        /* Make Graph */
示例#10
0
			<div class="form-group">
				<label for="subscriber_company">' . letheglobal_company . '</label>
				<input type="text" class="form-control" id="subscriber_company" name="subscriber_company" value="' . showIn($sr->Get('subscriber_company'), 'input') . '">
			</div>
			<div class="form-group">
				<label for="subscriber_verify">' . letheglobal_verification . '</label>
				<select class="form-control autoWidth" id="subscriber_verify" name="subscriber_verify">';
        foreach ($LETHE_VERIFICATION_TYPE as $k => $v) {
            $editForm .= '<option value="' . $k . '"' . formSelector($sr->Get('subscriber_verify'), $k, 0) . '>' . $v . '</option>';
        }
        $editForm .= '
				</select>
			</div>
			<div class="form-group">
				<label for="subscriber_active">' . letheglobal_active . '</label>
				<input type="checkbox" class="ionc" id="subscriber_active" name="subscriber_active" value="YES"' . formSelector($sr->Get('subscriber_active'), 1, 1) . '>
			</div>
			<div class="form-group">
				<button type="submit" name="editSubscriber" id="editSubscriber" class="btn btn-success">' . letheglobal_save . '</button>
			</div>
		
		</form>
		
		<script>
		$(".ionc").ionCheckRadio();
				/* Call Updater */
				$("#subUpdater").on("submit",function(e){
					
					e.preventDefault();
					$("#updateResult").html("<span class=\\"spin glyphicon glyphicon-refresh\\"></span>");
					$.ajax({
示例#11
0
        echo errMod(letheglobal_record_not_found, 'danger');
    } else {
        $opRecs = $myconn->query("SELECT \n\t\t\t\t\t\t\t\t\t\tS.*,\n\t\t\t\t\t\t\t\t\t\tSG.ID AS SGID,\n\t\t\t\t\t\t\t\t\t\tSG.group_name\n\t\t\t\t\t\t\t  FROM \n\t\t\t\t\t\t\t\t\t\t" . db_table_pref . "subscribers AS S,\n\t\t\t\t\t\t\t\t\t\t" . db_table_pref . "subscriber_groups AS SG\n\t\t\t\t\t\t\t WHERE \n\t\t\t\t\t\t\t\t\t\tS.OID=" . set_org_id . "\n\t\t\t\t\t\t\t   AND\n\t\t\t\t\t\t\t\t\t\t(SG.ID=S.GID)\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t" . $rndQry . "\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t LIMIT \n\t\t\t\t\t\t\t\t\t\t{$dtStart},{$limit}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t") or die(mysqli_error($myconn));
        ?>
<div class="pull-right">
<select class="input-sm form-control autoWidth" onchange="javascript:location.href = this.value;">
<?php 
        $pgVarList = '?p=' . $p;
        $pgVarList .= '&amp;src_on=' . $src_on;
        $pgVarList .= '&amp;src_v=' . urlencode($src_v);
        $pgVarList .= '&amp;src_grp=' . urlencode($src_grp);
        $pgVarList .= '&amp;src_act=' . urlencode($src_act);
        $pgVarList .= '&amp;src_vrf=' . urlencode($src_vrf);
        $pgVarList .= '&amp;src_c=' . urlencode($src_c);
        for ($i = 25; $i <= 200; $i += 25) {
            echo '<option value="' . $pgVarList . '&amp;limit=' . intval($i) . '"' . formSelector($limit, $i, 0) . '>' . $i . '</option>';
        }
        ?>
</select><br>
</div>
<link rel="stylesheet" href="css/prism.css">
		<form method="POST" name="sbrForm" id="sbrForm" action="" class="clearfix">        
		<table class="footable table">
			<thead>
				<tr>
					<th data-sort-ignore="true"><div class="inlineIonc text-center"><label for="checkAll"></label><input type="checkbox" name="checkAll" id="checkAll" class="ionc"></div></th>
					<th data-hide="phone"><?php 
        echo letheglobal_name;
        ?>
</th>
					<th><?php 
示例#12
0
</label>
									<input type="checkbox" class="ionc" name="publish_form" id="publish_form" value="YES"<?php 
                    echo formSelector($opDraftRs['isDraft'], 0, 2);
                    ?>
>
								</div>	
								<div class="form-group">
									<span><?php 
                    echo sh('wLqHKcpIoy');
                    ?>
</span><label for="stop_form"><?php 
                    echo subscribers_disable_subscription;
                    ?>
</label>
									<input type="checkbox" class="ionc" name="stop_form" id="stop_form" value="YES"<?php 
                    echo formSelector($opDraftRs['subscription_stop'], 1, 2);
                    ?>
>
								</div>	
								<?php 
                    if ($opDraftRs['isDraft'] == 0 && $opDraftRs['isSystem'] != 1) {
                        ?>
								<div class="form-group">
									<span><?php 
                        echo sh('YfZ5D0jvh9');
                        ?>
</span><label for="del"><?php 
                        echo letheglobal_delete;
                        ?>
</label>
									<input type="checkbox" class="ionc" name="del" id="del" value="YES" data-alert-dialog-text="<?php