Exemplo n.º 1
0
Arquivo: group.php Projeto: kuell/chat
function tpl_content()
{
    global $page, $mibewroot, $errors;
    ?>

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

<form name="groupForm" method="post" action="<?php 
    echo $mibewroot;
    ?>
/operator/group.php">
<?php 
    print_csrf_token_input();
    ?>
<input type="hidden" name="gid" value="<?php 
    echo safe_htmlspecialchars($page['grid']);
    ?>
"/>
	<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('form.field.groupname');
    ?>
<span class="required">*</span></div>
			<div class="fvalue">
				<input type="text" name="name" size="40" value="<?php 
    echo form_value('name');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('form.field.groupname.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('form.field.groupdesc');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="description" size="40" value="<?php 
    echo form_value('description');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('form.field.groupdesc.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('form.field.groupcommonname');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="commonname" size="40" value="<?php 
    echo form_value('commonname');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('form.field.groupcommonname.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('form.field.groupcommondesc');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="commondescription" size="40" value="<?php 
    echo form_value('commondescription');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('form.field.groupcommondesc.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"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('form.field.groupemail.description');
    ?>
</div>
			<br clear="all"/>
		</div>
		
		<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>
	</div>

	</div><div class="formbottom"><div class="formbottomi"></div></div></div>
	</div>

	<div class="asterisk">
		<?php 
    echo getlocal("common.asterisk_explanation");
    ?>
	</div>

</form>

<?php 
}
Exemplo n.º 2
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("settings.saved");
        ?>
</div>
<?php 
    }
    ?>

<form name="performance" method="post" action="<?php 
    echo $webimroot;
    ?>
/operator/performance.php">
<?php 
    print_csrf_token_input();
    ?>
	<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.onlinetimeout');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="onlinetimeout" size="40" value="<?php 
    echo form_value('onlinetimeout');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.onlinetimeout.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.frequencyoperator');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="frequencyoperator" size="40" value="<?php 
    echo form_value('frequencyoperator');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.frequencyoperator.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.frequencychat');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="frequencychat" size="40" value="<?php 
    echo form_value('frequencychat');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.frequencychat.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.frequencyoldchat');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="frequencyoldchat" size="40" value="<?php 
    echo form_value('frequencyoldchat');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.frequencyoldchat.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.onehostconnections');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="onehostconnections" size="40" value="<?php 
    echo form_value('onehostconnections');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.onehostconnections.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.threadlifetime');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="threadlifetime" size="40" value="<?php 
    echo form_value('threadlifetime');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.threadlifetime.description');
    ?>
</div>
			<br clear="all"/>
		</div>
		
		<div class="fbutton">
			<input type="image" name="save" value="" src='<?php 
    echo $webimroot . getlocal("image.button.save");
    ?>
' alt='<?php 
    echo getlocal("button.save");
    ?>
'/>
		</div>

	</div>
	
	</div><div class="formbottom"><div class="formbottomi"></div></div></div>
	</div>		
	
	<div class="asterisk">
		<?php 
    echo getlocal("common.asterisk_explanation");
    ?>
	</div>

</form>

<?php 
}
Exemplo n.º 3
0
Arquivo: agent.php Projeto: 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 
    }
}
Exemplo n.º 4
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 
}
Exemplo 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("settings.saved");
        ?>
</div>
<?php 
    }
    ?>

<form name="settings" method="post" action="<?php 
    echo $webimroot;
    ?>
/operator/settings.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('settings.email');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="email" size="40" value="<?php 
    echo form_value('email');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.email.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.company.title');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="title" size="40" value="<?php 
    echo form_value('title');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.company.title.description');
    ?>
</div>
			<br clear="all"/>
		</div>
		 
		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.chat.title');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="chattitle" size="40" value="<?php 
    echo form_value('chattitle');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.chat.title.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.logo');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="logo" size="40" value="<?php 
    echo form_value('logo');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.logo.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.host');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="hosturl" size="40" value="<?php 
    echo form_value('hosturl');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.host.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.geolink');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="geolink" size="40" value="<?php 
    echo form_value('geolink');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.geolink.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.geolinkparams');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="geolinkparams" size="40" value="<?php 
    echo form_value('geolinkparams');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.geolinkparams.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.usernamepattern');
    ?>
