Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( $member_id['user_group'] < 3 ) {
- foreach ( $user_group as $group ) {
- if( $group['id'] > 1 ) {
- echo <<<HTML
- <div class="form-group">
- <label class="control-label col-md-2">{$group['group_name']}</label>
- <div class="col-md-10">
- <select class="uniform" name="group_extra[{$group['id']}]">
- <option value="0">{$lang['ng_group']}</option>
- <option value="1" {$access[$group['id']][1]}>{$lang['ng_read']}</option>
- <option value="2" {$access[$group['id']][2]}>{$lang['ng_all']}</option>
- <option value="3" {$access[$group['id']][3]}>{$lang['ng_denied']}</option>
- </select>
- </div>
- </div>
- HTML;
- }
- }
- } else {
- echo <<<HTML
- <tr>
- <td style="padding:4px;"><br />{$lang['tabs_not']}</br /><br /></td>
- </tr>
- HTML;
- }
- if( $config['allow_alt_url'] ) {
- if( $config['seo_type'] == 1 OR $config['seo_type'] == 2 ) {
- if( intval( $row['category'] ) and $config['seo_type'] == 2 ) {
- $full_link = $config['http_home_url'] . get_url( intval( $row['category'] ) ) . "/" . $row['id'] . "-" . $row['alt_name'] . ".html";
- } else {
- $full_link = $config['http_home_url'] . $row['id'] . "-" . $row['alt_name'] . ".html";
- }
- } else {
- $full_link = $config['http_home_url'] . date( 'Y/m/d/', strtotime( $row['date'] ) ) . $row['alt_name'] . ".html";
- }
- } else {
- $full_link = $config['http_home_url'] . "index.php?newsid=" . $row['id'];
- }
- echo <<<HTML
- <div class="row">
- <div class="col-md-12"><span class="note large"> <i class="icon-warning-sign"></i> {$lang['tabs_g_info']}</span></div>
- </div>
- </div>
- </div>
- </div>
- <div class="padded">
- <input type="submit" class="btn btn-green" value="{$lang['news_save']}">
- <button onclick="preview(); return false;" class="btn btn-gray"><i class="icon-desktop"></i> {$lang['btn_preview']}</button>
- {$notice_btn}
- {$spam_btn}
- <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>
- <a role="button" class="btn btn-primary" href="{$full_link}" target="_blank"><i class="icon-desktop"></i> Открыть на сайте</a>
- <input type="hidden" name="id" value="$id" />
- <input type="hidden" name="expires_alt" value="{$expires['expires']}{$expires['action']}" />
- <input type="hidden" name="user_hash" value="$dle_login_hash" />
- <input type="hidden" name="action" value="doeditnews" />
- <input type="hidden" name="mod" value="editnews" />
- </div>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement