<?php /* Smarty version 2.6.19, created on 2008-05-18 07:31:07
         compiled from datasets/index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'nl2br', 'datasets/index.html', 19, false),)), $this); ?>
<!-- Header -->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'includes/header.inc', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</head>
<body>
<!-- Main -->
<table border=0 cellspacing=0 cellpadding=0 valign="top" id="container">
<tr><td>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'includes/pathlist.inc', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</td></tr>
<tr><td valign="top" id="maincont">
	<h1><?php echo $this->_tpl_vars['page']['name']; ?>
</h1>


<!-- Message -->
<?php if ($this->_tpl_vars['page']['message']): ?>	<p><?php echo ((is_array($_tmp=$this->_tpl_vars['page']['message'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</p><?php endif; ?>

<?php if ($this->_tpl_vars['input_form']): ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'includes/auto_input_form.inc', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php endif; ?>

<?php if ($_REQUEST['mode'] == 'write_conf' || $_REQUEST['mode'] == 'create_table' || $_REQUEST['mode'] == 'create_template'): ?>
<div style="margin-top:15px;">
<a href="<?php echo $this->_tpl_vars['page']['base_url']; ?>
/datasets/edit?id=<?php echo $_REQUEST['id']; ?>
">戻る</a>
</div>


<?php elseif ($_GET['id'] && $this->_tpl_vars['quicty']['action'] != 'delete'): ?>
<div style="margin-top:15px;">
<div style="background-color:#e0e0e0;">
<div style="float:left;padding:2px 5px;"><strong>入力フォームのプレビュー</strong></div>
<div style="float:right;padding:2px 5px;"><a href="<?php echo $this->_tpl_vars['page']['base_url']; ?>
/fields/add?datasets_id=<?php echo $this->_tpl_vars['datasets']['id']; ?>
">フィールドを追加</a></div>
<br clear="all" />
</div>
<div style="margin-top:5px;">
<?php $this->assign('input_form', $this->_tpl_vars['new_fields']); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'includes/auto_input_form.inc', 'smarty_include_vars' => array('thbg' => ' style="background-color:#eee;"')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</div>
</div>

<div style="margin-top:15px;">
<div style="background-color:#e0e0e0;">
<div style="float:left;padding:2px 5px;"><strong>データセット内全フィールド</strong></div>
<div style="float:right;padding:2px 5px;"><a href="<?php echo $this->_tpl_vars['page']['base_url']; ?>
/fields/batch_update?datasets_id=<?php echo $this->_tpl_vars['datasets']['id']; ?>
">フィールドの並べ替え</a></div>
<br clear="all" />
</div>
<div style="margin-top:5px;">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'includes/fields/table_view.inc', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</div>
</div>

<div style="margin-top:15px;">
<div style="background-color:#e0e0e0;padding:2px 5px;"><strong>テーブル関連設定ファイルの保存</strong></div>
<div style="margin-top:5px;">
<?php $this->assign('input_form', $this->_tpl_vars['write_conf']); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'includes/auto_input_form.inc', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</div>
</div>

<div style="margin-top:15px;">
<div style="background-color:#e0e0e0;padding:2px 5px;"><strong>テーブルの作成</strong></div>
<div style="margin-top:5px;">
<?php $this->assign('input_form', $this->_tpl_vars['create_form']); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'includes/auto_input_form.inc', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</div>
</div>
<div style="margin-top:15px;">
<div style="background-color:#e0e0e0;padding:2px 5px;"><strong>フォーム/テーブル表示テンプレートの作成</strong></div>
<div style="margin-top:5px;">
<?php $this->assign('input_form', $this->_tpl_vars['create_template']); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'includes/auto_input_form.inc', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</div>
</div>


<?php endif; ?>


<!-- End of Main -->
</td>
<!-- Right -->
<td valign="top" id="mainright">
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'includes/right.inc', 'smarty_include_vars' => array('application_id' => $this->_tpl_vars['application_id'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</td></tr>
</table>
<!-- Footer -->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'includes/footer.inc', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>