diff options
Diffstat (limited to 'view')
-rw-r--r-- | view/php/theme_init.php | 3 | ||||
-rw-r--r-- | view/theme/redbasic/php/theme.php | 2 | ||||
-rw-r--r-- | view/tpl/build_query.tpl | 50 |
3 files changed, 52 insertions, 3 deletions
diff --git a/view/php/theme_init.php b/view/php/theme_init.php index 4703022ec..68d6e4cd1 100644 --- a/view/php/theme_init.php +++ b/view/php/theme_init.php @@ -9,8 +9,6 @@ head_add_css('library/tiptip/tipTip.css'); head_add_css('library/jgrowl/jquery.jgrowl.css'); head_add_css('library/jslider/bin/jquery.slider.min.css'); - - head_add_js('js/jquery.js'); head_add_js('js/jquery.textinputs.js'); head_add_js('js/fk.autocomplete.js'); @@ -25,3 +23,4 @@ head_add_js('js/acl.js'); head_add_js('js/webtoolkit.base64.js'); head_add_js('js/main.js'); head_add_js('library/jslider/bin/jquery.slider.min.js'); +head_add_js('docready.js'); diff --git a/view/theme/redbasic/php/theme.php b/view/theme/redbasic/php/theme.php index 19e3db35f..47e1df5d1 100644 --- a/view/theme/redbasic/php/theme.php +++ b/view/theme/redbasic/php/theme.php @@ -1,5 +1,5 @@ <?php function redbasic_init(&$a) { - head_add_js('redbasic.js'); +// head_add_js('redbasic.js'); } diff --git a/view/tpl/build_query.tpl b/view/tpl/build_query.tpl new file mode 100644 index 000000000..25b370e69 --- /dev/null +++ b/view/tpl/build_query.tpl @@ -0,0 +1,50 @@ +<script> + + var bParam_cmd = "$baseurl/update_network"; + + var bParam_wall = $wall; + + if(bParam_wall) { bParam_cmd = "$baseurl/update_channel"; } + + var bParam_uid = $uid; + var bParam_gid = $gid; + var bParam_cid = $cid; + var bParam_cmin = $cmin; + var bParam_cmax = $cmax; + var bParam_star = $star; + var bParam_liked = $liked; + var bParam_conv = $conv; + var bParam_spam = $spam; + var bParam_new = $nouveau; + var bParam_page = $page; + + var bParam_search = "$search"; + var bParam_order = "$order"; + var bParam_file = "$file"; + var bParam_dend = "$dend"; + var bParam_dbegin = "$dbegin"; + + function buildCmd() { + var udargs = ((page_load) ? "/load" : ""); + var bCmd = bParam_cmd + udargs + "?f=" ; + if(bParam_uid) bCmd = bCmd + "&p=" + bParam_uid; + if(bParam_cmin != 0) bCmd = bCmd + "&cmin=" + bParam_cmin; + if(bParam_cmax != 99) bCmd = bCmd + "&cmax=" + bParam_cmax; + if(bParam_gid != 0) { bCmd = bCmd + "&gid=" + bParam_gid; } else + if(bParam_cid != 0) { bCmd = bCmd + "&cid=" + bParam_cid; } + if(bParam_star != 0) bCmd = bCmd + "&star=" + bParam_star; + if(bParam_liked != 0) bCmd = bCmd + "&liked=" + bParam_liked; + if(bParam_conv!= 0) bCmd = bCmd + "&conv=" + bParam_conv; + if(bParam_spam != 0) bCmd = bCmd + "&spam=" + bParam_spam; + if(bParam_new != 0) bCmd = bCmd + "&new=" + bParam_new; + if(bParam_wall != 0) bCmd = bCmd + "&wall=" + bParam_wall; + if(bParam_search != "") bCmd = bCmd + "&search=" + bParam_search; + if(bParam_file != "") bCmd = bCmd + "&file=" + bParam_file; + if(bParam_dend != "") bCmd = bCmd + "&dend=" + bParam_dend; + if(bParam_dbegin != "") bCmd = bCmd + "&dbegin=" + bParam_dbegin; + if(bParam_page != 1) bCmd = bCmd + "&page=" + bParam_page; + return(bCmd); + } + +</script> + |