예제 #1
0
					<a class="shop_ltitle" href="index.php?p=shop&amp;act=prd&amp;cid=<?php 
            echo $this->_tpl_vars['cid'];
            ?>
&amp;pid=<?php 
            echo $this->_tpl_vars['data']['pid'];
            ?>
" title="<?php 
            echo $this->_tpl_vars['data']['pname'];
            ?>
"><?php 
            echo $this->_tpl_vars['data']['pname'];
            ?>
</a><br />
					<p class="desc">
						<?php 
            if ((is_array($_tmp = $this->_tpl_vars['data']['pdesc']) ? $this->_run_mod_handler('count_characters', true, $_tmp) : smarty_modifier_count_characters($_tmp)) > 100) {
                ?>
							<?php 
                echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['data']['pdesc']) ? $this->_run_mod_handler('truncate', true, $_tmp, 100, "...") : smarty_modifier_truncate($_tmp, 100, "...")) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp);
                ?>

						<?php 
            } else {
                ?>
							<?php 
                echo $this->_tpl_vars['data']['pdesc'];
                ?>

						<?php 
            }
            ?>
" alt="<?php 
        echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrProducts'][$this->_sections['cnt']['index']]['name']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp);
        ?>
" class="picture" /></a>
     </div>
     <div class="listrightblock">
       <!--アイコン-->
       <!--商品ステータス-->
       <?php 
        if (count(is_array($_tmp = $this->_tpl_vars['arrProducts'][$this->_sections['cnt']['index']]['product_flag']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) > 0) {
            ?>
       <ul class="status_icon">
         <?php 
            unset($this->_sections['flg']);
            $this->_sections['flg']['name'] = 'flg';
            $this->_sections['flg']['loop'] = is_array($_loop = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['arrProducts'][$this->_sections['cnt']['index']]['product_flag']) ? $this->_run_mod_handler('script_escape', true, $_tmp) : smarty_modifier_script_escape($_tmp)) ? $this->_run_mod_handler('count_characters', true, $_tmp) : smarty_modifier_count_characters($_tmp)) ? count($_loop) : max(0, (int) $_loop);
            unset($_loop);
            $this->_sections['flg']['show'] = true;
            $this->_sections['flg']['max'] = $this->_sections['flg']['loop'];
            $this->_sections['flg']['step'] = 1;
            $this->_sections['flg']['start'] = $this->_sections['flg']['step'] > 0 ? 0 : $this->_sections['flg']['loop'] - 1;
            if ($this->_sections['flg']['show']) {
                $this->_sections['flg']['total'] = $this->_sections['flg']['loop'];
                if ($this->_sections['flg']['total'] == 0) {
                    $this->_sections['flg']['show'] = false;
                }
            } else {
                $this->_sections['flg']['total'] = 0;
            }
            if ($this->_sections['flg']['show']) {
                for ($this->_sections['flg']['index'] = $this->_sections['flg']['start'], $this->_sections['flg']['iteration'] = 1; $this->_sections['flg']['iteration'] <= $this->_sections['flg']['total']; $this->_sections['flg']['index'] += $this->_sections['flg']['step'], $this->_sections['flg']['iteration']++) {
} else {
    $this->_sections['s']['total'] = 0;
}
if ($this->_sections['s']['show']) {
    for ($this->_sections['s']['index'] = $this->_sections['s']['start'], $this->_sections['s']['iteration'] = 1; $this->_sections['s']['iteration'] <= $this->_sections['s']['total']; $this->_sections['s']['index'] += $this->_sections['s']['step'], $this->_sections['s']['iteration']++) {
        $this->_sections['s']['rownum'] = $this->_sections['s']['iteration'];
        $this->_sections['s']['index_prev'] = $this->_sections['s']['index'] - $this->_sections['s']['step'];
        $this->_sections['s']['index_next'] = $this->_sections['s']['index'] + $this->_sections['s']['step'];
        $this->_sections['s']['first'] = $this->_sections['s']['iteration'] == 1;
        $this->_sections['s']['last'] = $this->_sections['s']['iteration'] == $this->_sections['s']['total'];
        ?>
		<?php 
        echo $this->_tpl_vars['aa'][$this->_sections['s']['index']]['name'];
        ?>
---<?php 
        echo $this->_tpl_vars['aa'][$this->_sections['s']['index']]['says'];
        ?>

		<br/>
		<hr/>
		<?php 
    }
}
?>
		<hr />
		<?php 
echo is_array($_tmp = $this->_tpl_vars['na1']) ? $this->_run_mod_handler('count_characters', true, $_tmp) : smarty_modifier_count_characters($_tmp);
?>

	</body>
</html>
?>
				</select>
			</td>
		</tr>

		<tr>
			<th style="background:none;"><?php 
echo $this->_tpl_vars['labels']['th_locale'];
?>
</th>
			<td>
        <?php 
$this->assign('selected_locale', $this->_tpl_vars['userData']->locale);
?>
        <?php 
if ((is_array($_tmp = $this->_tpl_vars['userData']->locale) ? $this->_run_mod_handler('count_characters', true, $_tmp) : smarty_modifier_count_characters($_tmp)) == 0) {
    ?>
           <?php 
    $this->assign('selected_locale', $this->_tpl_vars['locale']);
    ?>
        <?php 
}
?>

				<select name="locale">
				<?php 
echo smarty_function_html_options(array('options' => $this->_tpl_vars['optLocale'], 'selected' => $this->_tpl_vars['selected_locale']), $this);
?>

				</select>
			</td>
			<div class="description">

                <?php if ($this->_tpl_vars['doc']->db == 'DECS'): ?>
                    <?php $this->assign('ab', "ab_".($_REQUEST['lang'])); ?>
                    <?php ob_start(); ?>
                        <?php echo $this->_tpl_vars['doc']->{(($_var=$this->_tpl_vars['ab']) && substr($_var,0,2)!='__') ? $_var : $this->trigger_error("cannot access property \"$_var\"")}[0]; ?>

                    <?php $this->_smarty_vars['capture']['abstract'] = ob_get_contents(); ob_end_clean(); ?>
                <?php else: ?>
                    <?php ob_start(); ?>
                        <?php echo smarty_function_occ(array('element' => $this->_tpl_vars['doc']->ab,'separator' => "<hr/>"), $this);?>

                    <?php $this->_smarty_vars['capture']['abstract'] = ob_get_contents(); ob_end_clean(); ?>
                <?php endif; ?>

				<?php if (((is_array($_tmp=$this->_smarty_vars['capture']['abstract'])) ? $this->_run_mod_handler('count_characters', true, $_tmp) : smarty_modifier_count_characters($_tmp)) > 800 && $this->_tpl_vars['printMode'] != 'true'): ?>
					<?php $this->assign('ab1', ((is_array($_tmp=$this->_smarty_vars['capture']['abstract'])) ? $this->_run_mod_handler('substr', true, $_tmp, 0, 800) : substr($_tmp, 0, 800))); ?>
					<?php $this->assign('ab2', ((is_array($_tmp=$this->_smarty_vars['capture']['abstract'])) ? $this->_run_mod_handler('substr', true, $_tmp, 800) : substr($_tmp, 800))); ?>
					<span>
						<?php echo $this->_tpl_vars['ab1']; ?>

						<a href="#" onclick="$('#ab_<?php echo $this->_tpl_vars['doc']->id; ?>
').fadeIn('slow');$(this).css('display','none');return false">(<?php echo $this->_tpl_vars['texts']['MORE']; ?>
)</a>
						<span id="ab_<?php echo $this->_tpl_vars['doc']->id; ?>
