コード例 #1
0
ファイル: ajax.php プロジェクト: arunabh1911/ecom
[]" type="text" class="mediuminput" /> <strong style="cursor: pointer;" onclick="$(this).closest('i').remove()">x</strong> <br /> </i> 
<?php 
    die;
}
if ($_POST['acts'] == 'getField') {
    if ($_POST['fld'] == 'textfield') {
        getTextfiels();
    }
    if ($_POST['fld'] == 'textarea') {
        getTextarea();
    }
    if ($_POST['fld'] == 'images') {
        getImage();
    }
    if ($_POST['fld'] == 'checkbox') {
        getCheckbox();
    }
    if ($_POST['fld'] == 'radio') {
        getRadio();
    }
    if ($_POST['fld'] == 'list') {
        getList();
    }
}
function getTextfiels()
{
    $nm = substr(number_format(time() * rand(), 0, '', ''), 0, 4);
    ?>
<p>
	<label>Text Field &nbsp;&nbsp; <span onclick="$(this).closest('p').remove()" style="cursor: pointer; color:#AB144D"><strong>X</strong></span> </label>
	<span class="field">
コード例 #2
0
function template_settings_blocks()
{
    global $scripturl, $context, $txt, $adkportal, $boardurl, $adkFolder;
    $explode1 = explode(',', $adkportal['shout_allowed_groups_view']);
    $explode2 = explode(',', $adkportal['shout_allowed_groups']);
    echo '
		<form method="post" action="' . $scripturl . '?action=admin;area=blocks;sa=savesettingsblocks2">
			<table style="width: 100%;"> 
				<tr>
					<td style="width: 50%" valign="top">
						<table style="width: 100%;">
							<tr>
								<td>
									<span class="clear upperframe">
										<span>&nbsp;</span>	
									</span>
									<div class="roundframe">
										<div>
											<img style="vertical-align: middle;" src="' . $adkFolder['images'] . '/news.png" alt="" />
											<strong>' . $txt['adkblock_aporte'] . '</strong>
											<hr />
											<div class="smalltext">
												<table style="width: 100%;">
													<tr>
														<td style="width: 90%;">
															', help_link('adkblock_number_news', 'adkhelp_number_news'), '
														</td>
														<td style="width: 10%; text-align: right;">
															<input type="text" size="2" maxlength="2" name="adk_news" value="', !empty($adkportal['adk_news']) ? $adkportal['adk_news'] : '', '" />
														</td>
													</tr>
													<tr>
														<td style="width: 90%;">
															', help_link('adkblock_twitter_facebook', 'adkhelp_twitter_facebook'), '
														</td>
														<td style="width: 10%; text-align: right;">
															<input type="checkbox" name="adk_bookmarks_news"', getCheckbox('adk_bookmarks_news'), ' />
														</td>
													</tr>
													<tr>
														<td style="width: 90%;">
															', help_link('adkblock_disable_autor', 'adkhelp_disable_autor'), '
														</td>
														<td style="width: 10%; text-align: right;">
															<input type="checkbox" name="adk_disable_autor"', getCheckbox('adk_disable_autor'), ' />
														</td>
													</tr>
												</table>
											</div>
										</div>
									</div>
									<span class="lowerframe">
										<span>&nbsp;</span>	
									</span>	
								</td>
							</tr>
							<tr>
								<td>
									<span class="clear upperframe">
										<span>&nbsp;</span>	
									</span>
									<div class="roundframe">
										<div>
											<img style="vertical-align: middle;" src="' . $adkFolder['images'] . '/news.png" alt="" />
											<strong>' . $txt['adkblock_last_post'] . '</strong>
											<hr />
											<div class="smalltext">
												<table style="width: 100%;">
													<tr>
														<td style="width: 90%;">
															' . $txt['adkblock_number_post'] . '
														</td>
														<td style="width: 10%; text-align: right;">
															<input type="text" size="2" maxlength="2" name="ultimos_mensajes" value="', !empty($adkportal['ultimos_mensajes']) ? $adkportal['ultimos_mensajes'] : '', '" />
														</td>
													</tr>
													<tr>
														<td style="width: 90%;">
															', help_link('adkblock_two_column', 'adkhelp_two_column'), '
														</td>
														<td style="width: 10%; text-align: right;">
															<input type="checkbox" name="adk_two_column"', getCheckbox('adk_two_column'), ' />
														</td>
													</tr>
												</table>
											</div>
										</div>
									</div>
									<span class="lowerframe">
										<span>&nbsp;</span>	
									</span>	
								</td>
							</tr>
							<tr>
								<td colspan="2">
									<span class="clear upperframe">
										<span>&nbsp;</span>	
									</span>
									<div class="roundframe">
										<div>
											<img style="vertical-align: middle;" src="' . $adkFolder['images'] . '/news.png" alt="" />
											<strong>' . $txt['adkblock_autonews'] . '</strong>
											<hr />
											<div class="smalltext">
												<table style="width: 100%;">
													<tr>
														<td style="width: 90%;">
															', help_link('adkblock_auto_news_limit_body', 'adkhelp_auto_news_limit_body'), '
														</td>
														<td style="width: 10%; text-align: right;">
															<input type="text" size="3" name="auto_news_limit_body" value="', !empty($adkportal['auto_news_limit_body']) ? $adkportal['auto_news_limit_body'] : '0', '" />
														</td>
													</tr>
													<tr>
														<td style="width: 90%;">
															', help_link('adkblock_news_limit_topics', 'adkhelp_news_limit_topics'), '
														</td>
														<td style="width: 10%; text-align: right;">
															<input type="text" size="3" name="auto_news_limit_topics" value="', !empty($adkportal['auto_news_limit_topics']) ? $adkportal['auto_news_limit_topics'] : '', '" />
														</td>
													</tr>
													<tr>
														<td style="width: 90%;">
															', help_link('adkblock_news_size_img', 'adkhelp_news_size_img'), '
														</td>
														<td style="width: 10%; text-align: right;">
															<input type="text" size="3" name="auto_news_size_img" value="', !empty($adkportal['auto_news_size_img']) ? $adkportal['auto_news_size_img'] : '0', '" />
														</td>
													</tr>
													<tr>
														<td style="width: 90%;">
															', help_link('adkblock_twitter_facebook', 'adkhelp_twitter_facebook'), '
														</td>
														<td style="width: 10%; text-align: right;">
															<input type="checkbox" name="adk_bookmarks_autonews"', getCheckbox('adk_bookmarks_autonews'), ' />
														</td>
													</tr>
												</table>
												<table style="width: 100%;">
													<tr>
														<td valign="top" style="width: 30%;">
															', help_link('adkblock_autonews_boards', 'adkhelp_autonews_boards'), '
														</td>
														<td style="width: 70%; text-align: right;">';
    $id_boards = explode(',', $adkportal['auto_news_id_boards']);
    echo '
															<select name="auto_news_id_boards[]" size="9" multiple="multiple" style="width: 88%;">';
    foreach ($context['jump_to'] as $category) {
        echo '
																<option disabled="disabled">----------------------------------------------------</option>
																<option disabled="disabled">', $category['name'], '</option>
																<option disabled="disabled">----------------------------------------------------</option>';
        foreach ($category['boards'] as $board) {
            echo '
																<option value="', $board['id'], '" ', isset($id_boards) ? in_array($board['id'], $id_boards) ? 'selected="selected"' : '' : '', '> ' . str_repeat('&nbsp;&nbsp;&nbsp; ', $board['child_level']) . '|--- ' . $board['name'] . '</option>';
        }
    }
    echo '
															</select>
														</td>
													</tr>
												</table>
											</div>
										</div>
									</div>
									<span class="lowerframe">
										<span>&nbsp;</span>	
									</span>
								</td>
							</tr>
						</table>
					</td>
					<td style="width: 50%;" valign="top">
						<table style="width: 100%;">
							<tr>
								<td>
									<span class="clear upperframe">
										<span>&nbsp;</span>	
									</span>
									<div class="roundframe">
										<div>
											<img style="vertical-align: middle;" src="' . $adkFolder['images'] . '/package.png" alt="" />
											<strong>' . $txt['adkblock_top_poster'] . '</strong>
											<hr />
											<div class="smalltext">
												<table style="width: 100%;">
													<tr>
														<td style="width: 90%;">
															' . $txt['adkblock_top_poster_limit'] . '
														</td>
														<td style="width: 10%; text-align: right;">
															<input type="text" size="2" maxlength="2" name="top_poster"  value="', !empty($adkportal['top_poster']) ? $adkportal['top_poster'] : '', '" />
														</td>
													</tr>
													<tr>
														<td style="width: 90%;">
															' . $txt['adkblock_avatar_topposter'] . '
														</td>
														<td style="width: 10%; text-align: right;">
															<input type="checkbox" name="noavatar_top_poster"', getCheckbox('noavatar_top_poster'), ' />
														</td>
													</tr>
												</table>
											</div>
										</div>
									</div>
									<span class="lowerframe">
										<span>&nbsp;</span>	
									</span>	
								</td>
							</tr>
							<tr>
								<td>
									<span class="clear upperframe">
										<span>&nbsp;</span>	
									</span>
									<div class="roundframe">
										<div>
											<img style="vertical-align: middle;" src="' . $adkFolder['images'] . '/package.png" alt="" />
											<strong>' . $txt['adkblock_users_online'] . '</strong>
											<hr />
											<div class="smalltext">
												<table style="width: 100%;">
													<tr>
														<td style="width: 90%;">
															' . $txt['adkblock_vertically_who'] . '
														</td>
														<td style="width: 10%; text-align: right;">
															<input type="checkbox" name="adk_vertically_who"', getCheckbox('adk_vertically_who'), ' />
														</td>
													</tr>
												</table>
											</div>
										</div>
									</div>
									<span class="lowerframe">
										<span>&nbsp;</span>	
									</span>
								</td>
							</tr>
							<tr>
								<td>
								<span class="clear upperframe">
										<span>&nbsp;</span>	
									</span>
									<div class="roundframe">
										<img style="vertical-align: middle;" src="' . $adkFolder['images'] . '/package.png" alt="" />
										<strong>', $txt['adkblock_shout'], '</strong>
										<hr />
										<div class="smalltext">
											<table style="width: 100%">
												<tr>
													<td style="width: 50%;">
														' . $txt['adkblock_shout_g_allowed_view'] . '
													</td>
													<td style="width: 50%;">
														<fieldset>
															<legend style="color: teal">' . $txt['adkblock_select_group'] . '</legend>
																<div class="adk_padding_8 text_align_center">
																	<select name="shout_allowed_groups_view[]" multiple="multiple" style="width: 88%;">
																		<option value="-1"', in_array(-1, $explode1) ? ' selected="selected"' : '', '>' . $txt['adkblock_guests'] . '</option>
																		<option value="0"', in_array(0, $explode1) ? ' selected="selected"' : '', '>' . $txt['adkblock_regulars_users'] . '</option>';
    if (!empty($context['memberadk'])) {
        foreach ($context['memberadk'] as $i => $v) {
            echo '<option value="' . $i . '"', in_array($i, $explode1) ? ' selected="selected"' : '', '>' . $v['name'] . '</option>';
        }
    }
    echo '
																	</select>
																</div>
														</fieldset>							
													</td>
												</tr>
												<tr>
													<td style="width: 50%;">
														' . $txt['adkblock_shout_g_allowed_topost'] . '
													</td>
													<td style="width: 50%;">
														<fieldset>
															<legend style="color: teal">' . $txt['adkblock_select_group'] . '</legend>
																<div class="adk_padding_8 text_align_center">
																	<select name="shout_allowed_groups[]" multiple="multiple" style="width: 88%;">
																		<option value="-1"', in_array(-1, $explode2) ? ' selected="selected"' : '', '>' . $txt['adkblock_guests'] . '</option>
																		<option value="0"', in_array(0, $explode2) ? ' selected="selected"' : '', '>' . $txt['adkblock_regulars_users'] . '</option>';
    if (!empty($context['memberadk'])) {
        foreach ($context['memberadk'] as $i => $v) {
            echo '<option value="' . $i . '"', in_array($i, $explode2) ? ' selected="selected"' : '', '>' . $v['name'] . '</option>';
        }
    }
    echo '
																	</select>
																</div>
														</fieldset>							
													</td>
												</tr>
												<tr>
													<td colspan="2">
														<div class="text_align_center" style="margin-top: 5px;">
															<a href="' . $scripturl . '?action=admin;area=blocks;sa=shoutboxdeleteall;' . $context['session_var'] . '=' . $context['session_id'] . '">
																<input type="button" value="' . $txt['adkblock_delete_allshoutbox'] . '" class="button_submit" />
															</a>
															<input type="hidden" name="sc" value="', $context['session_id'], '" />
														</div>
													</td>
												</tr>
											</table>
										</div>
									</div>
								<span class="lowerframe">
										<span>&nbsp;</span>	
									</span>	
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<table style="width: 100%;">
				<tr>
					<td colspan="2" align="center">
						<span class="clear upperframe">
							<span>&nbsp;</span>	
						</span>
						<div class="roundframe">
							<div>
								<input type="submit" value="' . $txt['save'] . '" class="button_submit" />
								<input type="hidden" name="sc" value="' . $context['session_id'] . '" />
							</div>
						</div>
						<span class="lowerframe">
							<span>&nbsp;</span>	
						</span>	
					</td>
				</tr>
			</table>
		</form>';
}
コード例 #3
0
    <td valign="top" class="primary">
      <?php printMyInputText("cutter_word",10,10,$postVars,$pageErrors); ?>
    </td>
  </tr>
*/
?>
  <tr>
    <td class="primary" valign="top">
      <label for="auto_collect"><?php 
echo $loc->getText("lookup_optsAutoCollection");
?>
</label>
    </td>
    <td valign="top" class="primary">
      <?php 
echo getCheckbox('auto_collect', $postVars);
?>
    </td>
<?php 
/*
  <tr>
    <td nowrap="true" class="primary">
      <label for="fiction_name"><?php echo $loc->getText("lookup_optsFictionName"); ?></label>
    </td>
    <td valign="top" class="primary">
      <?php printMyInputText("fiction_name",30,40,$postVars,$pageErrors); ?>
    </td>
  </tr>
*/
?>
  <tr>
コード例 #4
0
ファイル: builder-add.php プロジェクト: arunabh1911/ecom
<?php 
if ($_REQUEST['id']) {
    $bl1 = $db->runQuery("select * from " . BUILDER . " where formId = '" . $_REQUEST['id'] . "' ");
    while ($buil = $db->getQuery($bl1)) {
        echo '<p></p>';
        if ($buil['type'] == 'textfield') {
            getTextfiels($buil['label'], $buil['require']);
        }
        if ($buil['type'] == 'textarea') {
            getTextarea($buil['label'], $buil['require']);
        }
        if ($buil['type'] == 'image') {
            getImage($buil['label'], $buil['require']);
        }
        if ($buil['type'] == 'checkbox') {
            getCheckbox($buil['label'], $buil['require'], $buil['subLabel']);
        }
        if ($buil['type'] == 'radio') {
            getRadio($buil['label'], $buil['require'], $buil['subLabel']);
        }
        if ($buil['type'] == 'list') {
            getList($buil['label'], $buil['require'], $buil['subLabel']);
        }
    }
}
?>

<span id="dat"></span>

                  <p class="stdformbutton">                     
						<?php 
コード例 #5
0
ファイル: suppliers-view.php プロジェクト: arunabh1911/ecom
    ?>
" class="subcontent" style="display: none">	
     <?php 
    @($fieldlist = $db->runQuery("SELECT * FROM " . BUILDER . "  where formId='" . $view1['formId'] . "' "));
    while (@($fields = $db->getQuery($fieldlist))) {
        if ($fields['type'] == 'textfield') {
            getTextfiels($fields['label'], $fields['require'], str_replace(' ', '', $fields['label'] . '_' . $fields['id']), $fields['field_answer']);
        }
        if ($fields['type'] == 'textarea') {
            getTextarea($fields['label'], $fields['require'], str_replace(' ', '', $fields['label'] . '_' . $fields['id']), $fields['field_answer']);
        }
        if ($fields['type'] == 'image') {
            getImage($fields['label'], $fields['require'], str_replace(' ', '', $fields['label'] . '_' . $fields['id'] . '[]'), $fields['field_answer']);
        }
        if ($fields['type'] == 'checkbox') {
            getCheckbox($fields['label'], $fields['require'], $fields['subLabel'], str_replace(' ', '', $fields['label'] . '_' . $fields['id'] . '[]'), $fields['field_answer']);
        }
        if ($fields['type'] == 'radio') {
            getRadio($fields['label'], $fields['require'], $fields['subLabel'], str_replace(' ', '', $fields['label'] . '_' . $fields['id']), $fields['field_answer']);
        }
        if ($fields['type'] == 'list') {
            getList($fields['label'], $fields['require'], $fields['subLabel'], str_replace(' ', '', $fields['label'] . '_' . $fields['id']), $fields['field_answer']);
        }
    }
    ?>
    
    <p>
<span class="field">
<input type="hidden" name="admin" value="updateform-answer" />
<input type="hidden" name="userId" value="<?php 
    echo $_REQUEST['userId'];
コード例 #6
0
function template_contact_admin()
{
    global $scripturl, $context, $txt, $adkportal, $boardurl, $adkFolder;
    $toview = array();
    if (!empty($adkportal['adk_groups_contact'])) {
        $toview = explode(',', $adkportal['adk_groups_contact']);
    }
    echo '
		<form method="post" action="' . $scripturl . '?action=admin;area=modules;sa=save_contact">
			<div class="cat_bar">
				<h3 class="catbg">
					<img alt="" src="' . $adkFolder['images'] . '/newmsg.png" style="vertical-align: middle;" />&nbsp;', $txt['adkmodules_options'], '
				</h3>
			</div>
			<span class="clear upperframe">
				<span>&nbsp;</span>	
			</span>
			<div class="roundframe">
				<div>
			<table style="width: 100%;">
				<tr>
					<td style="width: 50%;">
						', $txt['adkmodules_enable_contact'], '
					</td>
					<td style="width: 50%; text-align: left;">
						<input type="checkbox" name="adk_enable_contact"', getCheckbox('adk_enable_contact'), ' />
					</td>
				</tr>
			</table>
			<div class="adk_padding_8">
				<table style="width: 100%;">
					<tr class="smalltext">
						<td style="width: 50%;">
							&nbsp;
						</td>
						<td style="width: 50%;">
							<fieldset>
								<legend style="color: teal">' . $txt['adkmodules_group_view'] . '</legend>';
    foreach ($context['groups'] as $id_group => $info_group) {
        echo '
								<input type="checkbox" name="toview[' . $id_group . ']"', isset($toview) && in_array($id_group, $toview) ? ' checked="checked"' : '', ' />' . $info_group['name'] . '<br />';
    }
    echo '
								<div style="text-align: right;">
									<i>' . $txt['adkmodules_check_all'] . '</i>
									<input style="vertical-align: middle;" type="checkbox" onclick="invertAll(this, this.form, \'toview\');" />
								</div>
							</fieldset>
						</td>
					</tr>
				</table>
			</div>
			<hr />
			<div align="center">
				<input type="submit" value="', $txt['save'], '" class="button_submit" />
				<input type="hidden" name="sc" value="', $context['session_id'], '" />
			</div>
				</div>
			</div>
			<span class="lowerframe">
				<span>&nbsp;</span>	
			</span>	
		</form>';
}
コード例 #7
0
     }
     writeTR2(sprintf($lngstr['label_choice_no'], $i), '<table cellpadding=0 cellspacing=1 border=0 width="100%"><tr vAlign=top><td width="100%">' . getTextEditor($i_answers_editor, 'answer_text[' . $i . ']', $i_answer_text, 3) . '</td><td vAlign=middle width=150><nobr>' . getCheckbox('answer_correct[' . $i . ']', $i_answer_correct, $lngstr['label_accept_as_correct'], ' onclick="changeChoicePercents(this, ' . $i . ')"') . '</nobr><br><nobr>' . getInputElement('answer_percents[' . $i . ']', $i_answer_percents, 3) . ' ' . $lngstr['label_answer_percents'] . '</nobr></td></tr></table>');
     $i_rowno++;
     writeTR2(sprintf($lngstr['label_answer_feedback_no'], $i), getTextEditor($i_feedback_editor, 'answer_feedback_' . $i, $i_answer_feedback, 3));
     $i = 2;
     $i_answer_text = $lngstr['label_atype_truefalse_false'];
     $i_answer_feedback = '';
     $i_answer_correct = false;
     $i_answer_percents = 0;
     if (!$i_rSet3->EOF) {
         $i_answer_text = $i_rSet3->fields['answer_text'];
         $i_answer_feedback = $i_rSet3->fields['answer_feedback'];
         $i_answer_correct = $i_rSet3->fields['answer_correct'];
         $i_answer_percents = $i_rSet3->fields['answer_percents'];
     }
     writeTR2(sprintf($lngstr['label_choice_no'], $i), '<table cellpadding=0 cellspacing=1 border=0 width="100%"><tr vAlign=top><td width="100%">' . getTextEditor($i_answers_editor, 'answer_text[' . $i . ']', $i_answer_text, 3) . '</td><td vAlign=middle width=150><nobr>' . getCheckbox('answer_correct[' . $i . ']', $i_answer_correct, $lngstr['label_accept_as_correct'], ' onclick="changeChoicePercents(this, ' . $i . ')"') . '</nobr><br><nobr>' . getInputElement('answer_percents[' . $i . ']', $i_answer_percents, 3) . ' ' . $lngstr['label_answer_percents'] . '</nobr></td></tr></table>');
     $i_rowno++;
     writeTR2(sprintf($lngstr['label_answer_feedback_no'], $i), getTextEditor($i_feedback_editor, 'answer_feedback_' . $i, $i_answer_feedback, 3));
     break;
 case QUESTION_TYPE_FILLINTHEBLANK:
     writeTR2($lngstr['page_editquestion_answer_count'], '1');
     writeTR2($lngstr['page_editquestion_question_text'], getTextEditor($G_SESSION['config_editortype'], 'question_text', !empty($i_rSet1->fields['question_text']) ? $i_rSet1->fields['question_text'] : $lngstr['page_editquestion_emptyquestion']));
     $i = 1;
     $i_answer_text = '';
     if (!$i_rSet3->EOF) {
         $i_answer_text = $i_rSet3->fields['answer_text'];
     }
     writeTR2(sprintf($lngstr['label_answer_text'], $i), getTextEditor(0, 'answer_text[' . $i . ']', $i_answer_text, 3));
     break;
 case QUESTION_TYPE_ESSAY:
     writeTR2($lngstr['page_editquestion_answer_count'], $lngstr['label_notapplicable']);