</div>
			<div class="fvalue">
				<input type="text" name="usernamepattern" size="40" value="<?php 
    echo form_value('usernamepattern');
    ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.usernamepattern.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.chatstyle');
    ?>
</div>
			<div class="fvalue">
				<select name="chatstyle" ><?php 
    foreach ($page['availableStyles'] as $k) {
        echo "<option value=\"" . $k . "\"" . ($k == form_value("chatstyle") ? " selected=\"selected\"" : "") . ">" . $k . "</option>";
    }
    ?>
</select>
			</div>
			<div class="fdescr"> &mdash; <?php 
    echo getlocal('settings.chatstyle.description');
    ?>
</div>
			<br clear="all"/>
		</div>

		<div class="field">
			<div class="flabel"><?php 
    echo getlocal('settings.sendmessagekey');
    ?>
</div>
			<div class="fvaluenodesc">
				<label>
					<input type="radio" name="sendmessagekey" value="enter" <?php 
    echo form_value("sendmessagekey") == "enter" ? " checked=\"checked\"" : "";
    ?>
/>Enter</label>
				<label>	
					<input type="radio" name="sendmessagekey" value="center" <?php 
    echo form_value("sendmessagekey") == "center" ? " checked=\"checked\"" : "";
    ?>
/>Ctrl-Enter</label>
			</div>
		</div>

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

	</div>
	
	</div><div class="formbottom"><div class="formbottomi"></div></div></div>
	</div>		
	
	<div class="asterisk">
		<?php 
    echo getlocal("common.asterisk_explanation");
    ?>
	</div>

</form>

