<?php

/* Smarty version Smarty-3.0.7, created on 2011-08-28 14:24:42
   compiled from "app/view/en_default/wiki_test_footer.html" */
/*%%SmartyHeaderCode:13581434754e5ab21a470ec5-32372372%%*/
if (!defined('SMARTY_DIR')) {
    exit('no direct access allowed');
}
$_smarty_tpl->decodeProperties(array('file_dependency' => array('cb423e3061919b4acda7d36f23e875b4d606befe' => array(0 => 'app/view/en_default/wiki_test_footer.html', 1 => 1302828140, 2 => 'file')), 'nocache_hash' => '13581434754e5ab21a470ec5-32372372', 'function' => array(), 'has_nocache_code' => false));
/*/%%SmartyHeaderCode%%*/
if (!is_callable('smarty_function_get_url')) {
    include '/var/www/virtualbox/lib/smarty/plugins/function.get_url.php';
}
echo smarty_function_get_url(array('url' => "/page-editor", 'param' => "wiki_test.html"), $_smarty_tpl);
<?php

/* Smarty version Smarty-3.0.7, created on 2011-08-28 14:24:26
   compiled from "app/view/en_default/editable_page.html" */
/*%%SmartyHeaderCode:1819272884e5ab20aca4075-48120903%%*/
if (!defined('SMARTY_DIR')) {
    exit('no direct access allowed');
}
$_smarty_tpl->decodeProperties(array('file_dependency' => array('17da245aea6ddc8907b12529a134da0af0145985' => array(0 => 'app/view/en_default/editable_page.html', 1 => 1304264076, 2 => 'file')), 'nocache_hash' => '1819272884e5ab20aca4075-48120903', 'function' => array(), 'has_nocache_code' => false));
/*/%%SmartyHeaderCode%%*/
if (!is_callable('smarty_function_get_url')) {
    include '/var/www/virtualbox/lib/smarty/plugins/function.get_url.php';
}
?>
<h2>Editable Page</h2>
<p>Sign In with any username (password is 'demo') to edit this page</p><p>

<?php 
echo smarty_function_get_url(array('url' => "/page-editor", 'param' => "editable_page.html"), $_smarty_tpl);
?>
</p>
}
if ($this->_sections['i']['show']) {
    for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1; $this->_sections['i']['iteration'] <= $this->_sections['i']['total']; $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++) {
        $this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
        $this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
        $this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
        $this->_sections['i']['first'] = $this->_sections['i']['iteration'] == 1;
        $this->_sections['i']['last'] = $this->_sections['i']['iteration'] == $this->_sections['i']['total'];
        ?>
          <tr>
            <td><?php 
        echo $this->_tpl_vars['group'][$this->_sections['i']['index']]['group_name'];
        ?>
</td>
            <td><a href="<?php 
        echo smarty_function_get_url(array('rule' => '/system/rights', 'data' => is_array($_tmp = 'gid=') ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['group'][$this->_sections['i']['index']]['gid']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['group'][$this->_sections['i']['index']]['gid'])), $this);
        ?>
" title="编辑权限"><img src="<?php 
        echo $this->_tpl_vars['root_dir'];
        ?>
/assets/simpla/images/icons/pencil.png" alt="编辑权限" /></a></td>
          </tr>
          <?php 
    }
}
?>
            </tbody>
        </table>
      </div>
    </div>
  </div>
        ?>
current<?php 
    }
    ?>
">系统</a>
        <ul>
            <?php 
    $_from = $this->_tpl_vars['menu']['system'];
    if (!is_array($_from) && !is_object($_from)) {
        settype($_from, 'array');
    }
    if (count($_from)) {
        foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['items']) {
            ?>
            <li><a href="<?php 
            echo smarty_function_get_url(array('rule' => '/system/'), $this);
            echo $this->_tpl_vars['k'];
            ?>
" class="<?php 
            if ($this->_tpl_vars['inpath'][2] == $this->_tpl_vars['k']) {
                ?>
current<?php 
            }
            ?>
"><?php 
            echo $this->_tpl_vars['items'];
            ?>
</a></li>
            <?php 
        }
    }
      <div class="content-box-header">
        <h3>添加管理</h3>
        <ul class="content-box-tabs">
            <li><a href="<?php 
