Example #1
0
function get_options_edit()
{
    $config = Config::getInstance();
    ob_start();
    liststyles("defaultstyle", $config->defaultstyle);
    $styles = ob_get_contents();
    ob_end_clean();
    $ret = '<form method="POST" action="modules/admin/process.php">
    <table>
    <tr><th>email</th><th>mailto</th><th>desc</th><th>styledir</th><th>defaultstyle</th>
 <th>layout</th><th>image dir</th><th>transcripts dir</th></tr>
    <tr>
<td><input type="text" name="email" value="' . $config->email . '"></input></td>
<td><input type="checkbox" name="mailto" ' . ($config->mailto ? 'checked="checked"' : '') . '></input></td>
<td><input type="text" name="desc" value="' . $config->desc . '"></input></td>
<td><input type="text" name="styledir" value="' . $config->styledir . '"></input></td>
<td>' . $styles . '</td>
<td><select name="layout">
<option value="0"';
    if ($config->layout == 0) {
        $ret .= ' selected="selected"';
    }
    $ret .= '>classic</option>\\n';
    $ret .= '<option value="2"';
    if ($config->layout == 2) {
        $ret .= ' selected="selected"';
    }
    $ret .= '>dojo tabs</option>\\n';
    $ret .= '<option value="3"';
    if ($config->layout == 3) {
        $ret .= ' selected="selected"';
    }
    $ret .= '>dojo panes</option>\\n';
    $ret .= '</select>
</td>
<td><input type="text" name="imagedir" value="' . $config->imagedir . '"></input></td>
<td><input type="text" name="filedir" value="' . $config->filedir . '"></input></td>

</tr>
<tr><th>absurl</th><th>dynamicrestict</th><th>restrictyears</th><th>restrictdate</th>
 <th>tracking</th><th>trackemail</th>
 <th>bbtracking</th><th></th></tr>
<tr>
<td><input type="text" name="absurl" value="' . $config->absurl . '"></input></td>
<td><select name="restricttype">
<option value="0"';
    if ($config->restricttype == 0) {
        $ret .= ' selected="selected"';
    }
    $ret .= '>restrictdate</option>\\n';
    $ret .= '<option value="1"';
    if ($config->restricttype == 1) {
        $ret .= ' selected="selected"';
    }
    $ret .= '>restrictyears</option>\\n';
    $ret .= '</select>
</td>
<td><input type="text" name="restrictyears" value="' . $config->restrictyears . '"></input></td>
<td><input type="text" name="restrictdate" value="' . $config->restrictdate . '"></input></td>
<td><input type="checkbox" name="tracking" ' . ($config->tracking ? 'checked="checked"' : '') . '></input></td>
<td><input type="text" name="trackemail" value="' . $config->trackemail . '"></input></td>
<td><input type="checkbox" name="bbtracking" ' . ($config->bbtracking ? 'checked="checked"' : '') . '></input></td>
<td></td>
</tr>
<tr><th>gmapskey</th><th>gmapshost</th>
 <th>gedcom</th><th>lang</th><th>timing</th>
 <th>img_max</th><th>img_min</th><th></th></tr>
<tr>

<td><input type="text" name="gmapskey" value="' . $config->gmapskey . '"></input></td>
<td><input type="text" name="gmapshost" value="' . $config->gmapshost . '"></input></td>
<td><input type="checkbox" name="gedcom" ' . ($config->gedcom ? 'checked="checked"' : '') . '></input></td>
<td>' . listlangs('lang', $config->lang) . '</td>
<td><input type="checkbox" name="timing" ' . ($config->timing ? 'checked="checked"' : '') . '></input></td>
<td><input type="text" name="img_max" value="' . $config->img_max . '"></input></td>
<td><input type="text" name="img_min" value="' . $config->img_min . '"></input></td>
<td></td></tr>
<tr><th>smtp_host</th><th>smtp_user</th>
 <th>smtp_password</th><th>recapt pub</th><th>recapt priv</th>
 <th>analytics_key</th><th></th><th></th></tr>
<tr>

<td><input type="text" name="smtp_host" value="' . $config->smtp_host . '"></input></td>
<td><input type="text" name="smtp_user" value="' . $config->smtp_user . '"></input></td>
<td><input type="text" name="smtp_password" value="' . $config->smtp_password . '"></input></td>
<td><input type="text" name="recaptcha_public" value="' . $config->recaptcha_public . '"></input></td>
<td><input type="text" name="recaptcha_private" value="' . $config->recaptcha_private . '"></input></td>
<td><input type="text" name="analytics_key" value="' . $config->analytics_key . '"></input></td>
<td></td>
<td></td></tr>
<tr><td></td><td><input type="submit" name="<?php echo $strEdit; ?>" /></td><td colspan="15"></td></tr>
    </table>
    </form>';
    return $ret;
}
Example #2
0
			<form method="post" action="my.php?func=style">
			<table>
				<tr>
					<td><h4><?php 
    echo $strChangeStyle;
    ?>
</h4></td>
					<td></td>
				</tr>
				<tr>
					<td><?php 
    echo $strStyle;
    ?>
</td>
					<td><?php 
    liststyles("pwdStyle", $_SESSION["style"]);
    ?>
</td>
				</tr>
				<tr>
					<td></td>
					<td><input type="submit" name="submit2" value="<?php 
    echo $strChange;
    ?>
" /></td>
				</tr>
			</table>
			</form>
		</td>
		<td></td>
	</tr>
Example #3
0
					<tr><td><?php 
    echo ucwords($strEdit);
    ?>
</td><td><input type="checkbox" name="pwdEdit" checked="true" /></td></tr>
					<tr><td><?php 
    echo $strRestricted . " " . $strDate;
    ?>
</td><td><input type="text" name="pwdRestricted" size="30" maxlength="20" value="<?php 
    echo $restrictdate;
    ?>
" /></td></tr>
					<tr><td><?php 
    echo $strStyle;
    ?>
</td><td><?php 
    liststyles("pwdStyle", $config->defaultstyle);
    ?>
</td></tr>
					<tr><td></td><td><input type="submit" name="<?php 
    echo $strCreate;
    ?>
" /></td></tr>
					<tr><td><font color="red"><?php 
    echo $err;
    ?>
</font></td></tr>
				</form>
			</table>

    <?php 
    include_once "modules/admin/editForm.php";