Esempio n. 1
0
File: agent.php Progetto: kuell/chat
function tpl_content()
{
    global $page, $mibewroot, $errors;
    ?>

<?php 
    if ($page['opid']) {
        echo getlocal("page_agent.intro");
    }
    if (!$page['opid']) {
        echo getlocal("page_agent.create_new");
    }
    ?>
<br />
<br />
<?php 
    require_once 'inc_errors.php';
    if ($page['needChangePassword']) {
        ?>
<div id="formmessage"><?php 
        echo getlocal("error.no_password");
        ?>
</div>
<br/>
<?php 
    } else {
        if ($page['stored']) {
            ?>
<div id="formmessage"><?php 
            echo getlocal("data.saved");
            ?>
</div>
<?php 
        }
    }
    ?>



<?php 
    if ($page['opid'] || $page['canmodify']) {
        ?>
<form name="agentForm" method="post" action="<?php 
        echo $mibewroot;
        ?>
/operator/operator.php">
<?php 
        print_csrf_token_input();
        ?>
<input type="hidden" name="opid" value="<?php 
        echo safe_htmlspecialchars($page['opid']);
        ?>
"/>
<?php 
        if (!$page['showjabber']) {
            ?>
<input type="hidden" name="jabber" value="<?php 
            echo form_value('jabber');
            ?>
"/>
<?php 
            if (form_value_cb('jabbernotify')) {
                ?>
<input type="hidden" name="jabbernotify" value="on"/><?php 
            }
        }
        ?>
 
	<div>
<?php 
        if (!$page['needChangePassword']) {
            print_tabbar();
        }
        ?>
	<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">

	<div class="fieldForm">
		<div class="field">
			<div class="flabel"><?php 
        echo getlocal('form.field.login');
        ?>
<span class="required">*</span></div>
			<div class="fvalue">
				<input type="text" name="login" size="40" value="<?php 
        echo form_value('login');
        ?>
" class="formauth"<?php 
        echo $page['canmodify'] && !$page['opid'] ? "" : " disabled=\"disabled\"";
        ?>
/>
			</div>
			<div class="fdescr"> &mdash; <?php 
        echo getlocal('form.field.login.description');
        ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
        echo getlocal('form.field.mail');
        ?>
</div>
			<div class="fvalue">
				<input type="text" name="email" size="40" value="<?php 
        echo form_value('email');
        ?>
" class="formauth"<?php 
        echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
        ?>
/>
			</div>
			<div class="fdescr"> &mdash; <?php 
        echo getlocal('form.field.mail.description');
        ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
        echo getlocal('form.field.password');
        if (!$page['opid'] || $page['needChangePassword']) {
            ?>
<span class="required">*</span><?php 
        }
        ?>
</div>
			<div class="fvalue">
				<input type="password" name="password" size="40" value="" class="formauth"<?php 
        echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
        ?>
 autocomplete="off"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
        echo getlocal('form.field.password.description');
        ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
        echo getlocal('form.field.password_confirm');
        if (!$page['opid'] || $page['needChangePassword']) {
            ?>
<span class="required">*</span><?php 
        }
        ?>
</div>
			<div class="fvalue">
				<input type="password" name="passwordConfirm" size="40" value="" class="formauth"<?php 
        echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
        ?>
 autocomplete="off"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
        echo getlocal('form.field.password_confirm.description');
        ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
        echo getlocal('form.field.agent_name');
        ?>
<span class="required">*</span></div>
			<div class="fvalue">
				<input type="text" name="name" size="40" value="<?php 
        echo form_value('name');
        ?>
" class="formauth"<?php 
        echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
        ?>
/>
			</div>
			<div class="fdescr"> &mdash; <?php 
        echo getlocal('form.field.agent_name.description');
        ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
        echo getlocal('form.field.agent_commonname');
        ?>
<span class="required">*</span></div>
			<div class="fvalue">
				<input type="text" name="commonname" size="40" value="<?php 
        echo form_value('commonname');
        ?>
" class="formauth"<?php 
        echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
        ?>
/>
			</div>
			<div class="fdescr"> &mdash; <?php 
        echo getlocal('form.field.agent_commonname.description');
        ?>
</div>
			<br clear="all"/>
		</div>

<?php 
        if ($page['showjabber']) {
            ?>
		<div class="field">
			<div class="flabel"><?php 
            echo getlocal('form.field.jabber');
            ?>
</div>
			<div class="fvalue">
				<input type="text" name="jabber" size="40" value="<?php 
            echo form_value('jabber');
            ?>
" class="formauth"<?php 
            echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
            ?>
/>
			</div>
			<div class="fdescr"> &mdash; <?php 
            echo getlocal('form.field.jabber.description');
            ?>
</div>
			<br clear="all"/>
		</div>
		
		<div class="field" style="padding-top:0.3em;">
			<div class="flabel"><?php 
            echo getlocal('form.field.jabbernotify');
            ?>
</div>
			<div class="fvalue">
				<input type="checkbox" name="jabbernotify" value="on"<?php 
            echo form_value_cb('jabbernotify') ? " checked=\"checked\"" : "";
            echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
            ?>
/>
			</div>
			<div class="fdescr"> &mdash; <?php 
            echo getlocal('form.field.jabbernotify.description');
            ?>
</div>
			<br clear="all"/>
		</div>
<?php 
        }
        ?>

<?php 
        if ($page['canmodify']) {
            ?>
		<div class="fbutton">
			<input type="image" name="save" value="" src="<?php 
            echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.save"));
            ?>
" alt="<?php 
            echo safe_htmlspecialchars(getlocal("button.save"));
            ?>
"/>
		</div>
<?php 
        }
        ?>
	</div>
	
	</div><div class="formbottom"><div class="formbottomi"></div></div></div>
	</div>		
	
	<div class="asterisk">
		<?php 
        echo getlocal("common.asterisk_explanation");
        ?>
	</div>

</form>
<?php 
    }
}
Esempio n. 2
0
function tpl_content()
{
    global $page, $webimroot, $errors;
    ?>

<?php 
    echo getlocal("page.gen_button.intro");
    ?>
<br />
<br />
<?php 
    require_once 'inc_errors.php';
    ?>

<form name="buttonCodeForm" method="get" action="<?php 
    echo $webimroot;
    ?>
/operator/getcode.php">
	<div>
<?php 
    print_tabbar();
    ?>
	<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">

	<div class="fieldForm">
	
		<div class="fieldinrow">
			<div class="flabel"><?php 
    echo getlocal("page.gen_button.choose_locale");
    ?>
</div>
			<div class="fvaluenodesc">
				<select name="lang" onchange="this.form.submit();"><?php 
    foreach ($page['availableLocales'] as $k) {
        echo "<option value=\"" . $k . "\"" . ($k == form_value("lang") ? " selected=\"selected\"" : "") . ">" . $k . "</option>";
    }
    ?>
</select>
			</div>
		</div>

<?php 
    if ($page['showgroups']) {
        ?>
		<div class="fieldinrow">
			<div class="flabel"><?php 
        echo getlocal("page.gen_button.choose_group");
        ?>
</div>
			<div class="fvaluenodesc">
				<select name="group" onchange="this.form.submit();"><?php 
        foreach ($page['groups'] as $k) {
            echo "<option value=\"" . $k['groupid'] . "\"" . ($k['groupid'] == form_value("group") ? " selected=\"selected\"" : "") . ">" . $k['vclocalname'] . "</option>";
        }
        ?>
</select>
			</div>
		</div>
<?php 
    }
    ?>
		<br clear="all"/>

		<div class="fieldinrow">
			<div class="flabel"><?php 
    echo getlocal("page.gen_button.choose_image");
    ?>
</div>
			<div class="fvaluenodesc">
				<select name="i" onchange="this.form.submit();"><?php 
    foreach ($page['availableImages'] as $k) {
        echo "<option value=\"" . $k . "\"" . ($k == form_value("image") ? " selected=\"selected\"" : "") . ">" . $k . "</option>";
    }
    ?>
</select>
			</div>
		</div>

		<div class="fieldinrow">
			<div class="flabel"><?php 
    echo getlocal("page.gen_button.choose_style");
    ?>
</div>
			<div class="fvaluenodesc">
				<select name="style" onchange="this.form.submit();"><?php 
    foreach ($page['availableStyles'] as $k => $v) {
        echo "<option value=\"" . $k . "\"" . ($k == form_value("style") ? " selected=\"selected\"" : "") . ">" . $v . "</option>";
    }
    ?>
</select>
			</div>
		</div>
		<br clear="all"/>

		<div class="fieldinrow">
			<div class="flabel"><?php 
    echo getlocal("page.gen_button.include_site_name");
    ?>
</div>
			<div class="fvaluenodesc">
				<input type="checkbox" name="hostname" value="on"<?php 
    echo form_value_cb('hostname') ? " checked=\"checked\"" : "";
    ?>
 onchange="this.form.submit();"/>
			</div>
		</div>

<?php 
    if ($page['formhostname']) {
        ?>

		<div class="fieldinrow">
			<div class="flabel"><?php 
        echo getlocal("page.gen_button.secure_links");
        ?>
</div>
			<div class="fvaluenodesc">
				<input type="checkbox" name="secure" value="on"<?php 
        echo form_value_cb('secure') ? " checked=\"checked\"" : "";
        ?>
 onchange="this.form.submit();"/>
			</div>
		</div>
<?php 
    }
    ?>
		<br clear="all"/>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal("page.gen_button.modsecurity");
    ?>
</div>
			<div class="fvaluenodesc">
				<input type="checkbox" name="modsecurity" value="on"<?php 
    echo form_value_cb('modsecurity') ? " checked=\"checked\"" : "";
    ?>
 onchange="this.form.submit();"/>
			</div>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal("page.gen_button.code");
    ?>
</div>
			<div class="fvaluewithta" dir="ltr">
				<textarea cols="44" rows="15"><?php 
    echo htmlspecialchars($page['buttonCode']);
    ?>
</textarea>
			</div>
			<div class="fdescr"><?php 
    echo getlocal("page.gen_button.code.description");
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal("page.gen_button.sample");
    ?>
</div>
			<div class="fvaluenodesc">
				<?php 
    echo $page['buttonCode'];
    ?>
			</div>
		</div>
	</div>
	
	</div><div class="formbottom"><div class="formbottomi"></div></div></div>
	</div>		
</form>

<?php 
}
Esempio n. 3
0
function tpl_content()
{
    global $page, $webimroot, $errors;
    ?>

<div id="loginintro">
<p><?php 
    echo getlocal("app.descr");
    ?>
</p>
</div>

<form name="loginForm" method="post" action="<?php 
    echo $webimroot;
    ?>
/operator/login.php">
	<div id="loginpane">

	<div class="header">	
		<h2><?php 
    echo getlocal("page_login.title");
    ?>
</h2>
	</div>

	<div class="fieldForm">
	
		<?php 
    echo getlocal("page_login.intro");
    ?>
<br/><br/>

<?php 
    require_once 'inc_errors.php';
    ?>
	
		<div class="field">
			<div class="fleftlabel"><?php 
    echo getlocal("page_login.login");
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="login" size="25" value="<?php 
    echo form_value('login');
    ?>
" class="formauth"/>
			</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="fleftlabel"><?php 
    echo getlocal("page_login.password");
    ?>
</div>
			<div class="fvalue">
				<input type="password" name="password" size="25" value="" class="formauth"/>
			</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="fleftlabel">&nbsp;</div>
			<div class="fvalue">
				<label>
					<input type="checkbox" name="isRemember" value="on"<?php 
    echo form_value_cb('isRemember') ? " checked=\"checked\"" : "";
    ?>
 />
					<?php 
    echo getlocal("page_login.remember");
    ?>
</label>
			</div>
			<br clear="all"/>
		</div>

		<div class="fbutton">
			<input type="image" name="login" src='<?php 
    echo $webimroot . getlocal("image.button.login");
    ?>
' alt='<?php 
    echo getlocal("button.enter");
    ?>
'/>

			<div class="links">
				<a href="restore.php"><?php 
    echo getlocal("restore.pwd.message");
    ?>
</a><br/>
			</div>
		</div>

	</div>

	</div>		
</form>

<?php 
}
Esempio n. 4
0
function tpl_content()
{
    global $page, $webimroot;
    ?>

<?php 
    echo getlocal("page.preview.intro");
    ?>
<br />
<br />

<form name="preview" method="get" action="<?php 
    echo $webimroot;
    ?>
/operator/themes.php">
	<div>
<?php 
    print_tabbar();
    ?>
	<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">

	<div class="fieldForm">
		<div class="field">
			<div class="flabel"><?php 
    echo getlocal("page.preview.choose");
    ?>
</div>
			<div class="fvaluenodesc">
				<select name="preview" onchange="this.form.submit();"><?php 
    foreach ($page['availablePreviews'] as $k) {
        echo "<option value=\"" . $k . "\"" . ($k == form_value("preview") ? " selected=\"selected\"" : "") . ">" . $k . "</option>";
    }
    ?>
</select>
			</div>
		</div>
		<div class="field">
			<div class="flabel"><?php 
    echo getlocal("page.preview.choosetpl");
    ?>
</div>
			<div class="fvaluenodesc">
				<select name="template" onchange="this.form.submit();"><?php 
    foreach ($page['availableTemplates'] as $k) {
        echo "<option value=\"" . $k . "\"" . ($k == form_value("template") ? " selected=\"selected\"" : "") . ">" . $k . "</option>";
    }
    ?>
</select>
			</div>
		</div>
<?php 
    if ($page['canshowerrors']) {
        ?>
		<div class="field">
			<div class="flabel"><?php 
        echo getlocal("page.preview.showerr");
        ?>
</div>
			<div class="fvaluenodesc">
				<input type="checkbox" name="showerr" value="on"<?php 
        echo form_value_cb('showerr') ? " checked=\"checked\"" : "";
        ?>
 onchange="this.form.submit();"/>
			</div>
		</div>
<?php 
    }
    foreach ($page['previewList'] as $pp) {
        ?>
		<div class="field">
			<div class="flabel">
			<?php 
        echo htmlspecialchars($pp['label']);
        ?>
			<a href="<?php 
        echo $page['showlink'];
        echo $pp['id'];
        ?>
" target="_blank" title="in separate window" onclick="this.newWindow = window.open('<?php 
        echo $page['showlink'];
        echo $pp['id'];
        ?>
', '<?php 
        echo $pp['id'];
        ?>
', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=<?php 
        echo $pp['w'];
        ?>
,height=<?php 
        echo $pp['h'];
        ?>
,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;">link</a>
			</div>
			<div class="fvalueframe">
			<iframe id="sample<?php 
        echo $pp['id'];
        ?>
" width="<?php 
        echo $pp['w'];
        ?>
" height="<?php 
        echo $pp['h'];
        ?>
" src="<?php 
        echo $page['showlink'];
        echo $pp['id'];
        ?>
" frameborder="0" scrolling="no">
				No iframes
			</iframe>
			</div>
		</div>
<?php 
    }
    ?>
	</div>
	
	</div><div class="formbottom"><div class="formbottomi"></div></div></div>
	</div>		
</form>

<?php 
}
Esempio n. 5
0
function tpl_content()
{
    global $page, $webimroot, $errors;
    ?>

<?php 
    echo getlocal("page_settings.intro");
    ?>
<br />
<br />
<?php 
    require_once 'inc_errors.php';
    if ($page['stored']) {
        ?>
<div id="formmessage"><?php 
        echo getlocal("features.saved");
        ?>
</div>
<?php 
    }
    ?>

<form name="features" method="post" action="<?php 
    echo $webimroot;
    ?>
/operator/features.php">
<input type="hidden" name="sent" value="true"/>
	<div>
<?php 
    print_tabbar();
    ?>
	<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">

	<div class="fieldForm">
		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.usercanchangename');
    ?>
</div>
			<div class="fvalue">
				<input type="checkbox" name="usercanchangename" value="on"<?php 
    echo form_value_cb('usercanchangename') ? " checked=\"checked\"" : "";
    echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
    ?>
/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.usercanchangename.description');
    ?>
</div>
			<br clear="all"/>
		</div>
		
		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.enablessl');
    ?>
</div>
			<div class="fvalue">
				<input id="enablessl" type="checkbox" name="enablessl" value="on"<?php 
    echo form_value_cb('enablessl') ? " checked=\"checked\"" : "";
    echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
    ?>
/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.enablessl.description');
    ?>
</div>
			<br clear="all"/>

			<div class="subfield underssl">
				<div class="flabel"><?php 
    echo getlocal('settings.forcessl');
    ?>
</div>
				<div class="fvalue">
					<input type="checkbox" name="forcessl" value="on"<?php 
    echo form_value_cb('forcessl') ? " checked=\"checked\"" : "";
    echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
    ?>
/>
				</div>
				<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.forcessl.description');
    ?>
</div>
				<br clear="all"/>
			</div>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.enableban');
    ?>
</div>
			<div class="fvalue">
				<input type="checkbox" name="enableban" value="on"<?php 
    echo form_value_cb('enableban') ? " checked=\"checked\"" : "";
    echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
    ?>
/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.enableban.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.enablegroups');
    ?>
</div>
			<div class="fvalue">
				<input type="checkbox" name="enablegroups" value="on"<?php 
    echo form_value_cb('enablegroups') ? " checked=\"checked\"" : "";
    echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
    ?>
/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.enablegroups.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.enablestatistics');
    ?>
</div>
			<div class="fvalue">
				<input type="checkbox" name="enablestatistics" value="on"<?php 
    echo form_value_cb('enablestatistics') ? " checked=\"checked\"" : "";
    echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
    ?>
/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.enablestatistics.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.enablepresurvey');
    ?>
</div>
			<div class="fvalue">
				<input id="enablepresurvey" type="checkbox" name="enablepresurvey" value="on"<?php 
    echo form_value_cb('enablepresurvey') ? " checked=\"checked\"" : "";
    echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
    ?>
/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.enablepresurvey.description');
    ?>
</div>
			<br clear="all"/>

			<div class="subfield undersurvey">
				<div class="flabel"><?php 
    echo getlocal('settings.survey.askmail');
    ?>
</div>
				<div class="fvalue">
					<input type="checkbox" name="surveyaskmail" value="on"<?php 
    echo form_value_cb('surveyaskmail') ? " checked=\"checked\"" : "";
    echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
    ?>
/>
				</div>
				<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.survey.askmail.description');
    ?>
</div>
				<br clear="all"/>
			</div>

			<div class="subfield undersurvey">
				<div class="flabel"><?php 
    echo getlocal('settings.survey.askgroup');
    ?>
</div>
				<div class="fvalue">
					<input type="checkbox" name="surveyaskgroup" value="on"<?php 
    echo form_value_cb('surveyaskgroup') ? " checked=\"checked\"" : "";
    echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
    ?>
/>
				</div>
				<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.survey.askgroup.description');
    ?>
</div>
				<br clear="all"/>
			</div>
			
			<div class="subfield undersurvey">
				<div class="flabel"><?php 
    echo getlocal('settings.survey.askmessage');
    ?>
</div>
				<div class="fvalue">
					<input type="checkbox" name="surveyaskmessage" value="on"<?php 
    echo form_value_cb('surveyaskmessage') ? " checked=\"checked\"" : "";
    echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
    ?>
/>
				</div>
				<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.survey.askmessage.description');
    ?>
</div>
				<br clear="all"/>
			</div>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.popup_notification');
    ?>
</div>
			<div class="fvalue">
				<input type="checkbox" name="enablepopupnotification" value="on"<?php 
    echo form_value_cb('enablepopupnotification') ? " checked=\"checked\"" : "";
    echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
    ?>
/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.popup_notification.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.show_online_operators');
    ?>
</div>
			<div class="fvalue">
				<input type="checkbox" name="showonlineoperators" value="on"<?php 
    echo form_value_cb('showonlineoperators') ? " checked=\"checked\"" : "";
    echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
    ?>
/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.show_online_operators.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.leavemessage_captcha');
    ?>
</div>
			<div class="fvalue">
				<input type="checkbox" name="enablecaptcha" value="on"<?php 
    echo form_value_cb('enablecaptcha') ? " checked=\"checked\"" : "";
    echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
    ?>
/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.leavemessage_captcha.description');
    ?>
</div>
			<br clear="all"/>
		</div>

    <?php 
    if ($page['canmodify']) {
        ?>
		<div class="fbutton">
			<input type="image" name="save" value="" src='<?php 
        echo $webimroot . getlocal("image.button.save");
        ?>
' alt='<?php 
        echo getlocal("button.save");
        ?>
'/>
		</div>
    <?php 
    }
    ?>
	</div>
	
	</div><div class="formbottom"><div class="formbottomi"></div></div></div>
	</div>		
</form>

<?php 
}