echo smarty_function_get_url(array('rule' => "/category/index"), $this);
?>
">分类管理</a></li>
            <li><a href="#tab1" class="default-tab">添加分类</a></li>
        </ul>
        <div class="clear"></div>
      </div>
      <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
        	<div class="form">
              <form action="<?php 
echo smarty_function_get_url(array('rule' => '/category/category'), $this);
?>
" method="post" id="js-form">
                <fieldset class="clearfix">
                <input type="hidden" value="<?php 
echo $this->_tpl_vars['category']['cat_id'];
?>
" name="cat_id" />
                      <p><label>所属分类:</label>
                        <span><select id="one" name="pid">
                        <option value="0">-----顶级分类-----</option>
                        <?php 
unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop = $this->_tpl_vars['categorylist']) ? count($_loop) : max(0, (int) $_loop);
unset($_loop);
                  <td><span class="red"><?php 
        echo $this->_tpl_vars['goods'][$this->_sections['i']['index']]['countamount'];
        ?>
</span></td>
                  <td><span class="red"><?php 
        echo $this->_tpl_vars['goods'][$this->_sections['i']['index']]['salesamount'];
        ?>
</span></td>
                  <td><a href="<?php 
        echo smarty_function_get_url(array('rule' => '/goods/addgoods', 'data' => is_array($_tmp = 'gid=') ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['goods'][$this->_sections['i']['index']]['goods_id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['goods'][$this->_sections['i']['index']]['goods_id'])), $this);
        ?>
" title="编辑"><img src="<?php 
        echo $this->_tpl_vars['root_dir'];
        ?>
/assets/simpla/images/icons/pencil.png" alt="编辑" /></a>&nbsp;<a href="<?php 
        echo smarty_function_get_url(array('rule' => '/purchase/purchase', 'data' => is_array($_tmp = 'gid=') ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['goods'][$this->_sections['i']['index']]['goods_id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['goods'][$this->_sections['i']['index']]['goods_id'])), $this);
        ?>
" title="入库"><img src="<?php 
        echo $this->_tpl_vars['root_dir'];
        ?>
/assets/simpla/images/icons/hammer_screwdriver.png" alt="入库" /></a></td>
                </tr>
                <?php 
    }
}
?>
            </tbody>
          </table>
        </div>
      </div>
    </div>
        sizeAdjust: 7.5
      },
      cursor: {
        show: false
      }
  });
});
</script>
<?php 
}
?>
    <div class="content-box-content">
      <div class="tab-content default-tab" id="tab1">
      	<div class="form">
            <form action="<?php 
echo smarty_function_get_url(array('rule' => '/statistics/index'), $this);
?>
" method="post" id="js-form">
                <fieldset class="clearfix">
               	  <p>时间:<input type="text"  name="start" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  class="text-input min-input" value="<?php 
echo $this->_tpl_vars['start'];
?>
"/>--<input type="text"  name="end" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  class="text-input min-input" value="<?php 
echo $this->_tpl_vars['end'];
?>
"/>&nbsp;<select name="type">
                	  <option value="1" <?php 
if ($this->_tpl_vars['type'] == 1) {
    ?>
selected="selected"<?php 
}
</head>

<body id="login">
<div id="login-wrapper" class="png_bg">
  <div id="login-top">
    <h1>管理登录</h1>
    <img id="logo" src="<?php 
echo $this->_tpl_vars['root_dir'];
?>
/assets/simpla/images/logo.png" alt="<?php 
echo $this->_tpl_vars['head_title'];
?>
" /> </div>
  <div id="login-content">
    <form action="<?php 
echo smarty_function_get_url(array('rule' => '/main/index'), $this);
?>
" name="form1" method="post">
      <p>
        <label>用户名</label>
        <input class="text-input" name="username" type="text" />
      </p>
      <div class="clear"></div>
      <p>
        <label>密码</label>
        <input class="text-input" name="pwd" type="password" />
      </p>
      <div class="clear"></div>
      <p>
        <input class="button" type="submit" value="登录" />
      </p>
echo smarty_function_get_url(array('rule' => "/account/index"), $this);
?>
">帐号管理</a></li>
        <li><a href="#tab1" class="default-tab">添加帐号</a></li>
        <li><a href="<?php 
echo smarty_function_get_url(array('rule' => "/account/modifypwd"), $this);
?>
">密码修改</a></li>
      </ul>
      <div class="clear"></div>
    </div>
    <div class="content-box-content">
      <div class="tab-content default-tab" id="tab1">
        <div class="form">
          <form action="<?php 
