Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/pornstar_view.tpl.php
Строк: 190
<?php defined('_VALID') or die('Restricted Access!'); ?>
    <?php echo $this->fetch('errors'); ?>
    <?php echo $this->fetch('messages'); ?>
    <?php echo $this->fetch('warnings'); ?>
    <div id="container" class="clearfix">
        <div id="page">
            <?php echo $this->fetch('pornstar_menu'); ?>
            <div class="content clearfix">
                  <?php echo $this->fetch('pornstar_view_menu'); ?>
                <?php if ($this->pornstar): ?>
                <div class="view_left">
                    <form name="pornstar-view-form" method="post" action="<?php echo CURRENT_URL?>" />
                        <fieldset>
                            <legend>Basic Information</legend>
                            <span class="info">ID</span>
                              <span class="data"><?php echo $this->pornstar['model_id']; ?></span>
                              <span class="info clear">SLUG</span>
                              <span class="data"><?php echo e($this->pornstar['slug']); ?></span>
                        </fieldset>
                        <fieldset>
                            <legend>Biography Information</legend>
                              <span class="info clear">Name</span>
                              <span class="data"><?php echo e($this->pornstar['name']); ?></span>
                              <span class="info clear">Description</span>
                              <span class="data"><?php echo e($this->pornstar['description']); ?></span>
                              <span class="info clear">Gender</span>
                              <span class="data"><?php echo e(ucfirst($this->pornstar['gender'])); ?></span>
                              <span class="info clear">Birth Date</span>
                              <span class="data"><?php if ($this->pornstar['birth_date'] != '0000-00-00'): echo VDate::format($this->pornstar['birth_date'], 'F j, Y'); else: echo 'not set'; endif; ?></span>
                          </fieldset>
                          <fieldset>
                              <legend>Model Properties</legend>
                              <span class="info clear">Total Videos</span>
                              <span class="data"><a href="<?php echo ADMIN_URL?>/index.php?q=pornstar/videos&amp;id=<?php echo $this->pornstar['model_id']; ?>"><?php echo $this->pornstar['total_videos']; ?></a></span>
                              <span class="info clear">Total Views</span>
                              <span class="data"><?php echo $this->pornstar['total_views']; ?></span>
                              <span class="info clear">Total Comments</span>
                              <span class="data"><a href="<?php echo ADMIN_URL?>/index.php?q=pornstar/comments&amp;id=<?php echo $this->pornstar['model_id']; ?>"><?php echo $this->pornstar['total_comments']; ?></a></span>
                              <span class="info clear">Total Favorites</span>
                              <span class="data"><?php echo $this->pornstar['total_favorites']; ?></span>
                              <span class="info clear">Rating</span>
                              <span class="data"><?php echo $this->pornstar['rating']; ?></span>
                              <span class="info clear">Rated by</span>
                              <span class="data"><?php echo $this->pornstar['rated_by']; ?></span>
                          </fieldset>
                          <fieldset>
                              <legend>Date Information</legend>
                              <span class="info clear">Add Date</span>
                              <span class="data"><?php echo VDate::format($this->pornstar['add_date']); ?></span>
                          </fieldset>
                    </form>
                </div>
                <div class="view_right">
                    <span class="status"><?php if ($this->pornstar['status'] == '1'): echo 'Active'; else: echo 'Suspended'; endif; ?></span>
                    <form name="view-right-form" method="" action="">
                    <fieldset>
                        <legend>Photo</legend>
                        <div style="width: 100%; text-align: center;">
                            <img src="<?php echo MEDIA_URL,'/pornstars/',$this->pornstar['model_id'],'.'.$this->pornstar['ext']; ?>" alt="" />
                        </div>
                    </fieldset>    
                    </form>
                </div>
                <div class="clear"></div>
                <div style="width: 100%; text-align: center; padding: 10px 0;">
                    <input type="button" class="button butDef" value=" Edit " onClick="window.location='<?php echo ADMIN_URL?>/index.php?q=pornstar/edit&amp;id=<?php echo $this->pornstar['model_id']; ?>'" />
                    <?php if ($this->pornstar['status'] == '0'): ?>
                    <input type="button" class="button butDef" value="Activate" onClick="window.location='<?php echo ADMIN_URL?>/index.php?q=pornstar/view&amp;id=<?php echo $this->pornstar['model_id']; ?>&amp;a=activate'" />
                    <?php else: ?>
                    <input type="button" class="button butDef" value="Suspend" onClick="window.location='<?php echo ADMIN_URL?>/index.php?q=pornstar/view&amp;id=<?php echo $this->pornstar['model_id']; ?>&amp;a=suspend'" />
                    <?php endif; ?>
                    <input type="button" class="button butDef" value="Delete" onClick="window.location='<?php echo ADMIN_URL?>/index.php?q=pornstar/view&amp;id=<?php echo $this->pornstar['model_id']; ?>&amp;a=delete'" />
                </div>
                <?php else: ?>
                <div class="none">Invalid pornstar! Are you sure this pornstar exists!?</div>
                <?php endif; ?>
            </div>
        </div>
    </div>
Онлайн: 0
Реклама