View file protected/views/user/interface.php

File size: 1.89Kb
<div class="title">
	<b><?=Lang::get('padmin_design_settings', 'padmin'); ?></b>
</div>
<?php if(isset($_GET['saved'])): ?>
<div class="post"><span style="color:green;">Succefuly saved!</span></div>
<?php endif; ?>
<div class="menu">
	<form action="/user/interface?act=save" method="post">
	<?=Lang::get('padmin_design_def_wap', 'padmin'); ?>:<br/>
	<select name="wap_theme">
		<?php foreach($waps as $wap): ?>
			<?php if($wap != '.' and $wap != '..' and $wap !='.htaccess'): ?>
				<option value="<?=$wap; ?>" <?=User::getSettingsRow('theme') == $wap ? 'selected="selected"' : ""; ?>><?=Ini::read('theme_name', 'design/themes/wap/[var]/theme.ini', $wap); ?></option>
			<?php endif; ?>
		<?php endforeach ?>
	</select><br/>
	<?=Lang::get('padmin_design_def_touch', 'padmin'); ?>:<br/>
	<select name="touch_theme">
		<?php foreach($touchs as $touch): ?>
			<?php if($touch != '.' and $touch != '..' and $touch !='.htaccess'): ?>
				<option value="<?=$touch; ?>" <?=User::getSettingsRow('touch_theme') == $touch ? 'selected="selected"' : ""; ?>><?=Ini::read('theme_name', 'design/themes/touch/[var]/theme.ini', $touch); ?></option>
			<?php endif; ?>
		<?php endforeach ?>
	</select><br/>
	<?=Lang::get('padmin_design_def_web', 'padmin'); ?>:<br/>
	<select name="web_theme">
		<?php foreach($webs as $web): ?>
			<?php if($web != '.' and $web != '..' and $web !='.htaccess'): ?>
				<option value="<?=$web; ?>" <?=User::getSettingsRow('touch_theme') == $web ? 'selected="selected"' : ""; ?>><?=Ini::read('theme_name', 'design/themes/web/[var]/theme.ini', $web); ?></option>
			<?php endif; ?>
		<?php endforeach ?>
	</select><br/>
	<input type="submit" value="<?=Lang::get('save')?>" />
	</form>
</div>
<div class="block">
	<?=System::image('back.png'); ?> <a href="/user/index"><?=Lang::get('panel'); ?></a><br/>
	<?=System::image('back.png'); ?> <a href="/"><?=Lang::get('mainpage'); ?></a>
</div>