Esempio n. 1
0
    ?>
						<tr>
						<td class="col1"><input type="hidden" name="ingredients[<?php 
    echo $k;
    ?>
][id]" value="0" />
							<input type="text" name="ingredients[<?php 
    echo $k;
    ?>
][mesure]" value="" /></td>
						<td class="col2"><?php 
    echo gen_select($UNITES, 'ingredients[' . $k . '][unite]', true);
    ?>
</td>
						<td class="col3"><?php 
    echo gen_select($T['all_ingredients'], 'ingredients[' . $k . '][id_ingredient]', true);
    ?>
</td>
						<td class="col4"><input type="text" name="ingredients[<?php 
    echo $k;
    ?>
][new_ingred]" value="" /></td>
						<td class="col5"><input type="checkbox" name="ingredients[<?php 
    echo $k;
    ?>
][del]" /></td>
					</tr>
					<?php 
}
?>
				</table>
Esempio n. 2
0
    $ret = "<div class='control-group clearfix' >\r\n  \t\t<span class='pull-left'>" . $prompt . "</span><span class='pull-right'><select name='{$name}' class='tbox'>\n\r\n\t\t<option value='0' " . ($value == 0 ? " selected='selected'" : "") . ">" . ADSTAT_L50 . "</option>\n\r\n\t\t<option value='1' " . ($value == 1 ? " selected='selected'" : "") . ">" . ADSTAT_L49 . "</option>\n\r\n\t\t<option value='2' " . ($value == 2 ? " selected='selected'" : "") . ">" . ADSTAT_L48 . "</option>\n\r\n\t\t</select></span></div>";
    return $ret;
}
function data_type_select($name, $value)
{
    global $stats_list;
    $ret = "<select name='{$name}' class='tbox'  onchange=\"settypebox(this.value);\">\n\r\n\t\t<option value='page' " . ($value == 'page' ? " selected='selected'" : "") . ">" . ADSTAT_L52 . "</option>\n";
    foreach ($stats_list as $k => $v) {
        $ret .= "<option value='{$k}' " . ($value == $k ? " selected='selected'" : "") . ">{$v}</option>\n";
    }
    $ret .= "</select>\n";
    return $ret;
}
switch ($action) {
    case 'config':
        $text = "\r\n\t<form method='post' action='" . e_SELF . "'>\r\n\t<table class='table adminform'>\r\n\t<colgroup>\r\n\t\t<col style='width:40%' />\r\n\t\t<col style='width:60%' />\r\n\t</colgroup>\r\n\r\n\t<tr>\r\n\t\t<td>" . ADSTAT_L4 . "</td>\r\n\t\t<td>" . $frm->radio_switch('statActivate', $pref['statActivate']) . "</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td>" . ADSTAT_L18 . "</td>\r\n\t\t<td>" . r_userclass("statUserclass", $pref['statUserclass'], 'off', 'public, member, admin, classes') . "</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td>" . ADSTAT_L20 . "</td>\r\n\t\t<td>" . $frm->radio_switch('statCountAdmin', $pref['statCountAdmin']) . "</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td>" . ADSTAT_L21 . "</td>\r\n\t\t<td><input class='tbox' type='text' name='statDisplayNumber' size='8' value='" . $pref['statDisplayNumber'] . "' maxlength='3' /></td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td>" . ADSTAT_L5 . "</td>\r\n\t\t<td>\r\n\t\t" . gen_select(ADSTAT_L6, 'statBrowser', $pref['statBrowser']) . gen_select(ADSTAT_L7, 'statOs', $pref['statOs']) . gen_select(ADSTAT_L8, 'statScreen', $pref['statScreen']) . gen_select(ADSTAT_L9, 'statDomain', $pref['statDomain']) . gen_select(ADSTAT_L10, 'statRefer', $pref['statRefer']) . gen_select(ADSTAT_L11, 'statQuery', $pref['statQuery']) . "<div class='clearfix' style='padding-bottom: 4px'><span class='pull-left'>" . ADSTAT_L19 . "</span><span class='pull-right'>\r\n\t\t " . $frm->radio_switch('statRecent', $pref['statRecent']) . "</span></div>\r\n\t\t</td>\r\n\t</tr>\r\n\r\n\t<tr>\r\n\t<td>" . ADSTAT_L78 . "</td>\r\n\t\t<td>" . $frm->checkbox('statPrevMonth', 1, varset($pref['statPrevMonth'], 0)) . "<span class='field-help'>" . ADSTAT_L79 . "</span></td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td>" . ADSTAT_L12 . "</td>\r\n\t\t<td>\r\n\t\t\t" . $frm->checkbox('wipe[statWipePage]', 1, false, array('label' => ADSTAT_L14)) . "\r\n\t\t\t" . $frm->checkbox('wipe[statWipeBrowser]', 1, false, array('label' => ADSTAT_L6)) . "\r\n\t\t\t" . $frm->checkbox('wipe[statWipeOs]', 1, false, array('label' => ADSTAT_L7)) . "\r\n\t\t\t" . $frm->checkbox('wipe[statWipeScreen]', 1, false, array('label' => ADSTAT_L8)) . "\r\n\t\t\t" . $frm->checkbox('wipe[statWipeDomain]', 1, false, array('label' => ADSTAT_L9)) . "\r\n\t\t\t" . $frm->checkbox('wipe[statWipeRefer]', 1, false, array('label' => ADSTAT_L10)) . "\r\n\t\t\t" . $frm->checkbox('wipe[statWipeQuery]', 1, false, array('label' => ADSTAT_L11)) . "\r\n\t\t\t<br />\r\n\t\t\t" . $frm->admin_button('wipeSubmit', LAN_RESET, 'delete') . "<span class='field-help'>" . ADSTAT_L13 . "</span>\r\n\t\t</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td>" . ADSTAT_L26 . "</td>\r\n\t\t<td>" . $frm->admin_button('openRemPageD', ADSTAT_L28, 'other') . "<span class='field-help'>" . ADSTAT_L27 . "</span>\t</td>\r\n\t</tr>\r\n\t</table>\r\n\t<div class='buttons-bar center'>\r\n\t\t" . $frm->admin_button('updatesettings', LAN_UPDATE, 'update') . "\r\n\t</div>\r\n\t</form>";
        $ns->tablerender(ADSTAT_L16, $text);
        break;
        // case config
    // case config
    case 'rempage':
        // Remove pages
        rempage();
        break;
    case 'export':
        // Export file
    // Export file
    case 'datasets':
        //===========================================================
        //				EXPORT DATA
        //===========================================================
Esempio n. 3
0
    $ret = "<div style='padding-bottom: 4px'>" . $prompt . "&nbsp;&nbsp;" . "<select name='{$name}' class='tbox'>\n\n\t\t<option value='0' " . ($value == 0 ? " selected='selected'" : "") . ">" . ADSTAT_L50 . "</option>\n\n\t\t<option value='1' " . ($value == 1 ? " selected='selected'" : "") . ">" . ADSTAT_L49 . "</option>\n\n\t\t<option value='2' " . ($value == 2 ? " selected='selected'" : "") . ">" . ADSTAT_L48 . "</option>\n\n\t\t</select>\n</div>";
    return $ret;
}
function data_type_select($name, $value)
{
    global $stats_list;
    $ret = "<select name='{$name}' class='tbox'  onchange=\"settypebox(this.value);\">\n\n\t\t<option value='page' " . ($value == 'page' ? " selected='selected'" : "") . ">" . ADSTAT_L52 . "</option>\n";
    foreach ($stats_list as $k => $v) {
        $ret .= "<option value='{$k}' " . ($value == $k ? " selected='selected'" : "") . ">{$v}</option>\n";
    }
    $ret .= "</select>\n";
    return $ret;
}
switch ($action) {
    case 'config':
        $text = "<div style='text-align:center'>\n\t<form method='post' action='" . e_SELF . "'>\n\t<table class='table adminform'>\n\t<colgroup>\n\t  <col style='width:50%' />\n\t  <col style='width:50%' />\n\t</colgroup>\n\n\t<tr>\n\t<td>" . ADSTAT_L4 . "</td>\n\t<td style='text-align: right;'>\n\t<input type='radio' name='statActivate' value='1'" . ($pref['statActivate'] ? " checked='checked'" : "") . " /> " . ADSTAT_ON . "&nbsp;&nbsp;\n\t<input type='radio' name='statActivate' value='0'" . (!$pref['statActivate'] ? " checked='checked'" : "") . " /> " . ADSTAT_OFF . "\n\t</td>\n\t</tr>\n\n\t<tr>\n\t<td>" . ADSTAT_L18 . "</td>\n\t<td style='text-align: right;'>" . r_userclass("statUserclass", $pref['statUserclass'], 'off', 'public, member, admin, classes') . "</td>\n\t</tr>\n\n\t<tr>\n\t<td>" . ADSTAT_L20 . "</td>\n\t<td style='text-align: right;'>\n\t<input type='radio' name='statCountAdmin' value='1'" . ($pref['statCountAdmin'] ? " checked='checked'" : "") . " /> " . ADSTAT_ON . "&nbsp;&nbsp;\n\t<input type='radio' name='statCountAdmin' value='0'" . (!$pref['statCountAdmin'] ? " checked='checked'" : "") . " /> " . ADSTAT_OFF . "\n\t</td>\n\t</tr>\n\n\t<tr>\n\t<td>" . ADSTAT_L21 . "</td>\n\t<td style='text-align: right;'>\n\t<input class='tbox' type='text' name='statDisplayNumber' size='8' value='" . $pref['statDisplayNumber'] . "' maxlength='3' />\n\t</td>\n\t</tr>\n\n\t<tr>\n\t<td>" . ADSTAT_L5 . "</td>\n\t<td style='text-align: right'>\n\t" . gen_select(ADSTAT_L6, 'statBrowser', $pref['statBrowser']) . gen_select(ADSTAT_L7, 'statOs', $pref['statOs']) . gen_select(ADSTAT_L8, 'statScreen', $pref['statScreen']) . gen_select(ADSTAT_L9, 'statDomain', $pref['statDomain']) . gen_select(ADSTAT_L10, 'statRefer', $pref['statRefer']) . gen_select(ADSTAT_L11, 'statQuery', $pref['statQuery']) . ADSTAT_L19 . "&nbsp;&nbsp;\n\t<input type='radio' name='statRecent' value='1'" . ($pref['statRecent'] ? " checked='checked'" : "") . " /> " . ADSTAT_ON . "&nbsp;&nbsp;\n\t<input type='radio' name='statRecent' value='0'" . (!$pref['statRecent'] ? " checked='checked'" : "") . " /> " . ADSTAT_OFF . "<br />\n\n\t</td>\n\t</tr>\n\n\t<tr>\n\t<td>" . ADSTAT_L78 . "<br /><span class='smalltext'>" . ADSTAT_L79 . "</span></td>\n\t<td style='text-align: right;'>\n\t<input type='checkbox' name='statPrevMonth' value='1'" . (varset($pref['statPrevMonth'], 0) ? " checked='checked'" : "") . " />\n\t</td></tr>\n\n\t<tr>\n\t<td>" . ADSTAT_L12 . "<br /><span class='smalltext'>" . ADSTAT_L13 . "</span></td>\n\t<td style='text-align: right;'>\n\t" . ADSTAT_L14 . "<input type='checkbox' name='wipe[statWipePage]' value='1' /><br />\n\t" . ADSTAT_L6 . "<input type='checkbox' name='wipe[statWipeBrowser]' value='1' /><br />\n\t" . ADSTAT_L7 . " <input type='checkbox' name='wipe[statWipeOs]' value='1' /><br />\n\t" . ADSTAT_L8 . " <input type='checkbox' name='wipe[statWipeScreen]' value='1' /><br />\n\t" . ADSTAT_L9 . "<input type='checkbox' name='wipe[statWipeDomain]' value='1' /><br />\n\t" . ADSTAT_L10 . "<input type='checkbox' name='wipe[statWipeRefer]' value='1' /><br />\n\t" . ADSTAT_L11 . "<input type='checkbox' name='wipe[statWipeQuery]' value='1' /><br />\n\t<br /><input class='button' type='submit' name='wipeSubmit' value='" . ADSTAT_L12 . "' />\n\t</td>\n\t</tr>\n\n\t<tr>\n\t<td>" . ADSTAT_L26 . "<br /><span class='smalltext'>" . ADSTAT_L27 . "</span></td>\n\t<td style='text-align: right;'><input class='button' type='submit' name='openRemPageD' value='" . ADSTAT_L28 . "' />\n\t</td>\n\t</tr>\n\t";
        $text .= "\n\t</tr>\n\t</table>\n\t<div class='buttons-bar center'>\n\t" . $frm->admin_button('updatesettings', LAN_UPDATE, 'update') . "\n\t</div>\n\t</form>\n\t</div>";
        $ns->tablerender(ADSTAT_L16, $text);
        break;
        // case config
    // case config
    case 'rempage':
        // Remove pages
        rempage();
        break;
    case 'export':
        // Export file
    // Export file
    case 'datasets':
        //===========================================================
        //				EXPORT DATA