query($wpdb->prepare( 'DELETE FROM '.$wpdb->prefix.'xyz_ihs_short_code WHERE id=%d',$snippet_id)) ; } header("Location:".admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=3&pagenum='.$xyz_ihs_pageno)); exit(); } elseif ($ihs_bulk_actions_snippet==0)//bulk-Deactivate { foreach ($xyz_ihs_snippet_ids as $xyz_ihs_snippetId) $wpdb->update($wpdb->prefix.'xyz_ihs_short_code', array('status'=>2), array('id'=>$xyz_ihs_snippetId)); header("Location:".admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=4&pagenum='.$xyz_ihs_pageno)); exit(); } elseif ($ihs_bulk_actions_snippet==1)//bulk-activate { foreach ($xyz_ihs_snippet_ids as $xyz_ihs_snippetId) $wpdb->update($wpdb->prefix.'xyz_ihs_short_code', array('status'=>1), array('id'=>$xyz_ihs_snippetId)); header("Location:".admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=4&pagenum='.$xyz_ihs_pageno)); exit(); } elseif ($ihs_bulk_actions_snippet==-1)//no action selected { header("Location:".admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=7&pagenum='.$xyz_ihs_pageno)); exit(); } } } } if($xyz_ihs_message == 1){ ?>
HTML Snippet successfully added.   Dismiss
HTML Snippet not found.   Dismiss
HTML Snippet successfully deleted.   Dismiss
HTML Snippet status successfully changed.   Dismiss
HTML Snippet successfully updated.   Dismiss
Please select an action to apply.    Dismiss
Please select at least one snippet to perform this action.    Dismiss

HTML Snippets

get_results( "SELECT * FROM ".$wpdb->prefix."xyz_ihs_short_code WHERE title like '%".$search_name_db."%'"." ORDER BY $field $order LIMIT $offset,$limit" ); ?> "'>
With Selected :
0 ) { $count=1; $class = ''; foreach( $entries as $entry ) { $class = ( $count % 2 == 0 ) ? ' class="alternate"' : ''; $snippetId=intval($entry->id); ?> > status == 2){ $stat1 = admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-status&snippetId='.$snippetId.'&status=1&pageno='.$pagenum); ?> status == 1){ $stat2 = admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-status&snippetId='.$snippetId.'&status=2&pageno='.$pagenum); ?>
Tracking Name Snippet Short Code Status Action
title); ?> status == 2){echo 'NA';} else echo '[xyz-ihs snippet="'.esc_html($entry->title).'"]'; ?> status == 2){ echo "Inactive"; }elseif ($entry->status == 1){ echo "Active"; } ?> '> '> '> ' onclick="javascript: return confirm('Please click \'OK\' to confirm ');">
HTML Snippets not found
"'> get_var( "SELECT COUNT(`id`) FROM ".$wpdb->prefix."xyz_ihs_short_code" ); $num_of_pages = ceil( $total / $limit ); $page_links = paginate_links( array( 'base' => add_query_arg( 'pagenum','%#%'), 'format' => '', 'prev_text' => '«', 'next_text' => '»', 'total' => $num_of_pages, 'current' => $pagenum ) ); if ( $page_links ) { echo '
' . $page_links . '
'; } ?>