Exemple #1
0
function do_edit_create($k)
{
    global $smarty;
    $smarty->assign('allCategories', json_encode(cf\api\admin\getTree('pages')));
    $smarty->assign('newsCategories', json_encode(cf\query2vector('SELECT category_id FROM cf_news_in_category WHERE news_id=:newsId', array('newsId' => $k ? $k['id'] : 0))));
}
Exemple #2
0
function do_edit_create($k)
{
    global $smarty;
    $smarty->assign('allCategories', json_encode(cf\api\admin\getTree('news_categories')));
    $smarty->assign('channelCategories', json_encode(cf\query2vector('SELECT category_id FROM cf_rss_channel_to_category WHERE channel_id=:channelId', array('channelId' => $k ? $k['id'] : 0))));
}
Exemple #3
0
function do_edit_create($k)
{
    global $smarty;
    $smarty->assign('allAlbums', json_encode(cf\api\admin\getTree('pages')));
    $smarty->assign('imageAlbums', json_encode(cf\query2vector('SELECT album_id FROM cf_gallery_image_in_album WHERE image_id=:image_id', array('image_id' => $k ? $k['id'] : 0))));
}