function t_table_open() { document.write("\
\ "); } function t_table_close() { document.write("
"); } function t_header(showdetails) { document.write("المواضيع في الأرشيف" +" \ "+forum_table_author+"\ "+forum_table_replies+""); } function t_footer() { } function t(flags,id,title,aid,adate,replies) { var cl = "normal"; var Tarch = flags.indexOf("a"); var Thidden = flags.indexOf("i"); var Tdeleted = flags.indexOf("d"); var Tmoderate = flags.indexOf("m"); var infoline1 = "" var infoline2 = "" if (Tmoderate >= 0) cl = "highlighted"; if (Tdeleted >= 0) cl = "lastposter"; if (Thidden >= 0) cl = "deleted"; if (aid == 0) { aid = memberID; author = memberName; } var topicowner = (aid == memberID); document.write("" + "" + "
" + title + " "); if (replies > topicpagesize) topicPaging(id,replies); document.write("
\ " + formatDate(adate) + "\ " + GetM(findMemberName(aid)) + "\ " + replies + "\ "); } function topicPaging(tid,replies) { var total = replies/topicpagesize; if ((total % 1) > 0) total = (total - (total % 1)) + 1; if (total > 1) { document.write(""); for (x = 1; x <= total; x++) { if (x && ((x % 15) == 0)) document.write(""); document.write(""); } document.write("
 " + x + "
") } } function findMemberName(id) { var x = 0; while ((x < authors.length) && (authors[x] > 0)) { if (authors[x] == id) return(authors[x+1]); x += 2; } return(""); } // code to switch to another page.. called by internal code only function ChangePage() { document.PageNum.submit(); } function t_options_bar(ndays,sort_order,pagenum,totalpages) { var mainURL = link+"?fa="+forum_id; var mainImage = getForumIcon(forum_id); var mainTitle = getForumTitle(forum_id); var mainTooltip = mainTitle; document.write("
"); if ((whichauthor == 0) || (whichauthor == memberID)) { forumMods = "-- مواضيعك فقط --"; } else if (whichauthor > 0) { forumMods = "مواضيع العضو: " + whichname; } else if (forumMods.length > 0) { var splitArray = forumMods.split("|"); forumMods = "
" + ""; y = 0; x = 0; while (x < splitArray.length) { if (y == 4) { forumMods += "
 " + forum_moderated_by + ":
"; y = 0; } forumMods += ""; x++; y++; } forumMods += "
 "; if (x) forumMods += " + "; forumMods += splitArray[x] + "
"; if (x > 8) forumMods = ""; } document.write(""+mainTooltip+"" + ""+mainTitle+"" + "
" + forumMods + ""); if (forumStatus.indexOf("l") < 0) { document.write(""); document.write(""); document.write("
"+forum_toolbar_new_topic+"
"); document.write(""); } if ((whichauthor != 0) && (whichauthor != memberID)) { document.write("
"); document.write(""); document.write("مواضيعك في
أرشيف هذا المنتدى
"); document.write(""); } else { document.write("
"); document.write(""); document.write("جميع مواضيع
أرشيف هذا المنتدى
"); document.write(""); } document.write(""); document.write(""); if (whichauthor >= 0) document.write(""); document.write(page_selector_title+"
"); document.write(""); if (totalpages == 0) document.optionsForm.pg.value = ""; document.write("إذهب إلى أرشيف منتدى:
"); forumsSelectorArchive(); document.write(""); document.write(""); if (forumExtra.length > 0) document.write(forumExtra); } function t_show_topics() { var x = 0; if (topics[x+1] == 0) { document.write("

" + forum_no_topics_found + "


"); } else { while ((x < topics.length) && (topics[x+1] > 0)) t(topics[x++],topics[x++],topics[x++],topics[x++],topics[x++],topics[x++]); } } function submitForm() {if (document.optionsForm.pg.value == -1) document.location.href = link + "?f=" + forum_id ; else document.optionsForm.submit(); return 0;} function render_content() { document.write("
"); t_options_bar(0,0,pagenum,totalpages); t_table_open(); t_header(true); document.write("
"); t_show_topics(); t_footer(); t_table_close(); } function forumsSelectorArchive() { // note the form tag is opened in main_options_area() so that the table remains small document.write(""); }