Advertisement
MaHarder

Untitled

Oct 27th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.67 KB | None | 0 0
  1.     if( $member_id['user_group'] < 3 ) {
  2.         foreach ( $user_group as $group ) {
  3.             if( $group['id'] > 1 ) {
  4.                 echo <<<HTML
  5.                             <div class="form-group">
  6.                               <label class="control-label col-md-2">{$group['group_name']}</label>
  7.                               <div class="col-md-10">
  8.                                 <select class="uniform" name="group_extra[{$group['id']}]">
  9.                                         <option value="0">{$lang['ng_group']}</option>
  10.                                         <option value="1" {$access[$group['id']][1]}>{$lang['ng_read']}</option>
  11.                                         <option value="2" {$access[$group['id']][2]}>{$lang['ng_all']}</option>
  12.                                         <option value="3" {$access[$group['id']][3]}>{$lang['ng_denied']}</option>
  13.                                 </select>
  14.                                </div>
  15.                              </div>
  16. HTML;
  17.             }
  18.         }
  19.     } else {
  20.  
  21.         echo <<<HTML
  22.     <tr>
  23.         <td style="padding:4px;"><br />{$lang['tabs_not']}</br /><br /></td>
  24.     </tr>
  25. HTML;
  26.  
  27.     }
  28.     if( $config['allow_alt_url'] ) {
  29.         if( $config['seo_type'] == 1 OR $config['seo_type'] == 2 ) {
  30.             if( intval( $row['category'] ) and $config['seo_type'] == 2 ) {
  31.                 $full_link = $config['http_home_url'] . get_url( intval( $row['category'] ) ) . "/" . $row['id'] . "-" . $row['alt_name'] . ".html";
  32.             } else {
  33.                 $full_link = $config['http_home_url'] . $row['id'] . "-" . $row['alt_name'] . ".html";
  34.             }
  35.         } else {
  36.             $full_link = $config['http_home_url'] . date( 'Y/m/d/', strtotime( $row['date'] ) ) . $row['alt_name'] . ".html";
  37.         }
  38.     } else {
  39.         $full_link = $config['http_home_url'] . "index.php?newsid=" . $row['id'];
  40.     }
  41. echo <<<HTML
  42.                             <div class="row">
  43.                                 <div class="col-md-12"><span class="note large"> <i class="icon-warning-sign"></i> {$lang['tabs_g_info']}</span></div>
  44.                             </div>
  45.                         </div>
  46.                      </div>
  47.                 </div>
  48.                 <div class="padded">
  49.     <input type="submit" class="btn btn-green" value="{$lang['news_save']}">&nbsp;
  50.     <button onclick="preview(); return false;" class="btn btn-gray"><i class="icon-desktop"></i> {$lang['btn_preview']}</button>&nbsp;
  51.     {$notice_btn}
  52.     {$spam_btn}
  53.     <button onclick="confirmDelete('?mod=editnews&action=doeditnews&ifdelete=yes&id=$id&user_hash=$dle_login_hash', '{$id}'); return false;" class="btn btn-red"><i class="icon-trash"></i> {$lang['edit_dnews']}</button>&nbsp;
  54.     <a role="button" class="btn btn-primary" href="{$full_link}" target="_blank"><i class="icon-desktop"></i> Открыть на сайте</a>
  55.     <input type="hidden" name="id" value="$id" />
  56.     <input type="hidden" name="expires_alt" value="{$expires['expires']}{$expires['action']}" />
  57.     <input type="hidden" name="user_hash" value="$dle_login_hash" />
  58.     <input type="hidden" name="action" value="doeditnews" />
  59.     <input type="hidden" name="mod" value="editnews" />
  60.                 </div>
  61. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement