Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class t_admin
- {
- public function standart_licensefile( )
- {
- global $mosConfig_absolute_path;
- echo "\t <table width=\"100%\" >\n\t \t\t<tr>\n\t\t \t<td valign=\"top\" width=\"220\">\n\t\t \t<div>\n\t\t\t\t";
- echo t_admin::Testimon_menu( );
- echo "\t\t \t</div>\n\t\t \t</td>\n\t\t \t<td valign=\"top\">\n\t";
- if ( !class_exists( "JToolBarHelper" ) )
- {
- echo "\t <table class=\"adminheading\">\n\n\t\t<tr>\n\n\t\t\t<th>\n\n\t\t\tLicense File\n\n\t\t\t</th>\n\n\t\t</tr>\n\n\t\t</table>\n\n\t\t";
- }
- else
- {
- jtoolbarhelper::title( " License File", "systeminfo.png" );
- }
- if ( is_file( $mosConfig_absolute_path."/com_testimonials_license.txt" ) )
- {
- echo "\t\t\t<table class=\"adminlist\">\n\t\t\t<tr>\n\t\t\t\t<td >\n\t\t\t\t<table class=\"admintable\">\n\t\t\t\t\t<tr valign=\"top\">\n\t\t\t\t\t\t<td class=\"key\">License File:</td>\n\t\t\t\t\t\t<td>";
- echo $mosConfig_absolute_path."/com_testimonials_license.txt";
- echo "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t";
- $prop = file( $mosConfig_absolute_path."/com_testimonials_license.txt" );
- foreach ( $prop as $key => $val )
- {
- $val = explode( ": ", $val );
- if ( !$val[1] )
- {
- break;
- }
- echo "\t\t\t\t\t\t<tr valign=\"top\">\n\t\t\t\t\t\t\t<td class=\"key\">";
- echo $val[0];
- echo ":</td>\n\t\t\t\t\t\t\t<td>";
- echo $val[1];
- echo "</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t";
- }
- echo "\t\t\t\t</table>\n\t\t\t</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t";
- }
- else
- {
- echo "\t\t\t<table class=\"adminlist\">\n\t\t\t<tr>\n\t\t\t\t<td > <h3>No file license found</h3></td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t";
- }
- echo "\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t\t";
- }
- public function t_menumanager( &$rows, &$tags, $option )
- {
- global $database;
- moscommonhtml::loadOverlib( );
- echo "\t\t<table width=\"100%\" >\n\t\t<tr>\n\t\t<td valign=\"top\" width=\"220\">\n\t\t<div>\n\t\t\t";
- echo t_admin::Testimon_menu( );
- echo "\t\t</div>\n\t\t</td>\n\t\t<td valign=\"top\">\n\t\t\t<form action=\"index2.php\" method=\"post\" name=\"adminForm\">\n\t\t\t";
- if ( !class_exists( "JToolBarHelper" ) )
- {
- echo "\t\t\t<table class=\"adminheading\">\n\t\t\t<tr>\n\t\t\t\t<th class=\"menus\">\n\t\t\t\t";
- echo _T_COMP_NAME;
- echo ": ";
- echo "<s";
- echo "mall>Menu Manager</small>\n\t\t\t\t</th>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t\t";
- }
- echo "\t\n\t\t\t<table class=\"adminlist\">\n\t\t\t";
- if ( count( $rows ) )
- {
- echo "\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th width=\"20\">#</th>\n\t\t\t\t\t<th class=\"title\" width=\"20%\">MenuName</th>\n\t\t\t\t\t<th class=\"title\" width=\"20%\">MenuItem</th>\n\t\t\t\t\t<th class=\"title\">Tags</th>\n\t\t\t\t</tr>\n\t\t\t<thead>\n\t\t\t<tbody>\n\t\t\t\t";
- $k = 0;
- $i = 0;
- $n = count( $rows );
- while ( $i < $n )
- {
- $row = $rows[$i];
- echo "\t\t\t\t\t<tr class=\"";
- echo "row{$k}";
- echo "\">\n\t\t\t\t\t\t<td align=\"center\">";
- echo $i + 1;
- echo "</td>\n\t\t\t\t\t\t<td align=\"left\">\n\t\t\t\t\t\t";
- echo $row->menutype;
- echo "\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td align=\"left\">\n\t\t\t\t\t\t";
- echo $row->name;
- echo "\t\t\t\t\t\t<input type=\"hidden\" name=\"menu_id[]\" value=\"";
- echo $row->id;
- echo "\">\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td align=\"left\">\n\t\t\t\t\t\t";
- $start = strpos( $row->params, "tags" );
- $start = $start + 5;
- $par = substr( $row->params, $start );
- $query = "SELECT id AS value, tag_name AS text"."\n FROM #__tm_testimonials_tags"."\n WHERE id IN ({$par})";
- $database->setQuery( $query );
- $lookup = $database->loadObjectList( );
- if ( !count( $lookup ) )
- {
- $lookup = 0;
- }
- echo moshtml::selectList( $tags, "tags[".$i."][]", "class=\"text_area\" size=\"5\" multiple=\"multiple\"", "value", "text", $lookup );
- echo "\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t";
- $k = 1 - $k;
- ++$i;
- }
- }
- else
- {
- echo "Create items in your menu first";
- }
- echo "\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<input type=\"hidden\" name=\"option\" value=\"";
- echo $option;
- echo "\" />\n\t\t\t<input type=\"hidden\" name=\"task\" value=\"menu_man\" />\n\t\t\t<input type=\"hidden\" name=\"boxchecked\" value=\"0\" />\n\t\t\t<input type=\"hidden\" name=\"hidemainmenu\" value=\"0\">\n\t\t\t</form>\n\t\t</td></tr></table>\n\t\t";
- }
- public function t_modulesmanager( &$rows, &$menus, &$tags, $option )
- {
- global $database;
- moscommonhtml::loadOverlib( );
- echo "\t\t<table width=\"100%\" >\n\t\t<tr>\n\t\t<td valign=\"top\" width=\"220\">\n\t\t<div>\n\t\t\t";
- echo t_admin::Testimon_menu( );
- echo "\t\t</div>\n\t\t</td>\n\t\t<td valign=\"top\">\n\t\t\t<form action=\"index2.php\" method=\"post\" name=\"adminForm\">\n\t\t\t";
- if ( !class_exists( "JToolBarHelper" ) )
- {
- echo "\t\t\t<table class=\"adminheading\">\n\t\t\t<tr>\n\t\t\t\t<th class=\"menus\">\n\t\t\t\t";
- echo _T_COMP_NAME;
- echo ": ";
- echo "<s";
- echo "mall>Modules Manager</small>\n\t\t\t\t</th>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t\t";
- }
- echo "\t\n\t\t\t<table class=\"adminlist\">\n\t\t\t";
- if ( count( $rows ) )
- {
- echo "\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th width=\"20\">#</th>\n\t\t\t\t\t<th class=\"title\">Module</th>\n\t\t\t\t\t<th class=\"title\">Menu Item</th>\n\t\t\t\t\t<th class=\"title\">Tags</th>\n\t\t\t\t</tr>\n\t\t\t<thead>\n\t\t\t<tbody>\n\t\t\t\t";
- $k = 0;
- $i = 0;
- $n = count( $rows );
- while ( $i < $n )
- {
- $row = $rows[$i];
- echo "\t\t\t\t\t<tr class=\"";
- echo "row{$k}";
- echo "\">\n\t\t\t\t\t\t<td align=\"center\">";
- echo $i + 1;
- echo "</td>\n\t\t\t\t\t\t<td align=\"left\">\n\t\t\t\t\t\t";
- echo $row->title;
- echo "\t\t\t\t\t\t<input type=\"hidden\" name=\"mod_id[]\" value=\"";
- echo $row->id;
- echo "\">\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td align=\"left\">\n\t\t\t\t\t\t";
- $start = strpos( $row->params, "menu" );
- $start = $start + 5;
- $fin = strpos( $row->params, "tags" );
- $lookup = substr( $row->params, $start );
- if ( $fin )
- {
- $lookup = substr( $lookup, 0, $fin - $start );
- }
- if ( !$lookup )
- {
- $lookup = 0;
- }
- $lookup = intval( $lookup );
- echo moshtml::selectList( $menus, "menu[".$i."]", "class=\"text_area\" size=\"1\"", "value", "text", $lookup );
- echo "\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td align=\"left\">\n\t\t\t\t\t\t";
- $start = strpos( $row->params, "tags" );
- $start = $start + 5;
- $par = substr( $row->params, $start );
- $query = "SELECT id AS value, tag_name AS text"."\n FROM #__tm_testimonials_tags"."\n WHERE id IN ({$par})";
- $database->setQuery( $query );
- $lookup2 = $database->loadObjectList( );
- if ( !count( $lookup2 ) )
- {
- $lookup2 = 0;
- }
- echo moshtml::selectList( $tags, "tags[".$i."][]", "class=\"text_area\" size=\"5\" multiple=\"multiple\"", "value", "text", $lookup2 );
- echo "\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t";
- $k = 1 - $k;
- ++$i;
- }
- }
- else
- {
- echo "Create modules first";
- }
- echo "\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<input type=\"hidden\" name=\"option\" value=\"";
- echo $option;
- echo "\" />\n\t\t\t<input type=\"hidden\" name=\"task\" value=\"menu_man\" />\n\t\t\t<input type=\"hidden\" name=\"boxchecked\" value=\"0\" />\n\t\t\t<input type=\"hidden\" name=\"hidemainmenu\" value=\"0\">\n\t\t\t</form>\n\t\t</td></tr></table>\n\t\t";
- }
- public function showtopicslist( &$rows, &$pageNav, $option, $blocked_ips, $lists )
- {
- global $database;
- moscommonhtml::loadOverlib( );
- $release = $GLOBALS['_VERSION']->RELEASE;
- if ( $release == "1.5" )
- {
- $img_size = "16";
- }
- else
- {
- $img_size = "12";
- }
- echo "\t\t<table width=\"100%\" >\n\t \t\t<tr>\n\t\t \t<td valign=\"top\" width=\"220\">\n\t\t \t<div>\n\t\t\t\t";
- echo t_admin::Testimon_menu( );
- echo "\t\t \t</div>\n\t\t \t</td>\n\t\t \t<td valign=\"top\">\n\t\t<form action=\"index2.php\" method=\"post\" name=\"adminForm\">\n\t\t";
- if ( !class_exists( "JToolBarHelper" ) )
- {
- echo "\t\t\t<table class=\"adminheading\">\n\t\t\t<tr>\n\t\t\t\t<th class=\"categories\">\n\t\t\t\t";
- echo _T_COMP_NAME;
- echo ": ";
- echo "<s";
- echo "mall>Testimonials list</small>\n\t\t\t\t</th>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t";
- }
- echo "\n\t\t<table class=\"adminlist\">\n\t\t<thead>\n\t\t<tr>\n\t\t\t<th width=\"20\">#</th>\n\t\t\t<th width=\"20\" class=\"title\"><input type=\"checkbox\" name=\"toggle\" value=\"\" onclick=\"checkAll(";
- echo count( $rows );
- echo ");\" /></th>\n\t\t\t<th class=\"title\">Name</th>\n\t\t\t<th class=\"title\">Author</th>\n\t\t\t<th width=\"5%\">Published</th>\n\t\t\t<th class=\"title\" colspan=\"2\" width=\"5%\">Reorder</th>\n\t\t\t<th width=\"2%\">Order</th>\n\t\t\t<th width=\"1%\">\n\t\t\t\t<a href=\"javascript: saveorder( ";
- echo count( $rows ) - 1;
- echo " )\"><img src=\"images/filesave.png\" border=\"0\" width=\"16\" height=\"16\" alt=\"Save Order\" /></a>\n\t\t\t</th>\n\t\t\t<th>Level</th>\n\t\t\t<th align=\"center\" width=\"20%\">Tags</th>\n\t\t\t<th class=\"title\">Blocked</th>\n\t\t</tr>\n\t\t</thead>\n\t\t<tfoot>\n\t\t\t<tr>\n\t\t\t\t<td colspan=\"12\">\n\t\t\t\t";
- echo $pageNav->getListFooter( );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</tfoot>\n\t\t<tbody>\n\t\t";
- $k = 0;
- $i = 0;
- $n = count( $rows );
- while ( $i < $n )
- {
- $row = $rows[$i];
- $link = "index2.php?option=".$option."&task=editA_topic&id=".$row->id;
- $img_published = $row->published ? "tick.png" : "publish_x.png";
- $task_published = $row->published ? "unpublish_topic" : "publish_topic";
- $alt_published = $row->published ? "Published" : "Unpublished";
- $task_blockip = in_array( $row->ip_addr, $blocked_ips ) ? "unblock_ip" : "block_ip";
- $img_blocked = $row->blocked == 1 ? "tick.png" : "publish_x.png";
- $alt_blocked = in_array( $row->ip_addr, $blocked_ips ) ? "Blocked" : "Unblocked";
- $checked = moshtml::idBox( $i, $row->id );
- echo "\t\t\t<tr class=\"";
- echo "row{$k}";
- echo "\">\n\t\t\t\t<td align=\"center\">";
- echo $pageNav->rowNumber( $i );
- echo "</td>\n\t\t\t\t<td>";
- echo $checked;
- echo "</td>\n\t\t\t\t<td align=\"left\">\n\t\t\t\t\t<a href=\"";
- echo $link;
- echo "\">";
- echo $row->t_caption;
- echo "</a>\n\t\t\t\t</td>\n\t\t\t\t<td align=\"left\">\n\t\t\t\t\t";
- echo nl2br( $row->t_author );
- echo "\t\t\t\t</td>\n\t\t\t\t<td align=\"center\">\n\t\t\t\t\t<a href=\"javascript: void(0);\" onClick=\"return listItemTask('cb";
- echo $i;
- echo "','";
- echo $task_published;
- echo "')\">\n\t\t\t\t\t\t<img src=\"images/";
- echo $img_published;
- echo "\" width=\"";
- echo $img_size;
- echo "\" height=\"";
- echo $img_size;
- echo "\" border=\"0\" alt=\"";
- echo $alt_published;
- echo "\" />\n\t\t\t\t\t</a>\n\t\t\t\t</td>\n\t\t\t\t<td align=\"center\">\n\t\t\t\t\t";
- echo $pageNav->orderUpIcon( $i, $row->level == $rows[$i - 1]->level, "orderup_topic" );
- echo "\t\t\t\t</td>\n\t\t\t\t<td align=\"center\">\n\t\t\t\t\t";
- echo $pageNav->orderDownIcon( $i, $n, $row->level == $rows[$i + 1]->level, "orderdown_topic" );
- echo "\t\t\t\t</td>\n\t\t\t\t<td align=\"center\" colspan=\"2\">\n\t\t\t\t\t<input type=\"text\" name=\"order[]\" size=\"5\" value=\"";
- echo $row->ordering;
- echo "\" class=\"text_area\" style=\"text-align: center\" />\n\t\t\t\t</td>\n\t\t\t\t<td align=\"center\">\n\t\t\t\t\t";
- echo $row->level;
- echo "\t\t\t\t</td>\n\t\t\t\t<td align=\"center\">\n\t\t\t\t\t";
- $query = "SELECT a.tag_name FROM #__tm_testimonials_tags as a, #__tm_testimonials_conformity as b WHERE b.id_tag = a.id AND b.id_ti = '".$row->id."' AND a.published = '1'";
- $database->setQuery( $query );
- $r = $database->loadObjectList( );
- if ( $r )
- {
- $j = 0;
- while ( $j < count( $r ) )
- {
- $zap = "";
- if ( $j < count( $r ) - 1 )
- {
- $zap = ", ";
- }
- echo $r[$j]->tag_name.$zap;
- ++$j;
- }
- }
- echo "\t\t\t\t</td>\n\t\t\t\t<!--td align=\"left\">\n\t\t\t\t\t";
- echo $row->ip_addr;
- echo "\t\t\t\t</td-->\n\t\t\t\t<td align=\"left\">\n\t\t\t\t\t";
- if ( empty( $row['blocked'] ) || $row->blocked == 1 )
- {
- echo "\t\t\t\t\t<a href=\"index2.php?option=com_testimonials&task=unblock&id=";
- echo $row->id;
- echo "\">\n\t\t\t\t\t\t<img src=\"images/";
- echo $img_blocked;
- echo "\" width=\"";
- echo $img_size;
- echo "\" height=\"";
- echo $img_size;
- echo "\" border=\"0\" alt=\"";
- echo $alt_published;
- echo "\" />\n\t\t\t\t\t</a>\n\t\t\t\t\t";
- }
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t";
- $k = 1 - $k;
- ++$i;
- }
- echo "\t\t</tbody>\n\t\t</table>\n\t\t";
- echo "\t\t<input type=\"hidden\" name=\"option\" value=\"";
- echo $option;
- echo "\" />\n\t\t<input type=\"hidden\" name=\"task\" value=\"topics\" />\n\t\t<input type=\"hidden\" name=\"boxchecked\" value=\"0\" />\n\t\t<input type=\"hidden\" name=\"hidemainmenu\" value=\"0\">\n\t\t</form>\n\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t\t";
- }
- public function edittopic( &$row, &$lists, $option )
- {
- global $mosConfig_live_site;
- global $mosConfig_absolute_path;
- moscommonhtml::loadOverlib( );
- echo "\t\t";
- echo "<s";
- echo "cript language=\"javascript\" type=\"text/javascript\">\n\t\t<!--\n\t\tfunction submitbutton(pressbutton) {\n\t\t\tvar form = document.adminForm;\n\n\t\t\tif (pressbutton == 'cancel_topic') {\n\t\t\t\tsubmitform( pressbutton );\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// do field validation\n\t\t\tif (form.t_caption.value == \"\"){\n\t\t\t\talert( \"Please enter caption text.\" );\n\t\t\t\tform.t_caption.focus();\n\t\t\t} else {\n\t\t\t\tsubmitform( pressbutton );\n\t\t\t}";
- echo "\n\t\t}\n\t\t//-->\n\t\t</script>\n\t\t<table width=\"100%\" >\n\t \t\t<tr>\n\t\t \t<td valign=\"top\" width=\"220\">\n\t\t \t<div>\n\t\t\t\t";
- echo t_admin::Testimon_menu( );
- echo "\t\t \t</div>\n\t\t \t</td>\n\t\t \t<td valign=\"top\">\n\t\t\n\t\t<form action=\"index2.php\" method=\"post\" name=\"adminForm\" enctype=\"multipart/form-data\">\n\t\t";
- if ( !class_exists( "JToolBarHelper" ) )
- {
- echo "\t\t\t<table class=\"adminheading\">\n\t\t\t<tr>\n\t\t\t\t<th class=\"edit\">\n\t\t\t\t";
- echo _T_COMP_NAME;
- echo ":\n\t\t\t\t";
- echo "<s";
- echo "mall>\n\t\t\t\t";
- echo $row->id ? "Edit testimonial" : "New testimonial";
- echo "\t\t\t\t</small>\n\t\t\t\t</th>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t";
- }
- echo "\t\t\n\t\t<table width=\"100%\" class=\"adminform\">\n\t\t\t<tr>\n\t\t\t\t<th colspan=\"3\">Testimonial Details</th>\n\t\t\t<tr>\n\t\t\t<tr>\n\t\t\t\t<td align=\"right\" width=\"20%\">Caption:</td>\n\t\t\t\t<td><input class=\"text_area\" type=\"text\" name=\"t_caption\" size=\"50\" maxlength=\"100\" value=\"";
- echo htmlspecialchars( $row->t_caption );
- echo "\" /></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td align=\"right\" width=\"20%\">Author:</td>\n\n\t\t\t\t<td><input class=\"text_area\" type=\"text\" name=\"t_author\" size=\"50\" maxlength=\"100\" value=\"";
- echo $row->t_author;
- echo "\" /></td>\n\n\t\t\t</tr>\n\t\t\t<tr>\n\n\t\t\t\t<td align=\"right\" valign=\"top\" width=\"20%\">Author Description:</td>\n\n\t\t\t\t<td>\n\n\t\t\t\t";
- t_editorarea( "editor1", $row->author_description, "author_description", "100%;", "250", "75", "20" );
- echo "\n\t\t\t\t</td>\n\n\t\t\t</tr>\t\n\t\t\t<tr>\n\t\t\t\t<td align=\"right\" valign=\"top\" width=\"20%\">Testimonial:</td>\n\t\t\t\t<td>\n\t\t\t\t";
- t_editorarea( "editor1", $row->testimonial, "testimonial", "100%;", "250", "75", "20" );
- echo "\t\t\t\t</td>\n\t\t\t\t<td rowspan=\"4\" width=\"10%\" valign=\"top\">\n\t\t\t\t\tTags:<br>\n\t\t\t\t\t";
- echo $lists['tag'];
- echo "\t\t\t\t</td>\n\t\t\t</tr>\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td align=\"right\" valign=\"top\" width=\"20%\">Level:</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo $lists['level'];
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t";
- if ( $row->photo )
- {
- if ( $row->photo != "" )
- {
- if ( file_exists( $mosConfig_absolute_path."/images/testimonials_photo/".$row->photo ) )
- {
- $image = "/images/testimonials_photo/".$row->photo;
- }
- else
- {
- $image = "/components/com_testimonials/tnnophoto.jpg";
- }
- }
- else
- {
- $image = "/components/com_testimonials/tnnophoto.jpg";
- }
- echo "\t\t\t<tr>\n\t\t\t\t<td align=\"right\" valign=\"top\" width=\"20%\">Photo:</td>\n\t\t\t\t<td>\n\t\t\t\t\t<div style=\"float:left;\">\n\t\t\t\t\t<img src=\"";
- echo $mosConfig_live_site;
- echo "/components/com_testimonials/picout_centre.php?picout=";
- echo $image;
- echo "&pic_width=61\" alt=\"\" border=\"0\"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style=\"float:left; vertical-align:middle; white-space:nowrap; padding-left:10px;\">\n\t\t\t\t\tReplace:\n\t\t\t\t\t<input type=\"file\" class=\"text_area\" name=\"photo\" value=\"\"/><br><br>\n\t\t\t\t\tFor the most best image of the picture in module, are recommended size (61x86)px.\n\t\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t";
- }
- else if ( $row->photo == "" && $row->avatar == "" )
- {
- echo "\t\t\t<tr>\n\t\t\t\t<td align=\"right\" valign=\"top\" width=\"20%\">Photo:</td>\n\t\t\t\t<td>\n\t\t\t\t\t<input type=\"file\" class=\"text_area\" name=\"photo\" value=\"\"/>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t";
- }
- else
- {
- echo "\t\t\t<tr>\n\t\t\t\t<td align=\"right\" valign=\"top\" width=\"20%\">Photo:</td>\n\t\t\t\t<td>\n\t\t\t\t\t<div style=\"float:left;\">\n\t\t\t\t\t<img src=\"";
- echo $mosConfig_live_site;
- echo "/images/comprofiler/";
- echo $row->avatar;
- echo "\" alt=\"\" border=\"0\" width=\"61\"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style=\"float:left; vertical-align:middle; white-space:nowrap; padding-left:10px;\">\n\t\t\t\t\tReplace:\n\t\t\t\t\t<input type=\"file\" class=\"text_area\" name=\"photo\" value=\"\"/><br><br>\n\t\t\t\t\tFor the most best image of the picture in module, are recommended size (61x85)px.\n\t\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t";
- }
- echo "\t\t\t<tr>\n\t\t\t\t<td align=\"right\" width=\"20%\">Published:</td>\n\t\t\t\t<td>";
- echo $lists['published'];
- echo "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td align=\"right\" width=\"20%\">Unblocked:</td>\n\t\t\t\t<td>";
- echo $lists['blocked'];
- echo "</td>\n\t\t\t</tr>\n\t\t\t<!--tr>\n\t\t\t\t<td align=\"right\" width=\"20%\">Ordering:</td>\n\t\t\t\t<td>";
- echo $lists['ordering'];
- echo "</td>\n\t\t\t</tr-->\n\t\t</table>\n\t\t<br />\n\t\t";
- if ( $row->ordering )
- {
- echo "\t\t\t<input type=\"hidden\" name=\"ordering\" value=\"";
- echo $row->ordering;
- echo "\"/>\t\t\n\t\t";
- }
- echo "\t\t<input type=\"hidden\" name=\"option\" value=\"";
- echo $option;
- echo "\" />\n\t\t<input type=\"hidden\" name=\"id\" value=\"";
- echo $row->id;
- echo "\" />\n\t\t<input type=\"hidden\" name=\"task\" value=\"\" />\n\t\t</form>\n\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t\t";
- }
- public function t_viewtag( $option, $pageNav, $rows )
- {
- moscommonhtml::loadOverlib( );
- $release = $GLOBALS['_VERSION']->RELEASE;
- if ( $release == "1.5" )
- {
- $img_size = "16";
- }
- else
- {
- $img_size = "12";
- }
- echo "\t\t<table width=\"100%\" >\n\t \t\t<tr>\n\t\t \t<td valign=\"top\" width=\"220\">\n\t\t \t<div>\n\t\t\t\t";
- echo t_admin::Testimon_menu( );
- echo "\t\t \t</div>\n\t\t \t</td>\n\t\t \t<td valign=\"top\">\n\t\t<form action=\"index2.php\" method=\"post\" name=\"adminForm\">\n\t\t";
- if ( !class_exists( "JToolBarHelper" ) )
- {
- echo "\t\t\t<table class=\"adminheading\">\n\t\t\t<tr>\n\t\t\t\t<th class=\"categories\">\n\t\t\t\t";
- echo _T_COMP_NAME;
- echo ": ";
- echo "<s";
- echo "mall>Tags</small>\n\t\t\t\t</th>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t";
- }
- echo "\n\t\t<table class=\"adminlist\">\n\t\t<thead>\n\t\t<tr>\n\t\t\t<th width=\"20\">#</th>\n\t\t\t<th width=\"20\" class=\"title\"><input type=\"checkbox\" name=\"toggle\" value=\"\" onclick=\"checkAll(";
- echo count( $rows );
- echo ");\" /></th>\n\t\t\t<th class=\"title\">Tag Name</th>\n\t\t\t<th width=\"5%\">Published</th>\n\t\t</tr>\n\t\t</thead>\n\t\t<tbody>\n\t\t";
- $k = 0;
- $i = 0;
- $n = count( $rows );
- while ( $i < $n )
- {
- $row = $rows[$i];
- $link = "index2.php?option=".$option."&task=editA_tag&id=".$row->id;
- $img_published = $row->published ? "tick.png" : "publish_x.png";
- $task_published = $row->published ? "unpublish_tag" : "publish_tag";
- $alt_published = $row->published ? "Published" : "Unpublished";
- $checked = moshtml::idBox( $i, $row->id );
- echo "\t\t\t<tr class=\"";
- echo "row{$k}";
- echo "\">\n\t\t\t\t<td align=\"center\">";
- echo $pageNav->rowNumber( $i );
- echo "</td>\n\t\t\t\t<td>";
- echo $checked;
- echo "</td>\n\t\t\t\t<td align=\"left\">\n\t\t\t\t\t<a href=\"";
- echo $link;
- echo "\">";
- echo $row->tag_name;
- echo "</a>\n\t\t\t\t</td>\n\t\t\t\t<td align=\"center\">\n\t\t\t\t\t<a href=\"javascript: void(0);\" onClick=\"return listItemTask('cb";
- echo $i;
- echo "','";
- echo $task_published;
- echo "')\">\n\t\t\t\t\t\t<img src=\"images/";
- echo $img_published;
- echo "\" width=\"";
- echo $img_size;
- echo "\" height=\"";
- echo $img_size;
- echo "\" border=\"0\" alt=\"";
- echo $alt_published;
- echo "\" />\n\t\t\t\t\t</a>\n\t\t\t\t</td>\t\n\t\t\t</tr>\n\t\t\t";
- $k = 1 - $k;
- ++$i;
- }
- echo "\t\t</tbody>\n\t\t<tfoot>\n\t\t\t<tr>\n\t\t\t\t<td colspan=\"4\">\n\t\t\t\t";
- echo $pageNav->getListFooter( );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</tfoot>\n\t\t</table>\n\t\t<input type=\"hidden\" name=\"option\" value=\"";
- echo $option;
- echo "\" />\n\t\t<input type=\"hidden\" name=\"task\" value=\"tags\" />\n\t\t<input type=\"hidden\" name=\"boxchecked\" value=\"0\" />\n\t\t<input type=\"hidden\" name=\"hidemainmenu\" value=\"0\">\n\t\t</form>\n\t\t\n\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t\t";
- }
- public function edittag( &$row, &$lists, $option )
- {
- global $mosConfig_live_site;
- global $mosConfig_absolute_path;
- moscommonhtml::loadOverlib( );
- echo "\t\t<table width=\"100%\" >\n\t \t\t<tr>\n\t\t \t<td valign=\"top\" width=\"220\">\n\t\t \t<div>\n\t\t\t\t";
- echo t_admin::Testimon_menu( );
- echo "\t\t \t</div>\n\t\t \t</td>\n\t\t \t<td valign=\"top\">\n\t\t";
- echo "<s";
- echo "cript language=\"javascript\" type=\"text/javascript\">\n\t\t<!--\n\t\tfunction submitbutton(pressbutton) {\n\t\t\tvar form = document.adminForm;\n\n\t\t\tif (pressbutton == 'cancel_tag') {\n\t\t\t\tsubmitform( pressbutton );\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// do field validation\n\t\t\tif (trim(form.tag_name.value) == \"\"){\n\t\t\t\talert( \"Please enter caption text.\" );\n\t\t\t\tform.tag_name.focus();\n\t\t\t} else {\n\t\t\t\tsubmitform( pressbutton );\n\t\t";
- echo "\t}\n\t\t}\n\t\t//-->\n\t\t</script>\n\t\t\n\t\t<form action=\"index2.php\" method=\"post\" name=\"adminForm\" enctype=\"multipart/form-data\">\n\t\t";
- if ( !class_exists( "JToolBarHelper" ) )
- {
- echo "\t\t\t<table class=\"adminheading\">\n\t\t\t<tr>\n\t\t\t\t<th class=\"edit\">\n\t\t\t\t";
- echo _T_COMP_NAME;
- echo ":\n\t\t\t\t";
- echo "<s";
- echo "mall>\n\t\t\t\t";
- echo $row->id ? "Edit tag" : "New tag";
- echo "\t\t\t\t</small>\n\t\t\t\t</th>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t";
- }
- echo "\t\t\n\t\t<table width=\"100%\" class=\"adminform\">\n\t\t\t<tr>\n\t\t\t\t<th colspan=\"2\">Tag Detail</th>\n\t\t\t<tr>\n\t\t\t<tr>\n\t\t\t\t<td align=\"right\" width=\"20%\">Tag name:</td>\n\t\t\t\t<td><input class=\"text_area\" type=\"text\" name=\"tag_name\" size=\"50\" maxlength=\"100\" value=\"";
- echo htmlspecialchars( $row->tag_name );
- echo "\" /></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td align=\"right\" width=\"20%\">Published:</td>\n\t\t\t\t<td>";
- echo $lists['published'];
- echo "</td>\n\t\t\t</tr>\n\t\t\t\n\t\t\t<!-- <tr>\n\t\t\t\t<td align=\"right\" width=\"20%\">Ordering:</td>\n\t\t\t\t<td>";
- echo "</td>\n\t\t\t</tr> -->\n\t\t</table>\n\t\t\t\t\n\t\t<input type=\"hidden\" name=\"option\" value=\"";
- echo $option;
- echo "\" />\n\t\t<input type=\"hidden\" name=\"id\" value=\"";
- echo $row->id;
- echo "\" />\n\t\t<input type=\"hidden\" name=\"task\" value=\"\" />\n\t\t</form>\n\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t\t";
- }
- public function t_editcss( $value )
- {
- echo "\t\t<table width=\"100%\" >\n\t \t\t<tr>\n\t\t\t \t<td valign=\"top\" width=\"220\">\n\t\t\t \t\t<div>";
- echo t_admin::Testimon_menu( );
- echo "</div>\n\t\t\t \t</td>\n\t\t\t \t<td valign=\"top\">\n\t\t\t\t\t";
- if ( !class_exists( "JToolBarHelper" ) )
- {
- echo "\t\t\t\t\t\t<table class=\"adminheading\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<th class=\"config\">\n\t\t\t\t\t\t\t\t\t";
- echo _T_COMP_NAME;
- echo ": ";
- echo "<s";
- echo "mall>Edit css</small>\n\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t";
- }
- echo "\t\t\t\t\t<form method=\"POST\" name=\"adminForm\" action=\"index2.php?option=com_testimonials\">\n\t\t\t\t\t<table>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td><textarea name=\"css\" cols=\"120\" rows=\"30\">";
- echo $value;
- echo "</textarea></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t\t<input type=\"hidden\" name=\"task\" value=\"\" />\n\t\t\t\t\t</form>\n\t\t\t \t</td>\n\t\t \t</tr>\n\t\t</table>\n\t\t";
- }
- public function showsettings( $settings )
- {
- global $mainframe;
- moscommonhtml::loadOverlib( );
- $settings['cfg_showfirst'] = isset( $settings['cfg_showfirst'] ) ? $settings['cfg_showfirst'] : 1;
- echo "\t\t<table width=\"100%\" >\n\t \t\t<tr>\n\t\t \t<td valign=\"top\" width=\"220\">\n\t\t \t<div>\n\t\t\t\t";
- echo t_admin::Testimon_menu( );
- echo "\t\t \t</div>\n\t\t \t</td>\n\t\t \t<td valign=\"top\">\n\t\t";
- echo "<s";
- echo "cript src=\"components/com_testimonials/color_picker/color_picker.js\"></script>\n\t\t<link rel=\"stylesheet\" href=\"components/com_testimonials/color_picker/color_picker.css\" media=\"screen\">\n\t\t<form method=\"post\" name=\"adminForm\">\n\t\t";
- if ( !class_exists( "JToolBarHelper" ) )
- {
- echo "\t\t\t<table class=\"adminheading\">\n\t\t\t<tr>\n\t\t\t\t<th class=\"config\">\n\t\t\t\t\t";
- echo _T_COMP_NAME;
- echo ": ";
- echo "<s";
- echo "mall>Configuration</small>\n\t\t\t\t</th>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t";
- }
- echo "\t\t\n\t\t<fieldset>\n\t\t<legend>Global</legend>\n\n\t\t<table class=\"adminlist\">\n\t\t\t<tr>\n\t\t\t\t<td width=\"30%\">\n\t\t\t\t\tCommunity Builder installed(yes/no)\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_cbilder]", "", $settings['cfg_cbilder'] );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tEnable adding testimonials by users \n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_addingbyuser]", "", $settings['cfg_addingbyuser'] );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tAuto-approve testimonials added by users\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_autoapprove]", "", $settings['cfg_autoapprove'] );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tAdministrator's new testimonial notification\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_adminnotify]", "", $settings['cfg_adminnotify'] );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tShow avatar\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_showavatar]", "", $settings['cfg_showavatar'] );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tShow captcha\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_showcaptcha]", "", $settings['cfg_showcaptcha'] );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tShow testimonial author name \n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_showauthor]", "", $settings['cfg_showauthor'] );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tShow testimonial caption\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_showcaption]", "", $settings['cfg_showcaption'] );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tShow title\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_showtitle]", "", $settings['cfg_showtitle'] );
- echo "<br>\n\t\t\t\t\t<input type=\"text\" name=\"settings[cfg_texttitle]\" value=\"";
- echo $settings['cfg_texttitle'];
- echo "\">\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td width=\"30%\">\n\t\t\t\t\tShow 'Add testimonial' form before the list of testimonials\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_showformfirst]", "", $settings['cfg_showformfirst'] );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td width=\"30%\">\n\t\t\t\t\tShow last testimonials first\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_showlastfirst]", "", $settings['cfg_showlastfirst'] );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tAllow unregistered users to leave testimonials\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_unregtm]", "", $settings['cfg_unregtm'] );
- echo "<br>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tAllow users to upload photos\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_photo]", "", $settings['cfg_photo'] );
- echo "<br>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tUse editor for registered users\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_use_editor]", "", $settings['cfg_use_editor'] );
- echo "<br>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tEdit css\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<input class=\"button\" type=\"button\" name=\"editcss\" value=\"Edit CSS\" onclick=\"document.location.href='index2.php?option=com_testimonials&task=editcss'\"/>\n\t\t\t\t\t";
- if ( is_writeable( $mainframe->getCfg( "absolute_path" )."/components/com_testimonials/style.css" ) )
- {
- echo "\t\t\t\t\t\t";
- echo "<s";
- echo "trong> style.css <font color=\"green\">Writeable</font></strong>\n\t\t\t\t\t\t";
- }
- else
- {
- echo "\t\t\t\t\t\t";
- echo "<s";
- echo "trong> style.css <font color=\"red\">Unwriteable</font></strong>\n\t\t\t\t\t\t";
- }
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t</table>\n\t\t</fieldset>\n\t\t<fieldset>\n\t\t<legend>Module</legend>\n\t\t<table class=\"adminlist\">\n\t\t\t<tr>\n\n\t\t\t\t<td width=\"30%\">\n\n\t\t\t\t\tLink colors \n\n\t\t\t\t</td>\n\n\t\t\t\t<td>\n\n\t\t\t\t\tStart: \n\n\t\t\t\t\tR <input type=\"text\" size=\"3\" maxlength=\"3\" id=\"l_start_red\" name=\"settings[cfg_lstart][r]\" value=\"";
- echo $settings['cfg_lstart']['r'];
- echo "\" />\n\n\t\t\t\t\tG <input type=\"text\" size=\"3\" maxlength=\"3\" id=\"l_start_green\" name=\"settings[cfg_lstart][g]\" value=\"";
- echo $settings['cfg_lstart']['g'];
- echo "\" />\n\n\t\t\t\t\tB <input type=\"text\" size=\"3\" maxlength=\"3\" id=\"l_start_blue\" name=\"settings[cfg_lstart][b]\" value=\"";
- echo $settings['cfg_lstart']['b'];
- echo "\" />\n\n\t\t\t\t\t<img src=\"components/com_testimonials/color_picker/images/sel.gif\" onclick=\"showColorPicker(this,document.getElementById('l_start_red'), document.getElementById('l_start_green'), document.getElementById('l_start_blue'))\" /> End: \n\n\t\t\t\t\tR <input type=\"text\" size=\"3\" maxlength=\"3\" id=\"l_end_red\" name=\"settings[cfg_lend][r]\" value=\"";
- echo $settings['cfg_lend']['r'];
- echo "\" />\n\n\t\t\t\t\tG <input type=\"text\" size=\"3\" maxlength=\"3\" id=\"l_end_green\" name=\"settings[cfg_lend][g]\" value=\"";
- echo $settings['cfg_lend']['g'];
- echo "\" />\n\n\t\t\t\t\tB <input type=\"text\" size=\"3\" maxlength=\"3\" id=\"l_end_blue\" name=\"settings[cfg_lend][b]\" value=\"";
- echo $settings['cfg_lend']['b'];
- echo "\" />\n\n\t\t\t\t\t<img src=\"components/com_testimonials/color_picker/images/sel.gif\" onclick=\"showColorPicker(this,document.getElementById('l_end_red'), document.getElementById('l_end_green'), document.getElementById('l_end_blue'))\" />\n\n\t\t\t\t</td>\n\n\t\t\t</tr>\n\t\t\n\t\t\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tFade colors \n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\tStart: \n\t\t\t\t\tR <input type=\"text\" size=\"3\" maxlength=\"3\" id=\"start_red\" name=\"sett";
- echo "ings[cfg_fadestart][r]\" value=\"";
- echo $settings['cfg_fadestart']['r'];
- echo "\" />\n\t\t\t\t\tG <input type=\"text\" size=\"3\" maxlength=\"3\" id=\"start_green\" name=\"settings[cfg_fadestart][g]\" value=\"";
- echo $settings['cfg_fadestart']['g'];
- echo "\" />\n\t\t\t\t\tB <input type=\"text\" size=\"3\" maxlength=\"3\" id=\"start_blue\" name=\"settings[cfg_fadestart][b]\" value=\"";
- echo $settings['cfg_fadestart']['b'];
- echo "\" />\n\t\t\t\t\t<img src=\"components/com_testimonials/color_picker/images/sel.gif\" onclick=\"showColorPicker(this,document.getElementById('start_red'), document.getElementById('start_green'), document.getElementById('start_blue'))\" /> End: \n\t\t\t\t\tR <input type=\"text\" size=\"3\" maxlength=\"3\" id=\"end_red\" name=\"settings[cfg_fadeend][r]\" value=\"";
- echo $settings['cfg_fadeend']['r'];
- echo "\" />\n\t\t\t\t\tG <input type=\"text\" size=\"3\" maxlength=\"3\" id=\"end_green\" name=\"settings[cfg_fadeend][g]\" value=\"";
- echo $settings['cfg_fadeend']['g'];
- echo "\" />\n\t\t\t\t\tB <input type=\"text\" size=\"3\" maxlength=\"3\" id=\"end_blue\" name=\"settings[cfg_fadeend][b]\" value=\"";
- echo $settings['cfg_fadeend']['b'];
- echo "\" />\n\t\t\t\t\t<img src=\"components/com_testimonials/color_picker/images/sel.gif\" onclick=\"showColorPicker(this,document.getElementById('end_red'), document.getElementById('end_green'), document.getElementById('end_blue'))\" />\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td width=\"25%\">\n\t\t\t\t\tTimeout between text changes (in seconds) \n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<input type=\"text\" name=\"settings[cfg_timeout]\" maxlength=\"3\" valu";
- echo "e=\"";
- echo $settings['cfg_timeout'];
- echo "\" />\t\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tNumber of letters to show in testimonial module ( 0 - to show full testimonials)\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<input type=\"text\" name=\"settings[cfg_symb_qty]\" maxlength=\"4\" value=\"";
- echo $settings['cfg_symb_qty'];
- echo "\" />\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\tEdit module css\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<input class=\"button\" type=\"button\" name=\"editcss\" value=\"Edit CSS\" onclick=\"document.location.href='index2.php?option=com_testimonials&task=editmodcss'\"/>\n\t\t\t\t\t";
- if ( _JOOMLA15 )
- {
- $file_path = $mainframe->getCfg( "absolute_path" )."/modules/mod_testimonials/testimonials/style.css";
- }
- else
- {
- $file_path = $mainframe->getCfg( "absolute_path" )."/modules/testimonials/style.css";
- }
- if ( is_writeable( $file_path ) )
- {
- echo "\t\t\t\t\t\t";
- echo "<s";
- echo "trong> style.css <font color=\"green\">Writeable</font></strong>\n\t\t\t\t\t\t";
- }
- else
- {
- echo "\t\t\t\t\t\t";
- echo "<s";
- echo "trong> style.css <font color=\"red\">Unwriteable</font></strong>\n\t\t\t\t\t\t";
- }
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n <tr>\n\t\t\t\t<td>\n\t\t\t\t\tShow avatar\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_showavatarmodule]", "", $settings['cfg_showavatarmodule'] );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td width=\"30%\">\n\t\t\t\t\tShow 'read more' link\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_showreadmore]", "", $settings['cfg_showreadmore'] );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td width=\"30%\">\n\t\t\t\t\tShow 'add new' link\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_showaddnew]", "", $settings['cfg_showaddnew'] );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td width=\"30%\">\n\t\t\t\t\tPlace 'read more', 'add new' links before the author name\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t";
- echo moshtml::yesnoradioList( "settings[cfg_showfirst]", "", $settings['cfg_showfirst'] );
- echo "\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t\n\t\t</table>\n\t\t</fieldset>\n\t\t<input type=\"hidden\" name=\"task\" value=\"\" />\n\t\t</form>\n\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t\t";
- }
- public function view_helppage( )
- {
- echo "\t\t<table width=\"100%\">\n\t\t\t<tr>\n\t\t\t\t<td valign=\"top\" width=\"220px\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t";
- t_admin::Testimon_menu( );
- echo "\t\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t\t<td valign=\"top\">\n\t\t\t\t";
- if ( !class_exists( "JToolBarHelper" ) )
- {
- echo "\t\t\t\t\t<table class=\"adminheading\">\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th class=\"help\">\n\t\t\t\t\t\t\t";
- echo _T_COMP_NAME;
- echo ": ";
- echo "<s";
- echo "mall>Help</small>\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t";
- }
- echo "\t\t\t\t<table class=\"adminlist\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t<div style=\"text-align:left; padding:5px; font-family: verdana, arial, sans-serif; font-size: 9pt;\">\n\t\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\t\t<h4><b>1 Installation</b></h4>\n\t\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\t\t<p>Navigate to <b>Installers>Components</b>. Browse the component's installation package file in the Upload Package File section a";
- echo "nd press Upload File&Install. Click Continue to finish the installation.\n\t\t\t\t\t\t\t\tNavigate to <b>Installers>Modules</b>. Browse the component's modules package file in the Upload Package File section and press Upload File&Install. Click Continue to finish the installation.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\t\t<h4><b>2 Settings</b></h4>\n\t\t\t\t\t\t\t<div style=\"padd";
- echo "ing-left:10px \">\n\t\t\t\t\t\t\t<p>Go to <b>Components>Testimonials>Settings</b>.\n\t\t\t\t\t\t\t\tThis page will allow you to adjust the configuration of the front-end of the component.\n\t\t\t\t\t\t\t\tYou may change the following settings on the page:<ul>\n\t\t\t\t\t\t\t\t<li>Fade colors (Input the start and end colors with the help of red/green/blue hues using the corresponding icon.)</li>\n\t\t\t\t\t\t\t\t<li>Timeout between text changes</li>\n";
- echo "\t\t\t\t\t\t\t\t<li>Number of letters to show in testimonial module</li>\n\t\t\t\t\t\t\t\t<li>Use Community Builder</li>\n\t\t\t\t\t\t\t\t<li>Show testimonial caption</li>\n\t\t\t\t\t\t\t\t<li>Show avatar</li>\n\t\t\t\t\t\t\t\t<li>Show 'read more' and 'add new' link</li>\n\t\t\t\t\t\t\t\t<li>Show testimonial author name</li>\n\t\t\t\t\t\t\t\t<li>Enable adding testimonials by users</li>\n\t\t\t\t\t\t\t\t<li>Auto-approve testimonials added by users</li>\n\t\t\t\t\t\t\t\t<li>Administrator's new ";
- echo "testimonial notification</li>\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\tAfter you've configured all the settings press the <i>Save</i> icon in the top right corner of the form to save the settings or <i>Cancel</i> to discard the changes.\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\t\t<h4><b>3 Management</b></h4>\n\t\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\tOnce you configured th";
- echo "e settings you may start managing tags and testimonials. To pass to the tags page you can either go to <b>Components>Testimonials>Manage testimonials/Tags</b> or navigate to this section using the left page menu. In addition there're quick transition links on the top right side of the page.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\t\t<h4><b>4 Tags</b></h4>\n\t\t\t\t\t\t\t";
- echo "<div style=\"padding-left:10px \">\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\tThis page represents the list of created tags. \n\t\t\t\t\t\t\tUse standard Joomla buttons in the top right corner of the page to manage tags. You may as well use filter for better viewing representation: set the number of items in the Display# field to set the number of elements that will be shown on the page.\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tTO CREATE A NEW TAG:<ul>\n\t\t\t\t\t\t\t";
- echo "<li>Go to <b>Components>Testimonials>Tags</b>.\n\t\t\t\t\t\t\t<li>Press the <b>New</b> button in the top right corner of the page. \n\t\t\t\t\t\t\t<li>Enter the name of the newly created tag in the Tag name field and mark if it should be published or no.\n\t\t\t\t\t\t\t<li>Press <b>Save</b> to save the tag and return to the page with the list of tags or <b>Apply</b> to apply the changes and stay on the same page; press <b>Cancel</b> t";
- echo "o discard changes.\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\t\t<h4><b>5 Testimonials</b></h4>\n\t\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\tThis page represents a list of existing testimonials and information about them. \n\t\t\t\t\t\t\tUse standard Joomla buttons in the top right corner of the page to manage tags. To change the order of items set ";
- echo "the sequence number in the Order column of the form and press the icon; alternatively you may use the <b>Move up</b> and <b>Move down</b> buttons.\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tTO CREATE A NEW TESTIMONIAL:<ul>\n\t\t\t\t\t\t\t<li>Go to <b>Components>Testimonials>Manage Testimonials</b>.\n\t\t\t\t\t\t\t<li>Press the New button in the top right corner of the page. \n\t\t\t\t\t\t\t<li>Insert a caption, input author's name, type in the body of the te";
- echo "stimonial, then select a tag and a level from the presented; browse a .jpg photo on your machine and indicate whether a testimonial should be published or no.\n\t\t\t\t\t\t\t<li>Press <b>Save</b> to save the tag and return to the page with the list of testimonials or <b>Apply</b> to apply the changes and stay on the same page; press <b>Cancel</b> to discard changes.\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</di";
- echo "v>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\t\t<h4><b>6 Menu Manager</b></h4>\n\t\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\t\t<p>Go to <b>Components>Testimonials>Menu Manager</b>.\n\t\t\t\t\t\t\t\tThis page allows you to assign tags to menu items. So only testimonials with the specified tags will be displayed on the appropriate page.\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<div style=\"padding-";
- echo "left:10px \">\n\t\t\t\t\t\t\t<h4><b>7 Module Manager</b></h4>\n\t\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\t\t<p>Go to <b>Components>Testimonials>Module Manager</b>.\n\t\t\t\t\t\t\t\tYou can have several testimonial modules on your site. This page allows you to assign tags to modules. So only testimonials with the specified tags will be displayed in the module. You can also specify menu item to which the module's links will";
- echo " lead.\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t";
- }
- public function view_supportpage( )
- {
- echo "\t\t\n\t\t<table width=\"100%\">\n\t\t\t<tr>\n\t\t\t\t<td valign=\"top\" width=\"220px\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t";
- t_admin::Testimon_menu( );
- echo "\t\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t\t<td valign=\"top\">\n\t\t\t\t";
- if ( !class_exists( "JToolBarHelper" ) )
- {
- echo "\t\t\t\t\t<table class=\"adminheading\">\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th class=\"help\">\n\t\t\t\t\t\t\t";
- echo _T_COMP_NAME;
- echo ": ";
- echo "<s";
- echo "mall>Support</small>\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t";
- }
- echo "\t\t\t\t<table class=\"adminlist\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<div style=\"text-align:left; padding:5px; font-family: verdana, arial, sans-serif; font-size: 9pt;\">\n\n\t\t\t\t\t\t\t<h3>1. <b>SUPPORT FORUM</b></h3>\n\t\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\t\t<p>Support forum for this component can be found at <a href='http://www.elearningforce.biz/support/'>www.elearningforce.biz/support</a></p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<h3>2. ";
- echo "<b>FIX / DO MY JOOMLA/MAMBO PROBLEM</b></h3>\n\t\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\t\t<p>This service is for anyone who has a problem or a need for support for Joomla/Mambo.</p>\n\t\t\t\t\t\t\t<p>All our developers are some of the most experienced Joomla/Mambo gurus - and for a small fee, you will get access to them.</p>\n\t\t\t\t\t\t\t<p>We will try to fix your problem on the same day, but if you want an instant so";
- echo "lution, you must use our \"I need all your attention!\" support.</p>\n\t\t\t\t\t\t\t<p>If the problem is not fixed, we do not charge a Fee! -> meaning that you DONT pay ANYTHING if we don't fix the problem!</p>\n\t\t\t\t\t\t\t<p>Read more here <a href='http://www.elearningforce.biz/component/option,com_support/Itemid,143/'>www.Elearningforce.biz/component/option,com_support/Itemid,143/</a></p>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t</div>\n\t";
- echo "\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\n\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t";
- }
- public function view_licensepage( )
- {
- echo "\t\t<table width=\"100%\">\n\t\t\t<tr>\n\t\t\t\t<td valign=\"top\" width=\"220px\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t";
- t_admin::Testimon_menu( );
- echo "\t\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t\t<td valign=\"top\">\n\t\t\t\t<table class=\"adminheading\">\n\t\t\t\t\t";
- if ( !class_exists( "JToolBarHelper" ) )
- {
- echo "\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th class=\"help\">\n\t\t\t\t\t\t\t";
- echo _T_COMP_NAME;
- echo ": ";
- echo "<s";
- echo "mall>License</small>\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t";
- }
- echo "\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t<table class=\"adminlist\"><tr><td>\n\t\t\t\t\t\t<div style=\"text-align:left; padding:5px; font-family: verdana, arial, sans-serif; font-size: 9pt;\">\n\t\t\t\t\t\t<h3>When installing the Testimonials component you agree to this:</h3>\n\t\t\t\t\t\t<div style=\"padding-left:10px;font-weight:normal; \">\n\t\t\t\t\t\t<p><b>1. Limited usage granted:</b><br>\n\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\tYou may use and ins";
- echo "tall the Testimonials component on a single website only, belonging to either you or your client. You have to purchase the same product each time you create another project with the same product.<br>\n\t\t\t\t\t\t</p></div>\n\t\t\t\t\t\t<p><b>2. Modifications:</b><br>\n\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\tYou are authorized to make any necessary modification(s) to our products to fit your purposes without prior ";
- echo "written consent from ElearningForce DK. After changing the code we will not be able to help you with support.<br>\n\t\t\t\t\t\t</p></div>\n\t\t\t\t\t\t<p><b>3. Unauthorized use:</b><br>\n\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\tYou may not place any of our products, modified or unmodified, on a diskette, CD, website or any other medium and offer them for redistribution or resale of any kind without prior written con";
- echo "sent from ElearningForce DK.<br>\n\t\t\t\t\t\t</p></div>\n\t\t\t\t\t\t<p><b>4. Updates:</b><br>\n\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\tElearningForce has no influence on the development of Mambo/Joomla! and Windows. All products are always designed for the latest version, but we can give no guarantee that the product will run with future versions of Mambo/Joomla and Windows.<br>\n\t\t\t\t\t\t</p></div>\n\t\t\t\t\t\t<p><b>5. Shippin";
- echo "g:</b><br>\n\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\tAfter you proceed to checkout you will be emailed a link to your order on the Virtumart system. Once you've made your payment the status of the order will be changed from Pending to Confirmed. When this status has changed you'll be offered the opportunity to download a file which will contain the product. If you are unable to download the produc";
- echo "t then email us via the Contact Us link on this site and we will investigate the matter for you as being urgent.<br>\n\t\t\t\t\t\t</p></div>\n\t\t\t\t\t\t<p><b>6. Assignability:</b><br>\n\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\tYou may not sub-license, assign, or transfer this license to anyone else without prior written consent from ElearningForce.<br>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</p><p><b>7. Ownership:</b><br>\n\t\t\t\t\t\t<div style=\"pa";
- echo "dding-left:10px \">\n\t\t\t\t\t\tYou may not claim intellectual or exclusive ownership to any of our products, modified or unmodified. All products are property of ElearningForce. Our products are provided \"as is\" without warranty of any kind, either expressed or implied. In no event shall our juridical person be liable for any damages including, but not limited to, direct, indirect, special, incidental o";
- echo "r consequential damages or other losses arising out of the use of or inability to use our products.<br>\n\t\t\t\t\t\t</p></div>\n\t\t\t\t\t\t<p><b>8. Refund policy:</b><br>\n\t\t\t\t\t\t<div style=\"padding-left:10px \">\n\t\t\t\t\t\tSince ElearningForce is offering non-tangible irrevocable goods we do not issue refunds after the product is shipped, which you are responsible for understanding upon purchasing any article at our site. W";
- echo "e only make exceptions with this rule when the product appears to be not-as-described or contains obvious errors on a case by case basis in agreement of the parties concerned. The deadline for any refund claim is 30 days after the delivery date.<br>\n\t\t\t\t\t\t</p><p>Our company reserves the right to change or modify current Terms with no prior notice.<br>\n\t\t\t\t\t\t</p></div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t</div></td></tr></ta";
- echo "ble>\n\t\t\t\t\t</td></tr>\n\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t";
- }
- public function viewaboutpage( )
- {
- global $mosConfig_live_site;
- global $tm_version;
- echo "\t\t<table width=\"100%\">\n\t\t\t<tr>\n\t\t\t\t<td valign=\"top\" width=\"220px\">\n\t\t\t\t<div>\n\t\t\t\t\t";
- t_admin::Testimon_menu( );
- echo "\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t\t<td valign=\"top\">\t \n\t\t\t\t\t\t <table width=\"100%\" border=\"0\">\t\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td valign=\"top\">\n\t\t\t\t\t\t\t<table border=\"1\" width=\"100%\" style=\"background-color: #F7F8F9; border: solid 1px #d5d5d5; width: 100%; padding: 10px; border-collapse: collapse;\">\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td style=\"text-align:left; font-size:14px; font-weight:400; line-height:18px \" colspan=\"2\">";
- echo "<s";
- echo "trong>Testimonials</strong> component for Joomla! 1.0.x. (Joomla 1.5.x compatible) Developed by <a href=\"http://www.elearningforce.biz\">Elearningforce Inc</a>.</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td width=\"120\" bgcolor=\"#FFFFFF\" align=\"left\">Installed version:</td>\n\t\t\t\t\t\t\t\t\t<td bgcolor=\"#FFFFFF\" align=\"left\"> <b>";
- echo $tm_version;
- echo "</b></td>\n\t\t\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t\t\t\t<td bgcolor=\"#FFFFFF\" align=\"left\">Latest version:</td>\n\t\t\t\t\t\t\t\t\t<td>";
- echo tm_update_checker( );
- echo "</td>\n\t\t\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t\t\t\t<td valign=\"top\" bgcolor=\"#FFFFFF\" align=\"left\">About:</td>\n\t\t\t\t\t\t\t\t\t<td bgcolor=\"#FFFFFF\" align=\"left\">\n\t\t\t\t\t\t\t\t\tThis component gives opportunity to create testimonials.\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td bgcolor=\"#FFFFFF\" align=\"left\">Support forum:</td>\n\t\t\t\t\t\t\t\t\t<td bgcolor=\"#FFFFFF\" align=\"left\">\n\t\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"http://";
- echo "www.elearningforce.biz/support\">http://www.elearningforce.biz/support</a>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr> \n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t";
- }
- public function showlanguageslist( &$rows, &$pageNav, $option )
- {
- moscommonhtml::loadOverlib( );
- global $mainframe;
- echo " \n\t\t\t<table width=\"100%\" >\n\t \t\t<tr>\n\t\t \t<td valign=\"top\" width=\"220\">\n\t\t \t<div>\n\t\t\t\t";
- echo t_admin::Testimon_menu( );
- echo "\t\t \t</div>\n\t\t \t</td>\n\t\t \t<td valign=\"top\">\n\t\t\t\t<form action=\"index2.php\" method=\"post\" name=\"adminForm\">\n\t\t\t\t";
- if ( !class_exists( "JToolBarHelper" ) )
- {
- echo " <table class=\"adminheading\">\n <tr>\n <th class=\"langmanager\">\n ";
- echo _T_COMP_NAME;
- echo ": ";
- echo "<s";
- echo "mall>Languages list</small>\n </th>\n </tr>\n </table>\n\t\t\t\t";
- }
- echo "\n <table class=\"adminlist\">\n\t\t\t\t<thead>\n <tr>\n <th align=\"center\" width=\"20\">#</th>\n <th width=\"20\" class=\"title\"><input type=\"checkbox\" name=\"toggle\" value=\"\" onclick=\"checkAll(";
- echo count( $rows );
- echo ");\" /></th>\n <th class=\"title\">Name</th>\n <th class=\"title\">Default</th>\n <th class=\"title\" width=\"50%\"></th>\n </tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n ";
- $k = 0;
- $i = 0;
- $n = count( $rows );
- while ( $i < $n )
- {
- $row = $rows[$i];
- $link = "index2.php?option=".$option."&task=editA_lang&hidemainmenu=1&id=".$row->id;
- $checked = moshtml::idBox( $i, $row->id );
- echo " <tr class=\"";
- echo "row{$k}";
- echo "\">\n <td align=\"center\" width=\"20\">";
- echo $pageNav->rowNumber( $i );
- echo "</td>\n <td width=\"20\">";
- echo $checked;
- echo "</td>\n <td align=\"left\" width=\"20%\">\n ";
- mosmakehtmlsafe( $row->lang_file );
- echo " <a href=\"";
- echo $link;
- echo "\">\n ";
- echo substr( strip_tags( $row->lang_file ), 0, 70 );
- echo " </a>\n </td>\t\t\t\t\t\t\t\t\n <td align=\"left\">";
- if ( $row->is_default )
- {
- echo " <img src=\"";
- echo $mainframe->getCfg( "live_site" );
- echo "/administrator/images/tick.png\" border=\"0\" alt=\"User choice\" />\n ";
- }
- echo " </td>\n <td></td>\n </tr>\n ";
- $k = 1 - $k;
- ++$i;
- }
- echo "\t\t\t\t<tr><td colspan=\"5\">\n\t\t\t\t\t<table class=\"adminform\" style=\"margin-top:2px; margin-bottom:2px; \">\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t";
- echo "<s";
- echo "mall style=\"padding-left:20px \">\n\t\t\t\t\t\t\t\t\t\t* Default language is set for users who do not have access to the page.\n\t\t\t\t\t\t\t\t</small>\n\t\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t\t";
- echo "<s";
- echo "mall style=\"padding-left:20px \">\n\t\t\t\t\t\t\t\t\t\t* To save language file in XML format to your computer click '<em>Export</em>' button.\n\t\t\t\t\t\t\t\t</small>\n\t\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t\t";
- echo "<s";
- echo "mall style=\"padding-left:20px \">\n\t\t\t\t\t\t\t\t\t\t* To upload language XML file to the database click '<em>Import</em>' button.\n\t\t\t\t\t\t\t\t</small>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</td></tr>\n\t\t\t\t</tbody>\n\t\t\t\t<tfoot>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td colspan=\"12\">\n\t\t\t\t\t\t";
- echo $pageNav->getListFooter( );
- echo "\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tfoot>\n </table>\n <input type=\"hidden\" name=\"option\" value=\"";
- echo $option;
- echo "\" />\n <input type=\"hidden\" name=\"task\" value=\"languages\" />\n <input type=\"hidden\" name=\"boxchecked\" value=\"0\" />\n <input type=\"hidden\" name=\"hidemainmenu\" value=\"0\">\n </form>\n\t\t\t\t</td></tr></table>\n ";
- }
- public function editlanguage( &$row, &$lists, $option, $t_language )
- {
- global $mosConfig_live_site;
- global $mainframe;
- moscommonhtml::loadOverlib( );
- $Var_240->mosTabs( 1 );
- $tabs = $Var_240;
- echo " ";
- echo "<s";
- echo "cript language=\"javascript\" type=\"text/javascript\">\n <!--\n function submitbutton(pressbutton) {\n var form = document.adminForm;\n if (pressbutton == 'cancel_lang') {\n submitform( pressbutton );\n return;\n }\n // do field";
- echo " validation\n var reg_label = /[^0-9a-z_]/;\n if (form.lang_file.value == \"\"){\n alert( \"Language must have a name.\" );\n } else if (reg_label.test(form.lang_file.value)) {\n alert('Language name must contain only latin letters and digits.');\n } else ";
- echo "{\n submitform( pressbutton );\n }\n }\n //-->\n </script>\n\n <table width=\"100%\" >\n\t \t\t<tr>\n\t\t \t<td valign=\"top\" width=\"220\">\n\t\t \t<div>\n\t\t\t\t";
- echo t_admin::Testimon_menu( );
- echo "\t\t \t</div>\n\t\t \t</td>\n\t\t \t<td valign=\"top\">\n\t\t\t\t<form action=\"index2.php\" method=\"post\" name=\"adminForm\" >\n\t\t\t\t";
- if ( !class_exists( "JToolBarHelper" ) )
- {
- echo " <table class=\"adminheading\">\n <tr>\n <th class=\"langmanager\">\n ";
- echo _T_COMP_NAME;
- echo ":\n ";
- echo "<s";
- echo "mall>\n ";
- echo $row->id ? "Edit Language" : "New Language";
- echo " </small>\n </th>\n </tr>\n </table>\n\t\t\t\t";
- }
- echo " <br />\n ";
- $tabs->startPane( "labelsPane" );
- $tabs->startTab( "Description", "labeldetails-page" );
- echo " <table width=\"100%\" class=\"adminform\">\n <tr>\n <th colspan=\"3\">Language Details</th>\n </tr>\n <tr>\n <td align=\"right\" width=\"10%\" valign=\"top\">Language name:</td>\n <td valign=\"top\"><input type=\"text\" class=\"text_area\" size=\"35\" name=\"";
- echo "lang_file\" value=\"";
- echo $row->lang_file;
- echo "\"> Language name must contain only latin letters and digits.</td>\n <td align=\"right\" style=\"text-align:right \">\n <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" id=\"toolbar\" align=\"right\">\n <tr valign=\"middle\" align=\"right\">\n <td align=\"center\"";
- echo " style=\"text-align:center \">\n ";
- if ( $row->id )
- {
- echo " <a class=\"toolbar\" href=\"index2.php?option=";
- echo $option;
- echo "&task=export_lang_xml&lang_id=";
- echo $row->id;
- echo "\">\n <img src=\"";
- echo $mainframe->getCfg( "live_site" );
- echo "/administrator/images/upload_f2.png\" alt=\"Export\" name=\"export_label\" title=\"Export\" align=\"middle\" border=\"0\" />\n <br />Export\n </a>\n ";
- }
- else
- {
- echo " <a class=\"toolbar\" href=\"javascript:void(0)\">\n <img src=\"";
- echo $mainframe->getCfg( "live_site" );
- echo "/administrator/images/upload.png\" alt=\"Export\" name=\"export_label\" title=\"Export\" align=\"middle\" border=\"0\" />\n <br />Export\n </a>\n ";
- }
- echo " </td>\n </tr></table>\n </td>\n </tr>\n </table>\n ";
- $tabs->endTab( );
- $tabs->startTab( "Messages", "labeltexts-page" );
- echo " <table width=\"100%\" class=\"adminform\">\n <tr>\n <th colspan=\"2\">Text Messages</th>\n </tr>\n <tr>\n <td align=\"right\" width=\"15%\" valign=\"top\">Display</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"display\" value=\"";
- echo stripslashes( htmlentities( $t_language['display'] ) );
- echo "\" /></td>\n </tr>\t\n\t\t\t\t\t\t<tr>\n <td align=\"right\" valign=\"top\">Warning: not filled caption</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"warn_fill_caption\" value=\"";
- echo stripslashes( htmlentities( $t_language['warn_fill_caption'] ) );
- echo "\" /></td>\n </tr>\t\t\t\t\t\t\t\t\t\t\t\n <tr>\n <td align=\"right\" valign=\"top\">Warning: not filled author</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"warn_fill_author\" value=\"";
- echo stripslashes( htmlentities( $t_language['warn_fill_author'] ) );
- echo "\" /></td>\n </tr>\n\t\t\t\t\t\t<tr>\n <td align=\"right\" valign=\"top\">Hide form</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"hide_form\" value=\"";
- echo stripslashes( htmlentities( $t_language['hide_form'] ) );
- echo "\" /></td>\n </tr>\n\t\t\t\t\t\t<tr>\n <td align=\"right\" valign=\"top\">Add Testimonial</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"add_testimonial\" value=\"";
- echo stripslashes( htmlentities( $t_language['add_testimonial'] ) );
- echo "\" /></td>\n </tr>\n <tr>\n <td align=\"right\" valign=\"top\">Caption</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"caption\" value=\"";
- echo stripslashes( htmlentities( $t_language['caption'] ) );
- echo "\" /></td>\n </tr>\n <tr>\n <td align=\"right\" valign=\"top\">Author</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"author\" value=\"";
- echo stripslashes( htmlentities( $t_language['author'] ) );
- echo "\" /></td>\n </tr>\n <tr>\n <td align=\"right\" valign=\"top\">Guest</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"guest\" value=\"";
- echo stripslashes( htmlentities( $t_language['guest'] ) );
- echo "\" /></td>\n </tr>\n <tr>\n <td align=\"right\" valign=\"top\">Testimonial</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"testimonial\" value=\"";
- echo stripslashes( htmlentities( $t_language['testimonial'] ) );
- echo "\" /></td>\n </tr>\n <tr>\n <td align=\"right\" valign=\"top\">Add testimonial</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"add_testimonial_button\" value=\"";
- echo stripslashes( htmlentities( $t_language['add_testimonial_button'] ) );
- echo "\" /></td>\n </tr>\n <tr>\n <td align=\"right\" valign=\"top\">Text for administrator forbidden</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"admin_forbid\" value=\"";
- echo stripslashes( htmlentities( $t_language['admin_forbid'] ) );
- echo "\" /></td>\n </tr>\n <tr>\n <td align=\"right\" valign=\"top\">Add New</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"addnew\" value=\"";
- echo stripslashes( htmlentities( $t_language['addnew'] ) );
- echo "\" /></td>\n </tr>\n <tr>\n <td align=\"right\" width=\"15%\" valign=\"top\">Read more message</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"readmore\" value=\"";
- echo stripslashes( htmlentities( $t_language['readmore'] ) );
- echo "\" /></td>\n </tr>\n <tr>\n <td align=\"right\" valign=\"top\">Another read more message</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"readmore2\" value=\"";
- echo stripslashes( htmlentities( $t_language['readmore2'] ) );
- echo "\" /></td>\n </tr>\n\t\t\t\t\t\t <tr>\n <td align=\"right\" valign=\"top\">If you want to leave a testimonial, please %s first.</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"if_want_leave_testim\" value=\"";
- echo stripslashes( htmlentities( $t_language['if_want_leave_testim'] ) );
- echo "\" /><br/>";
- echo "<s";
- echo "mall>'%s' will be replaced 'register' link.</small></td>\n </tr>\n\t\t\t\t\t\t <tr>\n <td align=\"right\" valign=\"top\">register</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"register\" value=\"";
- echo stripslashes( htmlentities( $t_language['register'] ) );
- echo "\" /><br/>";
- echo "<s";
- echo "mall>This word will be a link in previous message.</small></td>\n </tr>\n\t\t\t\t\t\t<tr>\n <td align=\"right\" valign=\"top\">Registration</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"registration\" value=\"";
- echo stripslashes( htmlentities( $t_language['registration'] ) );
- echo "\" /><br/>";
- echo "<s";
- echo "mall>Hint for registration link.</small></td>\n </tr>\n <tr>\n <td align=\"right\" valign=\"top\">Subject of the email sent when new testimonial appeared</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"mail_new_testimonial\" value=\"";
- echo stripslashes( htmlentities( $t_language['mail_new_testimonial'] ) );
- echo "\" /></td>\n </tr>\n <tr>\n <td align=\"right\" valign=\"top\">Body of the email sent when new testimonial appeared</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"mail_new_testimonial2\" value=\"";
- echo stripslashes( htmlentities( $t_language['mail_new_testimonial2'] ) );
- echo "\" /></td>\n </tr>\n <tr>\n <td align=\"right\" valign=\"top\">Message about necessity of administrator confirmation to add new testimonial</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"admin_confirm\" value=\"";
- echo stripslashes( htmlentities( $t_language['admin_confirm'] ) );
- echo "\" /></td>\n </tr>\n <tr>\n <td align=\"right\" valign=\"top\">Successfully saved testimonial message</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"testimonial_saved\" value=\"";
- echo stripslashes( htmlentities( $t_language['testimonial_saved'] ) );
- echo "\" /></td>\n </tr>\n \n<!-- <tr>\n <td align=\"right\" valign=\"top\">Testimonials header</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"testimonials\" value=\"";
- echo stripslashes( htmlentities( $t_language['testimonials'] ) );
- echo "\" /></td>\n </tr>\n-->\n <tr>\n <td align=\"right\" valign=\"top\">No testimonials message</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"notestimonials\" value=\"";
- echo stripslashes( htmlentities( $t_language['notestimonials'] ) );
- echo "\" /></td>\n </tr>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<tr>\n <td align=\"right\" valign=\"top\">Not authorized to add testimonials message</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"not_auth_to_add\" value=\"";
- echo stripslashes( htmlentities( $t_language['not_auth_to_add'] ) );
- echo "\" /></td>\n </tr>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<tr>\n <td align=\"right\" valign=\"top\">Upload photo label</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"upload_photo\" value=\"";
- echo stripslashes( htmlentities( $t_language['upload_photo'] ) );
- echo "\" /></td>\n </tr>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<tr>\n <td align=\"right\" valign=\"top\">CB avatar note</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"cb_photo_note\" value=\"";
- echo stripslashes( htmlentities( $t_language['cb_photo_note'] ) );
- echo "\" /></td>\n </tr>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<tr>\n <td align=\"right\" valign=\"top\">Image formate note</td>\n <td><input type=\"text\" class=\"text_area\" size=\"100\" name=\"cb_img_formats\" value=\"";
- echo stripslashes( htmlentities( $t_language['cb_img_formats'] ) );
- echo "\" /></td>\n </tr>\n </table>\n\t\t\t\t";
- $tabs->endTab( );
- echo " <input type=\"hidden\" name=\"option\" value=\"";
- echo $option;
- echo "\" />\n <input type=\"hidden\" name=\"id\" value=\"";
- echo $row->id;
- echo "\" />\n <input type=\"hidden\" name=\"task\" value=\"\" />\n </form>\n\t\t\t\t</td></tr></table>\n ";
- }
- public function importlanguage( $option )
- {
- global $mosConfig_live_site;
- global $mainframe;
- moscommonhtml::loadOverlib( );
- echo " ";
- echo "<s";
- echo "tyle type=\"text/css\">\n div.fileinputs {\n position: relative;\n }\n div.fakefile {\n position: absolute;\n top: 0px;\n left: 2px;\n z-index: 2;\n }\n ";
- echo " div.fakefile_inp {\n position: relative;\n text-align: left;\n z-index: 10;\n }\n input.file {\n -moz-opacity:0 ;\n filter:alpha(opacity: 0);\n opacity: 0;\n ";
- echo " }\n </style>\n ";
- echo "<s";
- echo "cript language=\"javascript\" type=\"text/javascript\">\n <!--\n var W3CDOM = (document.createElement && document.getElementsByTagName);\n\n function initFileUploads() {\n if (!W3CDOM) return;\n var fakeFileUpload = document.createElement('div');\n fakeFileUpload.className = 'fakefile';\n ";
- echo " var f_input = document.createElement('input');\n f_input.className = 'text_area';\n f_input.size = 35;\n fakeFileUpload.appendChild(f_input);\n var image = document.createElement('img');\n image.src='";
- echo $mainframe->getCfg( "live_site" );
- echo "/administrator/images/filesave.png';\n image.style['position'] = 'absolute';\n fakeFileUpload.appendChild(image);\n var x = document.getElementsByTagName('input');\n for (var i=0;i<x.length;i++) {\n if (x[i].type != 'file') continue;\n if (x[i].parentNo";
- echo "de.className != 'fakefile_inp') continue;\n if (x[i].parentNode.parentNode.className != 'fileinputs') continue;\n x[i].className = 'file hidden';\n var clone = fakeFileUpload.cloneNode(true);\n x[i].parentNode.parentNode.appendChild(clone);\n x[i].re";
- echo "latedElement = clone.getElementsByTagName('input')[0];\n x[i].onchange = x[i].onmouseout = function () {\n this.relatedElement.value = this.value;\n }\n }\n }\n\n function submitbutton(pressbutton) {\n var form = document.adminForm";
- echo ";\n if (pressbutton == 'cancel_lang') {\n submitform( pressbutton );\n return;\n }\n\n // do field validation\n var reg_label = /[^0-9a-z_]/;\n if (form.lang_file.value == \"\") {\n alert( \"Language must";
- echo " have a name.\" );\n } else if (reg_label.test(form.lang_file.value)) {\n alert('Name must contain only letters and digits');\n } else {\n submitform( pressbutton );\n }\n }\n //-->\n </script>\n\n <table width=\"100%\" >\n\t \t\t<t";
- echo "r>\n\t\t \t<td valign=\"top\" width=\"220\">\n\t\t \t<div>\n\t\t\t\t";
- echo t_admin::Testimon_menu( );
- echo "\t\t \t</div>\n\t\t \t</td>\n\t\t \t<td valign=\"top\">\n\t\t\t\t<form action=\"index2.php\" method=\"post\" name=\"adminForm\" enctype=\"multipart/form-data\">\n\t\t\t\t";
- if ( !class_exists( "JToolBarHelper" ) )
- {
- echo " <table class=\"adminheading\">\n <tr>\n <th>\n ";
- echo _T_COMP_NAME;
- echo ":\n ";
- echo "<s";
- echo "mall>\n Import Language\n </small>\n </th>\n </tr>\n </table>\n\t\t\t\t";
- }
- echo " <br />\n <table width=\"100%\" class=\"adminform\">\n <tr>\n <th colspan=\"2\">Import Language</th>\n </tr>\n <tr>\n <td align=\"right\" width=\"20%\" valign=\"top\">Language name:</td>\n <td valign=\"top\"><div style=\"padding-left:2px;\"><i";
- echo "nput type=\"text\" class=\"text_area\" size=\"35\" name=\"lang_file\" value=\"\"></div></td>\n </tr>\n <tr>\n <td align=\"right\" width=\"20%\" valign=\"top\">Select file:</td>\n <td valign=\"top\">\n <div class=\"fileinputs\">\n <div class=\"fakefile_inp\">\n";
- echo " <input type=\"file\" size=\"35\" name=\"import_lang_file\" >\n </div>\n </div>\n </td>\n </tr>\n </table>\n ";
- echo "<s";
- echo "cript type=\"text/javascript\">\n <!--\n initFileUploads();\n //-->\n </script>\n <input type=\"hidden\" name=\"option\" value=\"";
- echo $option;
- echo "\" />\n <input type=\"hidden\" name=\"task\" value=\"\" />\n </form>\n\t\t\t</td></tr></table>\n\t";
- }
- public function testimon_menu( )
- {
- global $mosConfig_absolute_path;
- global $mosConfig_live_site;
- global $mainframe;
- $release = $GLOBALS['_VERSION']->RELEASE;
- $task = mosgetparam( $_REQUEST, "task", "" );
- $show = 0;
- if ( $task == "tags" || $task == "editA_tag" || $task == "edit_tag" || $task == "add_tag" || $task == "topics" || $task == "editA_topic" || $task == "edit_topic" || $task == "add_topic" )
- {
- $show = 1;
- }
- else if ( $task == "settings" || $task == "editcss" || $task == "languages" || $task == "add_lang" || $task == "edit_lang" || $task == "editA_lang" || $task == "menu_man" || $task == "mod_man" )
- {
- $show = 2;
- }
- else if ( $task == "help" || $task == "faq" || $task == "support" )
- {
- $show = 3;
- }
- echo " ";
- echo "<s";
- echo "tyle>\n a.menu_link:link, a.menu_link:visited {font-weight:bold;color:#000000; }\n a.menu_link:hover{ color:#3366CC; text-decoration:none; }\n /* pane-sliders */\n .pane-sliders .title {\n margin: 0;\n padding: 2px;\n color: #666;\n cursor: pointer;\n }\n\n \n .pane-sliders .panel { border: 1px solid #ccc; margin-bottom: 3px; text-alig";
- echo "n:left;}\n \n .pane-sliders .panel h3 { background: #f6f6f6; color: #666; font-size:13px;}\n \n .pane-sliders .content { background: #f6f6f6; }\n \n .pane-sliders .adminlist { border: 0 none; }\n\t .pane-sliders .adminlist tr {text-align:left; }\n\n .pane-sliders .adminlist td { border: 0 none; }\n \n .jpane-toggler span { background: transparent url(";
- echo $mosConfig_live_site;
- echo "/administrator/components/com_testimonials/menu/images/j_arrow.png) 5px 50% no-repeat; padding-left: 20px;}\n .jpane-toggler-down span { background: transparent url(";
- echo $mosConfig_live_site;
- echo "/administrator/components/com_testimonials/menu/images/j_arrow_down.png) 5px 50% no-repeat; padding-left: 20px;}\n \n .jpane-toggler-down { border-bottom: 1px solid #ccc; }\n </style>\n\t";
- if ( $release != "1.5" )
- {
- echo " \t";
- echo "<s";
- echo "cript type=\"text/javascript\" src=\"";
- echo $mosConfig_live_site;
- echo "/administrator/components/com_testimonials/menu/js/mootools.js\"></script>\n\t";
- }
- echo " \n ";
- echo "<s";
- echo "cript type=\"text/javascript\">\n // <!--\n window.addEvent('domready', function(){ new Accordion(\$\$('.panel h3.jpane-toggler'), \$\$('.panel div.jpane-slider'), {show:";
- echo $show;
- echo " ,onActive: function(toggler, i) { toggler.addClass('jpane-toggler-down'); toggler.removeClass('jpane-toggler'); },onBackground: function(toggler, i) { toggler.addClass('jpane-toggler'); toggler.removeClass('jpane-toggler-down'); },duration: 300,opacity: false}); });\n // -->\n </script>\n <table width=\"202px\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" >\n <tr><td style=\"height:7px; widt";
- echo "h:200px;background:url(";
- echo $mosConfig_live_site;
- echo "/administrator/components/com_testimonials/menu/images/top_menu_bg.jpg) no-repeat bottom left \">\n <img src=\"";
- echo $mosConfig_live_site;
- echo "/images/blank.png\" />\n </td></tr>\n <tr>\n <td style=\"border-left:1px solid #cccccc;border-right:1px solid #cccccc\" align=\"center\"><img src=\"";
- echo $mosConfig_live_site;
- echo "/administrator/components/com_testimonials/menu/images/EF_logo.jpg\" alt=\"Elearningforce BIZ\" title=\"\" border=\"0\"/></td>\n </tr>\n <tr>\n\t\t<td style=\"border-left:1px solid #cccccc;border-right:1px solid #cccccc; text-align:center;\" align=\"center\"><h3 style='margin:0; padding:0; padding-bottom:5px; color:#5c82c3;font-style:italic;'>";
- echo _T_COMP_NAME;
- echo "</h3></td>\n\t</tr> \n <tr>\n <td style=\"border-left:1px solid #cccccc;border-right:1px solid #cccccc\">\n <div id=\"content-pane\" class=\"pane-sliders\">\n <div class=\"panel\">\n <h3 class=\"jpane-toggler title\" id=\"cpanel-panel\">\n ";
- echo "<s";
- echo "pan>About</span>\n </h3>\n <div class=\"jpane-slider content\">\n <table class=\"adminlist\">\n <tr>\n <td width=\"16px\"><img src=\"";
- echo $mosConfig_live_site;
- echo "/includes/js/ThemeOffice/credits.png\" ></td>\n <td class=\"title\">\n <a class=\"menu_link\" href=\"index2.php?option=com_testimonials&task=about\">About Testimonials</a>\n </td>\n </tr> \n\t\t\t\t\t\t <tr>\n <td width=\"16px\"><img src=\"";
- echo $mosConfig_live_site;
- echo "/includes/js/ThemeOffice/license.png\" ></td>\n <td class=\"title\">\n <a class=\"menu_link\" href=\"index2.php?option=com_testimonials&task=disclaimer\">Disclaimer</a>\n </td>\n </tr> \n\t\t\t\t\t\t <tr>\n <td width=\"16px\"><img src=\"";
- echo $mosConfig_live_site;
- echo "/includes/js/ThemeOffice/license.png\" ></td>\n <td class=\"title\">\n <a class=\"menu_link\" href=\"index2.php?option=com_testimonials&task=license\">License File</a>\n </td>\n </tr> \n </table>\n </div>\n </div>\n <div c";
- echo "lass=\"panel\">\n <h3 class=\"jpane-toggler title\" id=\"cpanel-panel\">\n ";
- echo "<s";
- echo "pan>Testimonials Management</span>\n </h3>\n <div class=\"jpane-slider content\">\n <table class=\"adminlist\">\n <tr>\n <td width=\"16px\"><img src=\"";
- echo $mosConfig_live_site;
- echo "/includes/js/ThemeOffice/content.png\" ></td>\n <td class=\"title\">\n <a class=\"menu_link\" href=\"index2.php?option=com_testimonials&task=topics\">Manage Testimonials</a>\n </td>\n </tr>\n\t\t\t\t\t\t <tr>\n <td width=\"16px\"><img src=\"";
- echo $mosConfig_live_site;
- echo "/includes/js/ThemeOffice/content.png\" ></td>\n <td class=\"title\">\n <a class=\"menu_link\" href=\"index2.php?option=com_testimonials&task=tags\">Tags</a>\n </td>\n </tr>\n </table>\n </div>\n </div>\n <div class=\"panel\">\n ";
- echo " <h3 class=\"jpane-toggler title\" id=\"cpanel-panel\">\n ";
- echo "<s";
- echo "pan>Testimonials Settings</span>\n </h3>\n <div class=\"jpane-slider content\">\n <table class=\"adminlist\">\n\t\t\t\t\t\t <tr>\n <td width=\"16px\"><img src=\"";
- echo $mosConfig_live_site;
- echo "/includes/js/ThemeOffice/config.png\" ></td>\n <td class=\"title\">\n <a class=\"menu_link\" href=\"index2.php?option=com_testimonials&task=settings\">Settings</a>\n </td>\n </tr>\n\t\t\t\t\t\t <tr>\n <td width=\"16px\"><img src=\"";
- echo $mosConfig_live_site;
- echo "/includes/js/ThemeOffice/config.png\" ></td>\n <td class=\"title\">\n <a class=\"menu_link\" href=\"index2.php?option=com_testimonials&task=languages\">Languages</a>\n </td>\n </tr>\n\t\t\t\t\t\t <tr>\n <td width=\"16px\"><img src=\"";
- echo $mosConfig_live_site;
- echo "/includes/js/ThemeOffice/config.png\" ></td>\n <td class=\"title\">\n <a class=\"menu_link\" href=\"index2.php?option=com_testimonials&task=menu_man\">Menu Manager</a>\n </td>\n </tr>\n\t\t\t\t\t\t <tr>\n <td width=\"16px\"><img src=\"";
- echo $mosConfig_live_site;
- echo "/includes/js/ThemeOffice/config.png\" ></td>\n <td class=\"title\">\n <a class=\"menu_link\" href=\"index2.php?option=com_testimonials&task=mod_man\">Modules Manager</a>\n </td>\n </tr>\n </table>\n </div>\n </div> \n <div class=\"panel\">\n ";
- echo " <h3 class=\"jpane-toggler title\" id=\"cpanel-panel\">\n ";
- echo "<s";
- echo "pan>Help</span>\n </h3>\n <div class=\"jpane-slider content\">\n <table class=\"adminlist\">\n <tr>\n <td width=\"16px\"><img src=\"";
- echo $mosConfig_live_site;
- echo "/includes/js/ThemeOffice/help.png\" ></td>\n <td class=\"title\">\n <a class=\"menu_link\" href=\"index2.php?option=com_testimonials&task=help\">Help</a>\n </td>\n </tr>\n\t\t\t <tr>\n <td width=\"16px\"><img src=\"";
- echo $mosConfig_live_site;
- echo "/includes/js/ThemeOffice/help.png\" ></td>\n <td class=\"title\">\n <a class=\"menu_link\" href=\"index2.php?option=com_testimonials&task=support\">Support</a>\n </td>\n </tr>\n </table>\n </div>\n </div> \n <div class=\"clr\"></div>\n ";
- echo " </div>\n </td>\n </tr>\n <tr><td style=\"height:8px; width:200px;background:url(";
- echo $mosConfig_live_site;
- echo "/administrator/components/com_testimonials/menu/images/bottom_menu_bg.jpg) no-repeat top left \">\n <br /><img src=\"";
- echo $mosConfig_live_site;
- echo "/images/blank.png\" />\n </td></tr>\n\t</table>\n ";
- }
- }
- function tm_update_checker( )
- {
- global $tm_version;
- echo "\t<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" class=\"adminheading\">\n\t\t<tr>\n\t\t\t<td><div id=\"tm_LatestVersion\"><a href=\"check_now\" onclick=\"return tm_CheckVersion();\" style=\"cursor: pointer; text-decoration:underline;\"> check now</a></div>\n\t\t\t</td>\n\t\t</tr>\n </table>\n\n\t";
- echo "<s";
- echo "cript type=\"text/javascript\" language=\"javascript\"><!--//--><![CDATA[//><!--\n\n\tfunction makeRequest(url) {\n\n\t\tvar http_request = false;\n\t\n\t\tif (window.XMLHttpRequest) { // Mozilla, Safari,...\n\t\t\thttp_request = new XMLHttpRequest();\n\t\t\tif (http_request.overrideMimeType) {\n\t\t\t\thttp_request.overrideMimeType('text/xml');\n\t\t\t\t// See note below about this line\n\t\t\t}\n\t\t} else if (window.ActiveXObject) { // I";
- echo "E\n\t\t\ttry {\n\t\t\t\thttp_request = new ActiveXObject(\"Msxml2.XMLHTTP\");\n\t\t\t} catch (e) {\n\t\t\t\ttry {\n\t\t\t\t\thttp_request = new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\t\t}\n\t\n\t\tif (!http_request) {\n\t\t\t// alert('Giving up: Cannot create an XMLHTTP instance');\n\t\t\treturn false;\n\t\t}\n\t\thttp_request.onreadystatechange = function() { alertContents(http_request); };\n\t\thttp_request.open('GET', url";
- echo ", true);\n\t\thttp_request.send(null);\n\t}\n\n function alertContents(http_request) {\n\n if (http_request.readyState == 4) {\n if ((http_request.status == 200) && (http_request.responseText.length < 1025)) {\n\t\t\t\tdocument.getElementById('tm_LatestVersion').innerHTML = ' '+http_request.responseText;\n } else {\n document.getElementById('tm_LatestVersion').inn";
- echo "erHTML = 'There was a problem with the request.';\n }\n }\n\n }\n\n function tm_CheckVersion() {\n \tdocument.getElementById('tm_LatestVersion').innerHTML = 'Checking latest version now...';\n \tmakeRequest('";
- echo "index3.php?option=com_testimonials&task=latestVersion&no_html=1";
- echo "');\n \treturn false;\n }\n function tm_InitAjax() {\n \tmakeRequest('";
- echo "index3.php?option=com_testimonials&task=latestVersion&no_html=1";
- echo "');\n }\n\n//--><!]]></script>\n";
- }
- function t_editorarea( $name, $content, $hiddenField, $width, $height, $col, $row )
- {
- if ( class_exists( "JFactory" ) )
- {
- $editor =& jfactory::getEditor( );
- echo $editor->display( $hiddenField, $content, $width, $height, $col, $row, true );
- }
- else
- {
- global $mainframe;
- global $_MAMBOTS;
- global $my;
- $mainframe->set( "loadEditor", true );
- $results = $_MAMBOTS->trigger( "onEditorArea", array(
- $name,
- $content,
- $hiddenField,
- $width,
- $height,
- $col,
- $row
- ) );
- foreach ( $results as $result )
- {
- if ( trim( $result ) )
- {
- echo $result;
- }
- }
- }
- }
- if ( !defined( "_VALID_MOS" ) )
- {
- exit( "Restricted access" );
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement