1 <div class="systems view">
2 <h2><?php echo $system['System']['name']; ?></h2>
11 <td colspan="3" class="photo">
14 if ($system['System']['url']) {
15 $url = $system['System']['url'];
18 $file = $upfile->file(
20 CorePlus::get_value($system, 'Attachment.0'),
22 'model_name' => 'System',
23 'mime_type' => 'original',
31 'alt' => CorePlus::get_value($system, 'Attachment.0.alternative'),
32 'restrict' => array('image'),
33 'htmlAttributes' => array(
46 <?php if ($system['System']['url']): ?>
47 <?php echo $html->link($system['System']['url'], $system['System']['url'], array('target'=>'_blank'), false, false); ?>
55 <?php __('Public'); ?>
58 <?php echo $select->get_i18n_public_flag($system['System']['public_flag'], $public_flags) ?>
61 <?php __('Use NPC Setting'); ?>
64 <?php if ($system['System']['set_npc']): ?>
65 <?php echo __('Use', true) ?>
67 <?php echo __('No Use', true) ?>
73 <?php __('Detail'); ?>
76 <?php echo $system['System']['detail']; ?>
87 <li><?php echo $html->link(__('Edit System', true), array('action' => 'edit', $system['System']['id'])); ?> </li>
88 <li><?php echo $html->link(__('Delete System', true), array('action' => 'delete', $system['System']['id']), null, sprintf(__('Are you sure you want to delete %s?', true), $system['System']['name'])); ?> </li>
94 <div class="profiles view">
95 <h2><?php __('Profiles');?></h2>
99 <li><?php echo $html->link(__('New Profile', true), array('controller' => 'profiles', 'action' => 'add', $system['System']['id'])); ?></li>
107 <?php echo __('ID', true);?>
110 <?php echo __('Order');?>
113 <?php echo __('Detail');?>
118 foreach ($system['Profile'] as $profile):
120 $profiledisp->set_profile_type4view($profile);
123 <td rowspan="<?php if ($profiledisp->profile_type['is_subsetting']): ?>4<?php else: ?>3<?php endif; ?>">
124 <?php echo $profile['id']; ?>
126 <td rowspan="<?php if ($profiledisp->profile_type['is_subsetting']): ?>4<?php else: ?>3<?php endif; ?>">
127 <?php echo $profile['sort_order']; ?>
131 <?php echo __('Item Name', true);?>
134 <?php echo __('Key Name', true);?>
137 <?php echo __('Input Type', true);?>
140 <?php echo __('Required', true);?>
143 <?php echo __('Editable', true);?>
146 <?php echo __('Default Public Flag', true);?>
151 <?php echo $profile['name']; ?>
154 <?php echo $profile['key_name']; ?>
158 $profile_type = $profiledisp->get_i18n_profile_type($profile['profile_type'], $profile_types);
163 <?php if ($profile['required']) {
164 echo __('true' ,true);
166 echo __('false' ,true);
171 <?php if ($profile['editable']) {
172 echo __('true' ,true);
174 echo __('false' ,true);
179 <?php echo $select->get_i18n_public_flag($profile['public_flag_default'], $public_flags); ?>
182 <?php if ($profiledisp->profile_type['is_subsetting']): ?>
184 <td colspan="6"<?php if($profiledisp->profile_type['is_table']): ?> class="table"<?php endif; ?>>
186 $profiledisp->disp_forms4profile_type($profile, 2, 0);
192 <td colspan="6" class="actions">
193 <?php if ($profiledisp->profile_type['is_select'] || $profiledisp->profile_type['is_radio'] || $profiledisp->profile_type['is_checkbox']): ?>
196 __('Edit Items', true),
197 array('controller' => 'profile_selects', 'action' => 'admin_listview', $profile['id'])
201 <?php if ($profiledisp->profile_type['is_table']): ?>
204 __('Edit Table', true),
205 array('controller' => 'profile_tables', 'action' => 'admin_listview', $profile['id'])
212 array('controller' => 'profiles', 'action' => 'edit', $profile['id'])
216 array('controller' => 'profiles', 'action' => 'delete', $profile['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $profile['id'])