<?php 
}
Exemplo n.º 6
0
function tpl_content()
{
    global $page, $mibewroot, $errors;
    ?>

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

<form name="opgroupsForm" method="post" action="<?php 
    echo $mibewroot;
    ?>
/operator/opgroups.php">
<?php 
    print_csrf_token_input();
    ?>
<input type="hidden" name="op" value="<?php 
    echo safe_htmlspecialchars($page['opid']);
    ?>
"/>
	<div>
<?php 
    print_tabbar();
    ?>
	<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">

	<p>
		<b><?php 
    echo safe_htmlspecialchars($page['currentop']);
    ?>
&lrm;</b>
	</p>
<?php 
    foreach ($page['groups'] as $pm) {
        ?>
	<div class="field">
		<div class="flabel"><?php 
        echo safe_htmlspecialchars(topage($pm['vclocalname']));
        ?>
</div>
		<div class="fvalue">
			<input type="checkbox" name="group<?php 
        echo safe_htmlspecialchars($pm['groupid']);
        ?>
" value="on"<?php 
        echo form_value_mb('group', $pm['groupid']) ? " checked=\"checked\"" : "";
        echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
        ?>
/>
		</div>
		<div class="fdescr"> &mdash; <?php 
        echo $pm['vclocaldescription'] ? safe_htmlspecialchars(topage($pm['vclocaldescription'])) : getlocal("operator.group.no_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 class="formbottom"><div class="formbottomi"></div></div></div>
	</div>
</form>

<?php 
}
Exemplo n.º 7
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 
}
Exemplo n.º 8
0
function tpl_content()
{
    global $page, $mibewroot, $errors;
    ?>

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

<form name="membersForm" method="post" action="<?php 
    echo $mibewroot;
    ?>
/operator/groupmembers.php">
<?php 
    print_csrf_token_input();
    ?>
<input type="hidden" name="gid" value="<?php 
    echo safe_htmlspecialchars($page['groupid']);
    ?>
"/>
	<div>
<?php 
    print_tabbar();
    ?>
	<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">

	<p>
		<b><?php 
    echo safe_htmlspecialchars($page['currentgroup']);
    ?>
</b>
	</p>
<?php 
    foreach ($page['operators'] as $pm) {
        ?>
	<div class="field">
		<div class="fvaluenodesc">
			<input type="checkbox" name="op<?php 
        echo safe_htmlspecialchars($pm['operatorid']);
        ?>
" value="on"<?php 
        echo form_value_mb('op', $pm['operatorid']) ? " checked=\"checked\"" : "";
        ?>
/>
			<?php 
        echo safe_htmlspecialchars(topage($pm['vclocalename']));
        ?>
 (<a href="operator.php?op=<?php 
        echo urlencode($pm['operatorid']);
        ?>
"
				><?php 
        echo safe_htmlspecialchars(topage($pm['vclogin']));
        ?>
</a>)
		</div>
	</div>
<?php 
    }
    ?>

	<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>

	</div><div class="formbottom"><div class="formbottomi"></div></div></div>
	</div>
</form>

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

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

<form name="avatarForm" method="post" action="<?php 
    echo $webimroot;
    ?>
/operator/avatar.php" enctype="multipart/form-data">
<input type="hidden" name="op" value="<?php 
    echo $page['opid'];
    ?>
"/>
	<div>
<?php 
    print_tabbar();
    ?>
	<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">

	<p>
		<b><?php 
    echo $page['currentop'];
    ?>
&lrm;</b>
	</p>

	<div class="fieldForm">

<?php 
    if ($page['avatar']) {
        ?>
		<div class="field">
			<div class="flabel"><?php 
        echo getlocal('form.field.avatar.current');
        ?>
</div>
			<div class="fvalue">
				<img src="<?php 
        echo $page['avatar'];
        ?>
" alt="cannot load avatar"/><br/>
<?php 
        if ($page['canmodify']) {
            ?>
                <a class="formauth" href='<?php 
            echo $webimroot;
            ?>
/operator/avatar.php?op=<?php 
            echo $page['opid'];
            ?>
&amp;delete=true'>
                    <?php 
            echo getlocal("page_agent.clear_avatar");
            ?>
                </a>
<?php 
        }
        ?>
			</div>
			<div class="fdescr"> &mdash; <?php 
        echo getlocal('form.field.avatar.current.description');
        ?>
</div>
			<br clear="all"/>
		</div>
<?php 
    } else {
        if (!$page['canmodify']) {
            ?>
		<div class="field">
			<div class="fvaluenodesc">
				No avatar
			</div>
		</div>
<?php 
        }
    }
    ?>

<?php 
    if ($page['canmodify']) {
        ?>
		<div class="field">
			<div class="flabel"><?php 
        echo getlocal('form.field.avatar.upload');
        ?>
<span class="required">*</span></div>
			<div class="fvalue">
				<input type="file" name="avatarFile" size="40" value="<?php 
        echo form_value('avatarFile');
        ?>
" class="formauth"/>
			</div>
			<div class="fdescr"> &mdash; <?php 
        echo getlocal('form.field.avatar.upload.description');
        ?>
</div>
			<br clear="all"/>
		</div>

		<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>		

	<div class="asterisk">
		<?php 
    echo getlocal("common.asterisk_explanation");
    ?>
	</div>
</form>

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

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

<form name="permissionsForm" method="post" action="<?php 
    echo $webimroot;
    ?>
/operator/permissions.php">
<input type="hidden" name="op" value="<?php 
    echo $page['opid'];
    ?>
"/>
	<div>
<?php 
    print_tabbar();
    ?>
	<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">

	<p>
		<b><?php 
    echo $page['currentop'];
    ?>
&lrm;</b>
	</p>
<?php 
    foreach ($page['permissionsList'] as $pm) {
        ?>
	<label>
		<input type="checkbox" name="permissions<?php 
        echo $pm['id'];
        ?>
" value="on"<?php 
        echo form_value_mb('permissions', $pm['id']) ? " checked=\"checked\"" : "";
        echo $page['canmodify'] ? "" : " disabled=\"disabled\"";
        ?>
/> <?php 
        echo $pm['descr'];
        ?>
	</label>
	<br/>
<?php 
    }
    ?>

<?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 class="formbottom"><div class="formbottomi"></div></div></div>
	</div>		
</form>

<?php 
}
Exemplo n.º 11
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 
}
Exemplo n.º 12
0
function tpl_content()
{
    global $page, $webimroot, $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['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 $webimroot;
        ?>
/operator/operator.php">
<input type="hidden" name="opid" value="<?php 
        echo $page['opid'];
        ?>
"/>
	<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('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'] ? "" : " 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']) {
            ?>
<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\"";
        ?>
/>
			</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']) {
            ?>
<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\"";
        ?>
/>
			</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['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>		
	
	<div class="asterisk">
		<?php 
        echo getlocal("common.asterisk_explanation");
        ?>
	</div>

</form>
<?php 
    }
}