echo smarty_function_get_url(array('rule' => '/account/addaccount'), $this);
?>
" method="post" id="js-form">
            <fieldset class="clearfix">
                <p>
                  <label><font class="red"> * </font>用户名:</label>
                  <span>
                  <input type="text" value="" class="text-input small-input" name="admin_name" />
                  </span> </p>
                <p>
                  <label><font class="red"> * </font>密码:</label>
                  <span>
                  <input type="password" value="" class="text-input small-input" name="pwd" />
                  </span> </p>
                <p>
                  <label><font class="red"> * </font>确认密码:</label>
$this->_smarty_include(array('smarty_include_tpl_file' => "simpla/common/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<script type="text/javascript">
    $(function() { 
		e = $(".ispromote:checked").val();
		if(e==1) $(".promote").show();
        $(".ispromote").click (function(){
			if($(".ispromote").attr("checked")){
				$(".promote").show();
			}else{
				$(".promote").hide();
			}
		});
		$("#getbarcode").click(function(){
			$.post("<?php 
echo smarty_function_get_url(array('rule' => "/ajax/getbarcode"), $this);
?>
",{},function(result){
				if(result){
					$("#goods_sn").val(result.code);
					$("#img").show();
					$("#img").attr("href",result.imgsrc);
				}else{
					alert("生成出错!");
				}
			},"json")
		})
    });
</script>
/* Smarty version Smarty-3.0.7, created on 2011-08-28 14:06:04
   compiled from "app/view/en_default/welcome.html" */
/*%%SmartyHeaderCode:20281793614e5aadbcc4e175-44683499%%*/
if (!defined('SMARTY_DIR')) {
    exit('no direct access allowed');
}
$_smarty_tpl->decodeProperties(array('file_dependency' => array('c64b8d72b3a3e40ecd47b02391b2cc642652e322' => array(0 => 'app/view/en_default/welcome.html', 1 => 1314537445, 2 => 'file')), 'nocache_hash' => '20281793614e5aadbcc4e175-44683499', 'function' => array(), 'has_nocache_code' => false));
/*/%%SmartyHeaderCode%%*/
if (!is_callable('smarty_function_get_url')) {
    include '/var/www/virtualbox/lib/smarty/plugins/function.get_url.php';
}
?>
				<div style="float: right">
					<?php 
echo smarty_function_get_url(array('url' => "/add-to-any", 'param' => "Thin PHP Framework Demo - a lightweight, flexible open source PHP5 MVC framework"), $_smarty_tpl);
?>

				</div>
				<h2>Welcome to ThinPHPFramework Demo!</h2>

				<p></p>
				<p><b>This is a Demo website. Feel free to browse around &amp; click on some links to find out what ThinPHPFramework can do.</b>
				<br/>Thin PHP Framework is a lightweight, flexible open source PHP5 MVC framework.
				</p>
				
				<p>Try out some Extensions in this Demo: Signin/Signout, Twitter box, Bookmark Share box, Wiki2html, syntaxhighlighter, captcha, editor, etc.				
				You can download any website template from the internet then apply this framework to build a robust website like this one in just a few minutes!</p>
				<ul>
					<li><a href="http://thinphp.com" target="_blank">Visit ThinPHPFramework official website</a></li>
				</ul>
/* Smarty version Smarty-3.0.7, created on 2011-08-28 14:12:58
   compiled from "app/view/en_default/search.html" */
/*%%SmartyHeaderCode:6756378244e5aaf5a59bbb4-28093080%%*/
if (!defined('SMARTY_DIR')) {
    exit('no direct access allowed');
}
$_smarty_tpl->decodeProperties(array('file_dependency' => array('c762cc84cf957caf416883380f01223b627869a5' => array(0 => 'app/view/en_default/search.html', 1 => 1314537392, 2 => 'file')), 'nocache_hash' => '6756378244e5aaf5a59bbb4-28093080', 'function' => array(), 'has_nocache_code' => false));
/*/%%SmartyHeaderCode%%*/
if (!is_callable('smarty_function_get_url')) {
    include '/var/www/virtualbox/lib/smarty/plugins/function.get_url.php';
}
?>
				<div style="float: right">
					<?php 
echo smarty_function_get_url(array('url' => "/add-to-any", 'param' => "Product Search Engine"), $_smarty_tpl);
?>

				</div>
				<h2>Search</h2>

				<p></p>
				<p><b>This is the page where you can search for a product or service in a database populated by our B2B Search Engines.</b>
				<br/>Our search engines crawl the web 24/7 in search of the best vendors have on offer. When a new product or service is dicovered anywhere in the world, our servers create an <a href="http://en.wikipedia.org/wiki/Resource_Description_Framework">RDF model</a> of the product and automatically make this information available to millions of potential buyers and thousands of B2B exhanges. 
				</p>
				
				<h2>Features</h2>
				<br/>Feel free to browse around &amp; click on some links to learn how our features work.</b>
				<p>Demo features: Change Locaction/Language, Signin/Signout, Twitter box, Bookmark Share box, Wiki2html, syntaxhighlighter, captcha, editor, etc.</p>

				<p>Below are some products and Services:</p>
    <div class="content-box-header">
      <h3>商品入库</h3>
      <ul class="content-box-tabs">
        <li><a href="<?php 
echo smarty_function_get_url(array('rule' => "/purchase/index"), $this);
?>
">库存情况</a></li>
        <li><a href="#tab1" class="default-tab">添加库存</a></li>
      </ul>
      <div class="clear"></div>
    </div>
    <div class="content-box-content">
      <div class="tab-content default-tab" id="tab1">
        <div class="form">
          <form action="<?php 
echo smarty_function_get_url(array('rule' => '/purchase/purchase', 'data' => "ac=" . $this->_tpl_vars['ac']), $this);
?>
" method="post" id="js-form">
            <fieldset class="clearfix">
            <input type="hidden" name="goods_id" value="<?php 
echo $this->_tpl_vars['goods']['goods_id'];
?>
" />
                  <?php 
if ($this->_tpl_vars['goods']['goods_name']) {
    ?>
<p><label>商品名称:<?php 
    echo $this->_tpl_vars['goods']['goods_name'];
    ?>
</label></p><?php 
}
if (empty($_smarty_tpl->getVariable('hide_signin', null, true, false)->value)) {
    ?>
					<?php 
    echo smarty_function_get_url(array('url' => "/sign-in"), $_smarty_tpl);
    ?>

				<?php 
}
?>
			</p>
			<p>
				New User? <a href="/register">Register</a> (Demo)
			</p>
			<p>
				<?php 
echo smarty_function_get_url(array('url' => "/twitter", 'param' => "thinphp"), $_smarty_tpl);
?>

			</p>
			<h3>Ipsum Dolorem</h3>
			<ul>
				<li><a href="#">Sagittis Bibendum Erat</a></li>
				<li><a href="#">Malesuada Turpis</a></li>
				<li><a href="#">Quis Gravida Massa</a></li>
				<li><a href="#">Inerat Viverra Ornare</a></li>
			</ul>
		</div>
		<div class="clear"></div>
	</div>
	<div id="footer">
		<p>Powered by <a href="http://www.thinphp.com">Thin PHP Framework</a><br/><a href="/terms">Terms and Conditions</a></p>
if ($this->_sections['i']['show']) {
    for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1; $this->_sections['i']['iteration'] <= $this->_sections['i']['total']; $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++) {
        $this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
        $this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
        $this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
        $this->_sections['i']['first'] = $this->_sections['i']['iteration'] == 1;
        $this->_sections['i']['last'] = $this->_sections['i']['iteration'] == $this->_sections['i']['total'];
        ?>
            <tr>
              <td><?php 
        echo $this->_tpl_vars['category'][$this->_sections['i']['index']]['pre'];
        echo $this->_tpl_vars['category'][$this->_sections['i']['index']]['cat_name'];
        ?>
</td>
              <td><a href="<?php 
        echo smarty_function_get_url(array('rule' => '/category/category', 'data' => is_array($_tmp = 'catid=') ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['category'][$this->_sections['i']['index']]['cat_id']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['category'][$this->_sections['i']['index']]['cat_id'])), $this);
        ?>
" title="编辑"><img src="<?php 
        echo $this->_tpl_vars['root_dir'];
        ?>
/assets/simpla/images/icons/pencil.png" alt="编辑" /></a></td>
            </tr>
            <?php 
    }
}
?>
            </tbody>
          </table>
        </div>
      </div>
    </div>