<div class="title">
	<b><?=Lang::get('padmin_design_settings', 'padmin'); ?></b>
</div>
<div class="menu">
	<form action="/padmin/index/design?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; ?>" <?=(System::getSettings('wap_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; ?>" <?=(System::getSettings('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; ?>" <?=(System::getSettings('web_theme') == $web ? 'selected="selected"' : ''); ?>><?=Ini::read('theme_name', 'design/themes/web/[var]/theme.ini', $web); ?></option>
			<?php endif; ?>
		<?php endforeach; ?>
	</select><br/>
	<?=Lang::get('padmin_design_switcher', 'padmin'); ?>:<br/>
		<select name="active_switch">
			<option value="0"<?=(System::getSettings('active_switch') == 0 ? ' selected="selected"':'');?>><?=Lang::get('padmin_yes', 'padmin'); ?></option>
			<option value="1"<?=(System::getSettings('active_switch') == 1 ? ' selected="selected"':'');?>><?=Lang::get('padmin_no', 'padmin'); ?></option>
		</select><br/>
	<?=Lang::get('padmin_design_def_type', 'padmin'); ?>:<br/>
		<select name="def_type">
			<option value="0"<?=(System::getSettings('default_type') ==0 ? ' selected="selected"' : '');?>><?=Lang::get('padmin_design_autotype', 'padmin'); ?></option>
			<option value="1"<?=(System::getSettings('default_type') ==1 ? ' selected="selected"' : '');?>> Mobile </option>
			<!---->
			<option value="2"<?=(System::getSettings('default_type') ==2 ? ' selected="selected"' : '');?>> Touch </option>
			<!---->
			<option value="3"<?=(System::getSettings('default_type') ==3 ? ' selected="selected"' : '');?>> WEB </option>
			<!---->
		</select><br/> 
	<input type="submit" value="<?=Lang::get('save')?>" />
	</form>
</div>
<div class="block">
	<?=System::image('back.png'); ?> <a href="/padmin/index"><?=Lang::get('padmin_title', 'padmin'); ?></a><br/>
	<?=System::image('back.png'); ?> <a href="/"><?=Lang::get('mainpage'); ?></a>
</div>