コード例 #8
0
ファイル: cpanel.php プロジェクト: no2key/MuuCMS
function getTFoot($trash)
{
    global $Load;
    $CPanel_Model = $Load->model("CPanel_Model");
    $application = whichApplication();
    if ($application) {
        $colors[0] = _color1;
        $colors[1] = _color2;
        $colors[2] = _color3;
        $colors[3] = _color4;
        $colors[4] = _color5;
        $i = 0;
        $a = 0;
        $j = 2;
    }
    $data = $CPanel_Model->records($trash);
    $tFoot = array();
    if ($data) {
        foreach ($data as $record) {
            if ($record["Situation"] === "Deleted") {
                $color = $colors[$j];
            } else {
                $color = $colors[$i];
            }
            if ($application === "ads") {
                if ($record["Situation"] === "Deleted") {
                    $action = $CPanel_Model->action(TRUE, $record["ID_Ad"]);
                } else {
                    $action = $CPanel_Model->action(FALSE, $record["ID_Ad"]);
                }
                $tFoot = $CPanel_Model->getTFoot($a, "checkbox", getCheckbox($record["ID_Ad"]), $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "i", $color, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID", $record["ID_Ad"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Title", $record["Title"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Position", $record["Position"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Banner", $record["Banner"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Principal", $record["Principal"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Situation", $record["Situation"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Action", $action, $tFoot);
            } elseif ($application === "applications") {
                if ($record["Situation"] === "Deleted") {
                    $action = $CPanel_Model->action(TRUE, $record["ID_Application"]);
                } else {
                    $action = $CPanel_Model->action(FALSE, $record["ID_Application"]);
                }
                $tFoot = $CPanel_Model->getTFoot($a, "checkbox", getCheckbox($record["ID_Application"]), $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "i", $color, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID", $record["ID_Application"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Title", $record["Title"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "CPanel", $record["CPanel"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Adding", $record["Adding"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "BeDefault", $record["BeDefault"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Comments", $record["Comments"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Category", $record["Category"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Situation", $record["Situation"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Action", $action, $tFoot);
            } elseif ($application === "blog") {
                if ($record["Situation"] === "Deleted") {
                    $action = $CPanel_Model->action(TRUE, $record["ID_Post"]);
                } else {
                    $action = $CPanel_Model->action(FALSE, $record["ID_Post"]);
                }
                $tFoot = $CPanel_Model->getTFoot($a, "checkbox", getCheckbox($record["ID_Post"]), $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "i", $color, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID", $record["ID_Post"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Title", $record["Title"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Author", $record["Author"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Language", $record["Language"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Situation", $record["Situation"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Action", $action, $tFoot);
            } elseif ($application === "pages") {
                if ($record["Situation"] === "Deleted") {
                    $action = $CPanel_Model->action(TRUE, $record["ID_Page"]);
                } else {
                    $action = $CPanel_Model->action(FALSE, $record["ID_Page"]);
                }
                $tFoot = $CPanel_Model->getTFoot($a, "checkbox", getCheckbox($record["ID_Page"]), $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "i", $color, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID", $record["ID_Page"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Title", $record["Title"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Language", $record["Language"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Principal", $record["Principal"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Situation", $record["Situation"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Action", $action, $tFoot);
            } elseif ($application === "links") {
                if ($record["Situation"] === "Deleted") {
                    $action = $CPanel_Model->action(TRUE, $record["ID_Link"]);
                } else {
                    $action = $CPanel_Model->action(FALSE, $record["ID_Link"]);
                }
                $tFoot = $CPanel_Model->getTFoot($a, "checkbox", getCheckbox($record["ID_Link"]), $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "i", $color, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID", $record["ID_Link"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Title", $record["Title"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "URL", $record["URL"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Category", $record["Position"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Situation", $record["Situation"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Action", $action, $tFoot);
            } elseif ($application === "videos") {
                if ($record["Situation"] === "Deleted") {
                    $action = $CPanel_Model->action(TRUE, $record["ID_Video"]);
                } else {
                    $action = $CPanel_Model->action(FALSE, $record["ID_Video"]);
                }
                $tFoot = $CPanel_Model->getTFoot($a, "checkbox", getCheckbox($record["ID_Video"]), $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "i", $color, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID", $record["ID_Video"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Title", $record["Title"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID_YouTube", $record["ID_YouTube"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Situation", $record["Situation"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Action", $action, $tFoot);
            } elseif ($application === "feedback") {
                if ($record["Situation"] === "Deleted") {
                    $action = $CPanel_Model->action(TRUE, $record["ID_Feedback"]);
                } else {
                    $action = $CPanel_Model->action(FALSE, $record["ID_Feedback"]);
                }
                $tFoot = $CPanel_Model->getTFoot($a, "checkbox", getCheckbox($record["ID_Feedback"]), $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "i", $color, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID", $record["ID_Feedback"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Name", $record["Name"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Email", $record["Email"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Subject", $record["Subject"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Text_Date", $record["Text_Date"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Situation", $record["Situation"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Action", $action, $tFoot);
            } elseif ($application === "gallery") {
                if ($record["Situation"] === "Deleted") {
                    $action = $CPanel_Model->action(TRUE, $record["ID_Image"]);
                } else {
                    $action = $CPanel_Model->action(FALSE, $record["ID_Image"]);
                }
                $tFoot = $CPanel_Model->getTFoot($a, "checkbox", getCheckbox($record["ID_Image"]), $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "i", $color, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID", $record["ID_Image"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Title", $record["Title"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Album", $record["Album"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Image", _webURL . _sh . $record["Original"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Situation", $record["Situation"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Action", $action, $tFoot);
            } elseif ($application === "polls") {
                if ($record["Situation"] === "Deleted") {
                    $action = $CPanel_Model->action(TRUE, $record["ID_Poll"]);
                } else {
                    $action = $CPanel_Model->action(FALSE, $record["ID_Poll"]);
                }
                $tFoot = $CPanel_Model->getTFoot($a, "checkbox", getCheckbox($record["ID_Poll"]), $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "i", $color, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID", $record["ID_Poll"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Title", $record["Title"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Type", $record["Type"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Situation", $record["Situation"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Action", $action, $tFoot);
            } elseif ($application === "users") {
                if ($record["Situation"] === "Deleted") {
                    $action = $CPanel_Model->action(TRUE, $record["ID_User"]);
                } else {
                    $action = $CPanel_Model->action(FALSE, $record["ID_User"]);
                }
                $tFoot = $CPanel_Model->getTFoot($a, "checkbox", getCheckbox($record["ID_User"]), $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "i", $color, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID", $record["ID_User"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Username", $record["Username"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Email", $record["Email"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Situation", $record["Situation"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Action", $action, $tFoot);
            } elseif ($application === "works") {
                if ($record["Situation"] === "Deleted") {
                    $action = $CPanel_Model->action(TRUE, $record["ID_Work"]);
                } else {
                    $action = $CPanel_Model->action(FALSE, $record["ID_Work"]);
                }
                $tFoot = $CPanel_Model->getTFoot($a, "checkbox", getCheckbox($record["ID_Work"]), $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "i", $color, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID", $record["ID_Work"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Title", $record["Title"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Preview", _webURL . _sh . $record["Image"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Preview1", _webURL . _sh . $record["Preview1"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Preview2", _webURL . _sh . $record["Preview2"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Situation", $record["Situation"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Action", $action, $tFoot);
            } elseif ($application === "comments") {
                $Applications_Model = $Load->model("Applications_Model");
                $Application = $Applications_Model->getApplication($record["ID_Application"]);
                $Users_Model = $Load->model("Users_Model");
                $result = $Users_Model->getUsername($record["ID_User"]);
                if (!$result) {
                    $Username = $record["Name"];
                } else {
                    $Username = $result["Username"];
                }
                $tFoot = $CPanel_Model->getTFoot($a, "checkbox", getCheckbox($record["ID_Comment"]), $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "i", $color, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID", $record["ID_Comment"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Application", $Application, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID_Element", $record["ID_Element"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Username", $Username, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Comment", $record["Comment"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Situation", $record["Situation"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Action", $action, $tFoot);
            } elseif ($application === "forums") {
                if ($record["Situation"] === "Deleted") {
                    $action = $CPanel_Model->action(TRUE, $record["ID_Forum"]);
                } else {
                    $action = $CPanel_Model->action(FALSE, $record["ID_Forum"]);
                }
                $tFoot = $CPanel_Model->getTFoot($a, "checkbox", getCheckbox($record["ID_Forum"]), $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "i", $color, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID", $record["ID_Forum"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Title", $record["Title"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Topics", $record["Topics"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Replies", $record["Replies"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Situation", $record["Situation"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Action", $action, $tFoot);
            } elseif ($application === "categories") {
                $Applications_Model = $Load->model("Applications_Model");
                $ID_Application = $Applications_Model->getApplicationByCategory($record["ID_Category"]);
                $record["Application"] = $Applications_Model->getApplication($ID_Application);
                if ($record["Situation"] === "Deleted") {
                    $action = $CPanel_Model->action(TRUE, $record["ID_Category"]);
                } else {
                    $action = $CPanel_Model->action(FALSE, $record["ID_Category"]);
                }
                $tFoot = $CPanel_Model->getTFoot($a, "checkbox", getCheckbox($record["ID_Category"]), $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "i", $color, $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "ID", $record["ID_Category"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Title", $record["Title"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Application", $record["Application"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Language", $record["Language"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Situation", $record["Situation"], $tFoot);
                $tFoot = $CPanel_Model->getTFoot($a, "Action", $action, $tFoot);
            }
            if ($i == 1) {
                $i = 0;
            } else {
                $i++;
            }
            $a++;
            if ($j == 3) {
                $j = 2;
            } else {
                $j++;
            }
        }
    } else {
        if ($application !== "comments") {
            redirect(path($application . _sh . "cpanel" . _sh . "add"));
        } else {
            return FALSE;
        }
    }
    return $tFoot;
}
コード例 #9
0
                $i_rSet2->MoveNext();
            }
            $i_rSet2->Close();
        }
    }
    //9917
    $i_rSet3 = $g_db->Execute("SELECT groupid, group_name FROM " . $srv_settings['table_prefix'] . "groups");
    if (!$i_rSet3) {
        showDBError(__FILE__, 3);
    } else {
        while (!$i_rSet3->EOF) {
            if ($i_groups_text) {
                $i_groups_text .= '<br>';
            }
            //9917
            $i_groups_text .= getCheckbox('group[' . $i_rSet3->fields['groupid'] . ']', in_array($i_rSet3->fields['groupid'], $arrUserGroups), $i_rSet3->fields['group_name']);
            $i_rSet3->MoveNext();
        }
        $i_rSet3->Close();
        $i_groups_text .= '<input name=group[0] type=hidden value=on>';
    }
    writeTR2Fixed($lngstr['page_users']['member_of'], $i_groups_text);
    echo '</table></div></td></tr>';
}
echo '<tr valign=top><td class=rowhdr2 colspan=2><a class=rowhdr2 href="javascript:void(0)" onclick="javascript:toggleSection(\'div_users_personal\')">' . $lngstr['page_users']['section_personal'] . '</td></tr>';
echo '<tr valign=top><td class=rowone colspan=2><div id=div_users_personal style="display:' . (isset($_COOKIE['div_users_personal']) && $_COOKIE['div_users_personal'] == 'Y' ? 'block' : 'none') . '"><table class=rowtable2 cellpadding=5 cellspacing=1 border=0 width="100%">';
writeTR2Fixed($lngstr['page_users']['address'], getTextArea('user_address', @$arrUserData['user_address']));
writeTR2Fixed($lngstr['page_users']['city'], getInputElement('user_city', @$arrUserData['user_city']));
writeTR2Fixed($lngstr['page_users']['state'], getInputElement('user_state', @$arrUserData['user_state']));
writeTR2Fixed($lngstr['page_users']['zip'], getInputElement('user_zip', @$arrUserData['user_zip']));
writeTR2Fixed($lngstr['page_users']['country'], getInputElement('user_country', @$arrUserData['user_country']));
コード例 #10
0
ファイル: skimlinks.php プロジェクト: 0hyeah/yurivn
	<tr align="center" class="alt2border">
		<th class="alt1" align="left" colspan="3"><?php 
    echo $vbphrase['forum'];
    ?>
</th>
		<th class="alt2">SkimLinks</th>
		<th class="alt1">SkimWords</th>
	</tr>
	<?php 
    construct_hidden_code('skimlinks_disable_forums', '');
    construct_hidden_code('skimwords_disable_forums', '');
    foreach ($vbulletin->forumcache as $forumid => $forum) {
        echo '<tr align="center" class="alt2border">
			<td class="alt1" align="left" colspan="3">' . str_repeat('--', $forum['depth']) . ' ' . $forum['title'] . '</td>
			<td class="alt2">' . (is_forum($forum) ? getCheckbox('skimlinks_disable_forums', $forumid, !in_array($forumid, $slForumDisable)) : '-') . '</td>
			<td class="alt1">' . (is_forum($forum) ? getCheckbox('skimwords_disable_forums', $forumid, !in_array($forumid, $swForumDisable)) : '-') . '</td>
			</tr>';
    }
    print_colspan_fix();
    print_table_header($vbphrase['threads']);
    print_description_row('<span class="normal">' . $vbphrase['skimlinks_product_activation_based_on_age_of_thread'] . '</span>', false, 5, 'thead');
    ?>
	<tr align="left">
		<th class="alt1" width="50%"><?php 
    echo $vbphrase['skimlinks_activate_skimlinks_in'];
    ?>
</th>
		<th class="alt2" width="50%"><?php 
    echo $vbphrase['skimlinks_activate_skimwords_in'];
    ?>
</th>
コード例 #11
0
function template_adksettings()
{
    global $scripturl, $context, $txt, $adkportal, $boardurl, $modSettings, $maintenance, $adkFolder;
    echo '
	<form method="post" action="' . $scripturl . '?action=admin;area=adkadmin;sa=adksavesettings">
		<div class="cat_bar">
			<h3 class="catbg">
				<img class="adk_vertical_align" alt="" src="' . $adkFolder['images'] . '/computer.png" />&nbsp;' . $txt['adkadmin_setting'] . '
			</h3>
		</div>
		<span class="clear upperframe">
			<span>&nbsp;</span>	
		</span>
		<div class="roundframe">
			<div>
				<table class="size_100">
					<tr>
						<td class="size_30">
							<b>' . $txt['adkadmin_general_settings'] . '</b>
						</td>
						<td class="size_70">
							<fieldset>
								<legend style="color: teal">' . $txt['adkadmin_setting'] . '</legend>
								<table class="size_100">
									<tr>
										<td class="size_60">
											', help_link('adkportal_activate', 'adkhelp_activate'), '
										</td>
										<td class="size_40 alingright">
											<select name="adk_enable">
												<option value="0"', analizar_selected_adk('adk_enable', 0), '>' . $txt['adkadmin_disable'] . '</option>
												<option value="1"', analizar_selected_adk('adk_enable', 1), '>' . $txt['adkadmin_enable'] . '</option>
												<option value="2"', analizar_selected_adk('adk_enable', 2), '>' . $txt['adkadmin_stand'] . '</option>
											</select>
										</td>
									</tr>
									
									<tr>
										<td class="size_60">
											', help_link('adkadmin_change_title', 'adkhelp_change_title'), '
										</td>
										<td class="size_40 alingright">
											<input type="text" name="change_title"  value="', !empty($adkportal['change_title']) ? $adkportal['change_title'] : '', '" />
										</td>
									</tr>
									<tr>
										<td class="size_60">
											', help_link('adkadmin_hide_version', 'adkhelp_hide_version'), '
										</td>
										<td class="size_40 alingright">
											<input type="checkbox" name="adk_hide_version"', getCheckbox('adk_hide_version'), ' />
										</td>
									</tr>
	
									<tr>
										<td class="size_60">
											', help_link('adkadmin_guest_view_post', 'adkhelp_guest_view_post'), '
										</td>
										<td class="size_40 alingright">
											<input type="checkbox" name="adk_guest_view_post"', getCheckbox('adk_guest_view_post'), ' />
										</td>
									</tr>

									<tr>
										<td class="size_60">
											', help_link('adkadmin_linktree_portal', 'adkhelp_linktree_portal'), '
										</td>
										<td class="size_40 alingright">
											<input type="checkbox" name="adk_linktree_portal"', getCheckbox('adk_linktree_portal'), ' />
										</td>
									</tr>

									<tr>
										<td class="size_60">
											', help_link('adkadmin_include_ssi', 'adkhelp_include_ssi'), '
										</td>
										<td class="size_40 alingright">
											<input type="checkbox" name="adk_include_ssi"', getCheckbox('adk_include_ssi'), ' />
										</td>
									</tr>

								</table>
							</fieldset>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<hr />
						</td>
					</tr>
					<tr>
						<td class="size_30">
							<b>' . $txt['adkadmin_columns_settings'] . '</b>
						</td>
						<td class="size_70">
							<fieldset>
								<legend style="color: teal">' . $txt['adkadmin_setting'] . '</legend>
								<table class="size_100">
									<tr>
										<td class="size_60">
											', help_link('adkadmin_disable_colexpand', 'adkhelp_disable_colexpand'), '
										</td>
										<td class="size_40 alingright">
											<input type="checkbox" name="adk_disable_colexpand"', getCheckbox('adk_disable_colexpand'), ' />
										</td>
									</tr>
									<tr>
										<td class="size_60">
											', help_link('adkadmin_width_portal', 'adkhelp_width_portal'), '
										</td>
										<td class="size_40 alingright">
											' . $txt['adkadmin_left'] . ' <input type="text" size="4" name="wleft" value="', $adkportal['wleft'], '" /><br />
											' . $txt['adkadmin_right'] . ' <input type="text" size="4" name="wright" value="', $adkportal['wright'], '" />
										</td>
									</tr>
								</table>
							</fieldset>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<hr />
						</td>
					</tr>
					<tr>
						<td class="size_30">
							<b>' . $txt['adkadmin_more_settings'] . '</b>
						</td>
						<td class="size_70">
							<fieldset>
								<legend style="color: teal">' . $txt['adkadmin_setting'] . '</legend>
								<table class="size_100">
									<tr>
										<td class="size_60">
											', help_link('adkadmin_format_blocks', 'adkhelp_format_blocks'), '
										</td>
										<td class="size_40 alingright">
											<select name="title_in_blocks">
												<option value="5" ', analizar_selected_adk('title_in_blocks', 5), '>' . $txt['adkadmin_alternative'] . '</option>
												<option value="3" ', analizar_selected_adk('title_in_blocks', 3), '>' . $txt['adkadmin_windowbg'] . '</option>
												<option value="6" ', analizar_selected_adk('title_in_blocks', 6), '>' . $txt['adkadmin_teu'] . '</option>
												<option value="1" ', analizar_selected_adk('title_in_blocks', 1), '>' . $txt['adkadmin_roundFrame'] . ' (' . $txt['adkadmin_catbg'] . ')</option>
												<option value="7" ', analizar_selected_adk('title_in_blocks', 7), '>' . $txt['adkadmin_roundFrame'] . ' (' . $txt['adkadmin_titlebg'] . ')</option>
												<option value="4" ', analizar_selected_adk('title_in_blocks', 4), '>' . $txt['adkadmin_windowbg'] . '  + ' . $txt['adkadmin_inblocks'] . '</option>
												<option value="2" ', analizar_selected_adk('title_in_blocks', 2), '>' . $txt['adkadmin_roundFrame'] . ' + ' . $txt['adkadmin_inblocks'] . ' (' . $txt['adkadmin_catbg'] . ')</option>
												<option value="8" ', analizar_selected_adk('title_in_blocks', 8), '>' . $txt['adkadmin_roundFrame'] . ' + ' . $txt['adkadmin_inblocks'] . ' (' . $txt['adkadmin_titlebg'] . ')</option>
											</select>
										</td>
									</tr>
									<tr>
										<td class="size_60">
											', help_link('adkadmin_enable_img_blocks', 'adkhelp_enable_img_blocks'), '
										</td>
										<td class="size_40 alingright">
											' . $txt['yes'] . '<input type="radio" value="1" name="enable_img_blocks" ', $adkportal['enable_img_blocks'] == 1 ? 'checked="checked"' : '', ' /> ' . $txt['no'] . '<input type="radio" value="0" name="enable_img_blocks"  ', $adkportal['enable_img_blocks'] == 0 ? 'checked="checked"' : '', ' />
										</td>
									</tr>
								</table>
							</fieldset>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<hr />
							<br style="clear: both;" />
							<div style="float: right;">
								<input type="hidden" name="sc" value="', $context['session_id'], '" />
								<input class="button_submit" type="submit" value="' . $txt['save'] . '" />
							</div>
						</td>
					</tr>
				</table>
			</div>
		</div>
		<span class="lowerframe">
			<span>&nbsp;</span>	
		</span>
	</form>';
}
コード例 #12
0
    <td class="primary"><?php 
printMyInputText("seq", 3, 3, $postVars, $pageErrors);
?>
</td>
  </tr>

  <tr>
    <td class="primary" valign="top">
      <label for="active"><?php 
echo $loc->getText("lookup_hostsActive");
?>
	</label>
    </td>
    <td valign="top" class="primary">
      <?php 
echo getCheckbox('active', $postVars);
?>
    </td>

  <tr>
    <td class="primary">
      <label for="user">
        <?php 
echo $loc->getText("lookup_hostsUser");
?>
      </label>
    </td>
    <td class="primary"><?php 
printMyInputText("user", 10, 10, $postVars, $pageErrors);
?>
</td>
コード例 #13
0
        echo '<tr valign=top><td class=rowone colspan=2><div id=div_testmanager_settings_groups style="display:' . (isset($_COOKIE['div_testmanager_settings_groups']) && $_COOKIE['div_testmanager_settings_groups'] == 'Y' ? 'block' : 'none') . '"><table class=rowtable2 cellpadding=5 cellspacing=1 border=0 width="100%">';
        writeTR2Fixed($lngstr['page_edittests_assignedto'], '<p>' . $i_groups_text . '<p>' . getCheckbox('test_forall', $i_rSet1->fields['test_forall'], $lngstr['page_edittests_assignto_everybody']));
        $i_tests_items = array(0 => $lngstr['label_none']);
        $i_rSet3 = $g_db->Execute("SELECT " . $srv_settings['table_prefix'] . "tests.testid, " . $srv_settings['table_prefix'] . "tests.test_name FROM " . $srv_settings['table_prefix'] . "tests ORDER BY testid");
        if (!$i_rSet3) {
            showDBError(__FILE__, 3);
        } else {
            while (!$i_rSet3->EOF) {
                $i_tests_items[$i_rSet3->fields['testid']] = $i_rSet3->fields['test_name'];
                $i_rSet3->MoveNext();
            }
            $i_rSet3->Close();
        }
        echo '</table></div></td></tr>';
        echo '<tr valign=top><td class=rowhdr2 colspan=2><a class=rowhdr2 href="javascript:void(0)" onclick="javascript:toggleSection(\'div_testmanager_settings_advanced\')">' . $lngstr['page_testmanager']['settings']['section_advanced'] . '</td></tr>';
        echo '<tr valign=top><td class=rowone colspan=2><div id=div_testmanager_settings_advanced style="display:' . (!isset($_COOKIE['div_testmanager_settings_advanced']) || $_COOKIE['div_testmanager_settings_advanced'] == 'Y' ? 'block' : 'none') . '"><table class=rowtable2 cellpadding=5 cellspacing=1 border=0 width="100%">';
        writeTR2Fixed($lngstr['page_testmanager']['content_protection'], getSelectElement('test_contentprotection', $i_rSet1->fields['test_contentprotection'], $lngstr['page_testmanager']['content_protection_list']));
        writeTR2Fixed($lngstr['page-testmanager']['prevtest'], getSelectElement('test_prevtestid', $i_rSet1->fields['test_prevtestid'], $i_tests_items));
        writeTR2Fixed($lngstr['page-testmanager']['nexttest'], getSelectElement('test_nexttestid', $i_rSet1->fields['test_nexttestid'], $i_tests_items));
        writeTR2Fixed($lngstr['page_testmanager']['other_options'], getCheckbox('test_other_repeatuntilcorrect', $i_rSet1->fields['test_other_repeatuntilcorrect'], $lngstr['page_testmanager']['repeat_until_answered_correctly']));
        echo '</table></div></td></tr>';
        echo '<tr valign=top><td class=rowhdr2 colspan=2><a class=rowhdr2 href="javascript:void(0)" onclick="javascript:toggleSection(\'div_testmanager_settings_notes\')">' . $lngstr['page_testmanager']['settings']['section_notes'] . '</td></tr>';
        echo '<tr valign=top><td class=rowone colspan=2><div id=div_testmanager_settings_notes style="display:' . (isset($_COOKIE['div_testmanager_settings_notes']) && $_COOKIE['div_testmanager_settings_notes'] == 'Y' ? 'block' : 'none') . '"><table class=rowtable2 cellpadding=5 cellspacing=1 border=0 width="100%">';
        writeTR2Fixed($lngstr['page_edittests_testnotes'], getTextArea('test_notes', $i_rSet1->fields['test_notes']));
        echo '</table></div></td></tr>';
        echo '</table>';
        echo '<p class=center><input class=btn type=submit name=bsubmit value=" ' . $lngstr['button_update'] . ' "> <input class=btn type=submit name=bsubmit2 value=" ' . $lngstr['button_update_and_edit_questions'] . ' "> <input class=btn type=submit name=bcancel value=" ' . $lngstr['button_cancel'] . ' "></form>';
    }
    $i_rSet1->Close();
}
displayTemplate('_footer');