Пример #1
0
 $val_tz = array();
 for ($i = -12; $i <= 12; $i++) {
     $j = $i;
     if ($j > 0) {
         $j = '+' . $j;
     }
     $val_tz[$i] = $j;
 }
 $reg = Registry::instance();
 $uns = $reg->get('profile_msg');
 if ($pro_data['approve'] != 1) {
     $appr = my_lang('profile_t7');
 }
 echo '<h2>Профиль</h2><hr/>';
 if ($pro_data['ban'] > 0) {
     echo '<span class="mes">Дней до конца бана: ' . get_bantime($_SESSION['author_id']) / (3600 * 24) . '</span><br />';
 }
 echo '<span class="mes">' . $uns . '</span><br/><br/><tt class="theme">';
 echo '
  <form method="post" action="' . SITE_URL . '/window/profile" name="upd_te_user">
     <input type="hidden" name="sid" value="' . get_sid() . '">
     ' . $pass . '
     E-Mail:<br/>
     <input class="comment" name="new_email" value="' . $pro_data['email'] . '"> ' . $appr . '<br/><br/>
     Имя/псевдоним:</tt> <br/>
     <input class="comment" name="new_name" value="' . $pro_data['name'] . '"><br/><br/>
     Инфо:</tt> <br/>
     <textarea rows="5" cols="40" class="comment" name="new_resp">' . $pro_data['respect'] . '</textarea><br/><br/>
     Гринвич: <br>
     <SELECT class="unit_button" NAME="tz">';
 foreach ($val_tz as $k => $v) {
Пример #2
0
        echo '

    <tr>
        <td class="date"><p>' . $art_list['id'] . '</p></td>

        <td class="date", width="400px">
        <p>
        <a href="?action=user_list&act=view&id=' . $art_list['id'] . '">' . $art_list['name'] . ' (' . $art_list['status'] . ')</a>
            <a class="mes" target="_blank" title="постоянная ссылка" href="' . SITE_URL . '/window/profile/?author_id=' . $art_list['id'] . '">#</a>
        </p>
        </td>


        <td class="date" align="center" title="До конца бана">
            <p>';
        $bantime = get_bantime($art_list['id']) / (3600 * 24);
        ?>
            <? printf("%.1f", $bantime); ?>	
            </p>
            <?php 
        echo '
        </td>
    <td class="date" align="center">
        <p>
        <a title="снять бан" href="?action=user_list&act=ban&time=0&id=' . $art_list['id'] . '">0</a> | 
                    <a title="1 день" href="?action=user_list&act=ban&time=1&id=' . $art_list['id'] . '">1</a> | 
                    <a title="неделя" href="?action=user_list&act=ban&time=7&id=' . $art_list['id'] . '">7</a> | 
                    <a title="месяц" href="?action=user_list&act=ban&time=30&id=' . $art_list['id'] . '">30</a> | 
                    <a title="год" href="?action=user_list&act=ban&time=365&id=' . $art_list['id'] . '">365</a>
        </p>
        </td>