" style="display:none;">
							<?php echo $this->_tpl_vars['ab2']; ?>

						</span>
					</span>
				<?php else: ?>
 }
 array_pop($this->_tag_stack);
 echo '</th><th></th></tr>';
 $_from = $this->_tpl_vars['note'];
 if (!is_array($_from) && !is_object($_from)) {
     settype($_from, 'array');
 }
 if (count($_from)) {
     foreach ($_from as $this->_tpl_vars['note']) {
         echo '<tr class="';
         echo smarty_function_cycle(array('values' => "odd-row,even-row"), $this);
         echo '"><td>';
         echo is_array($_tmp = $this->_tpl_vars['note']['note']) ? $this->_run_mod_handler('mb_truncate', true, $_tmp, 80, "...", true) : smarty_modifier_mb_truncate($_tmp, 80, "...", true);
         echo '';
         echo '';
         $this->assign('noteSize', is_array($_tmp = $this->_tpl_vars['note']['note']) ? $this->_run_mod_handler('count_characters', true, $_tmp, true) : smarty_modifier_count_characters($_tmp, true));
         echo '';
         if ($this->_tpl_vars['noteSize'] > 80) {
             echo '<a href="';
             echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/view/note', 'q' => "id=" . $this->_tpl_vars['note']['id'] . "&action=view&cid=" . $this->_tpl_vars['contactId']), $this);
             echo '">';
             $this->_tag_stack[] = array('ts', array());
             smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
             while ($_block_repeat) {
                 ob_start();
                 echo '(more)';
                 $_block_content = ob_get_contents();
                 ob_end_clean();
                 echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
             }
             array_pop($this->_tag_stack);