" . PROPERTIES_LIBRARY_XML_TITLE . "

"; echo "

" . PROPERTIES_LIBRARY_XML_DESCRIPTION . "

"; $query = "select * from " . $xerte_toolkits_site->database_table_prefix . "additional_sharing where sharing_type=\"xml\" AND template_id =\"" . mysql_real_escape_string($_POST['template_id']) . "\""; $query_response = mysql_query($query); echo "

" . PROPERTIES_LIBRARY_XML_SHARING . "

"; if(mysql_num_rows($query_response)==1){ echo "

" . PROPERTIES_LIBRARY_ON . "

"; echo "

" . PROPERTIES_LIBRARY_OFF . "

"; echo "

The link for xml sharing is " . $xerte_toolkits_site->site_url . url_return("xml",$_POST['template_id']) . "

"; }else{ echo "

" . PROPERTIES_LIBRARY_ON . "

"; echo "

" . PROPERTIES_LIBRARY_OFF . "

"; } $row = mysql_fetch_array($query_response); echo "

" . PROPERTIES_LIBRARY_XML_RESTRICT . "



"; if($change){ echo "

" . PROPERTIES_LIBRARY_XML_SAVE . "

"; } } function xml_template_display_fail(){ echo "

" . PROPERTIES_LIBRARY_XML_ERROR . "

"; } function properties_display($xerte_toolkits_site,$tutorial_id,$change,$msgtype){ echo "

" . PROPERTIES_LIBRARY_PROJECT . "

"; $query_for_names = "select " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_name, template_framework, date_created, date_modified, extra_flags from " . $xerte_toolkits_site->database_table_prefix . "templatedetails, " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails where template_id=\"". $tutorial_id . "\" and " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_type_id = " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_type_id "; $query_names_response = mysql_query($query_for_names); $row = mysql_fetch_array($query_names_response); if(is_user_creator(mysql_real_escape_string($_POST['template_id']))){ $query_for_template_name = "select template_name from " . $xerte_toolkits_site->database_table_prefix . "templatedetails where template_id=" . mysql_real_escape_string($_POST['template_id']); $query_name_response = mysql_query($query_for_template_name); $row_template_name = mysql_fetch_array($query_name_response); echo "

" . PROPERTIES_LIBRARY_PROJECT_NAME . "

"; echo "
"; if($change && $msgtype=="name"){ echo "

" . PROPERTIES_LIBRARY_PROJECT_CHANGED . "

"; } } echo "


" . PROPERTIES_LIBRARY_PROJECT_CREATE . " " . $row['date_created'] . "

"; echo "

" . PROPERTIES_LIBRARY_PROJECT_MODIFY . " " . $row['date_modified'] . "

"; echo "../../../modules/" . $row['template_framework'] . "/module_functions.php"; include "../../../modules/" . $row['template_framework'] . "/module_functions.php"; if(function_exists("display_property_engines")){ display_property_engines($change,$msgtype); } if(template_access_settings(mysql_real_escape_string($_POST['template_id']))!='Private'){ echo "

" . PROPERTIES_LIBRARY_PROJECT_LINK . "

"; echo "

" . $xerte_toolkits_site->site_url . url_return("play", $_POST['template_id']) . "

"; $template = explode("_", get_template_type($_POST['template_id'])); if(file_exists($xerte_toolkits_site->root_file_path . "/modules/" . $template[0] . "/play_links.php")){ require_once($xerte_toolkits_site->root_file_path . "/modules/" . $template[0] . "/play_links.php"); show_play_links($template[1]); } // Get the template screen size $query_for_template_name = "select " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_name, " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_framework from " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails, " . $xerte_toolkits_site->database_table_prefix . "templatedetails where " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_type_id = " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_type_id AND template_id =\"" . $tutorial_id . "\""; $query_name_response = mysql_query($query_for_template_name); $row_name = mysql_fetch_array($query_name_response); if(isset($xerte_toolkits_site->learning_objects->{$template[0] . "_" . $template[1]}->preview_size)){ if($xerte_toolkits_site->learning_objects->{$template[0] . "_" . $template[1]}->preview_size!="*"){ $temp_string = $xerte_toolkits_site->learning_objects->{$template[0] . "_" . $template[1]}->preview_size; $temp_array = explode("~",$temp_string); }else{ $temp_array=array("100%","100%"); } }else{ $temp_array=array("100%","100%"); } echo "

" . PROPERTIES_LIBRARY_PROJECT_IFRAME . "

"; } } function properties_display_fail(){ echo "

" . PROPERTIES_LIBRARY_PROJECT_FAIL . "

"; } function publish_display($template_id) { $database_id=database_connect("Properties template database connect success","Properties template database connect failed"); // User has to have some rights to do this if(has_rights_to_this_template(mysql_real_escape_string($_POST['template_id']), $_SESSION['toolkits_logon_id'])||is_user_admin()){ echo "

" . PUBLISH_TITLE . "

"; $query_for_names = "select td.template_name, td.date_created, td.date_modified, otd.template_framework from " . $xerte_toolkits_site->database_table_prefix . "templatedetails td, " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails otd where td.template_id=\"". $template_id . "\" and td.template_type_id = otd.template_type_id"; $query_names_response = mysql_query($query_for_names); $row = mysql_fetch_array($query_names_response); echo "

" . PUBLISH_DESCRIPTION . "

"; $template_access = template_access_settings(mysql_real_escape_string($template_id)); echo "

" . PUBLISH_ACCESS . "
" . PUBLISH_ACCESS_DESCRIPTION . "

"; if($template_access=="Private"){ echo "

" . PUBLISH_ACCESS_STATUS . "

"; }else{ echo "

" . PUBLISH_ACCESS_IS . " " . $template_access . ".

"; } echo "

" . PUBLISH_RSS . "
" . PUBLISH_RSS_DESCRIPTION . "

"; if(!is_template_rss(mysql_real_escape_string($_POST['template_id']))){ echo "

" . PUBLISH_RSS_NOT_INCLUDE . "

"; }else{ echo "

" . PUBLISH_RSS_INCLUDE . "

"; } include "../../../modules/" . $row['template_framework'] . "/module_functions.php"; if(function_exists("display_property_engines")){ display_publish_engine(); } echo "

" . PUBLISH_SYNDICATION . "
" . PUBLISH_SYNDICATION_DESCRIPTION . "

"; if(!is_template_syndicated(mysql_real_escape_string($template_id))){ echo "

" . PUBLISH_SYNDICATION_STATUS_OFF . "

"; }else{ echo "

" . PUBLISH_SYNDICATION_STATUS_ON . "

"; } if($template_access!=""){ /** * * This section using $_SESSION['webct'] is for people using the integration option for webct. If you integration option has the ability to post back a URL then you would modify this code to allow for your systems working methods. * **/ echo "

"; echo "

" . PUBLISH_WEB_ADDRESS . " " . $xerte_toolkits_site->site_url . url_return("play",mysql_real_escape_string($template_id)) . "

"; } }else{ echo "

"; } } function notes_display($notes, $change){ echo "

" . PROPERTIES_LIBRARY_NOTES . "

"; echo "

" . PROPERTIES_LIBRARY_NOTES_EXPLAINED . "

"; if($change){ echo "

" . PROPERTIES_LIBRARY_NOTES_SAVED . "

"; } } function notes_display_fail(){ echo "

" . PROPERTIES_LIBRARY_NOTES_FAIL . "

"; } function peer_display($xerte_toolkits_site,$change){ echo "

" . PROPERTIES_LIBRARY_PEER . "

"; echo "

" . PROPERTIES_LIBRARY_PEER_EXPLAINED . "

"; $query = "select * from " . $xerte_toolkits_site->database_table_prefix . "additional_sharing where sharing_type=\"peer\" AND template_id =\"" . mysql_real_escape_string($_POST['template_id']) . "\""; $query_response = mysql_query($query); echo "

" . PROPERTIES_LIBRARY_PEER_STATUS . "

"; if(mysql_num_rows($query_response)==1){ echo "

" . PROPERTIES_LIBRARY_ON . "

"; echo "

" . PROPERTIES_LIBRARY_OFF . "

"; echo "

" . PROPERTIES_LIBRARY_PEER_LINK . "site_url . url_return("peerreview", $_POST['template_id']) . "\">" . $xerte_toolkits_site->site_url . url_return("peerreview", $_POST['template_id']) . "

"; }else{ echo "

" . PROPERTIES_LIBRARY_ON . "

"; echo "

" . PROPERTIES_LIBRARY_OFF . "

"; } $row = mysql_fetch_array($query_response); $extra = explode("," , $row['extra'],2); $passwd = $extra[0]; if (count($extra) > 1) { $retouremail = $extra[1]; } else { $retouremail = $_SESSION['toolkits_logon_username']; $retouremail .= '@'; if (strlen($xerte_toolkits_site->email_to_add_to_username)>0) { $retouremail .= $xerte_toolkits_site->email_to_add_to_username; } } echo "

"; echo "

"; echo PROPERTIES_LIBRARY_PEER_PASSWORD_PROMPT . "

"; echo PROPERTIES_LIBRARY_PEER_RETOUREMAIL_PROMPT . "
"; echo "

"; echo "

"; echo "
"; if($change){ echo "

" . PROPERTIES_LIBRARY_PEER_SAVED . "

"; } } function peer_display_fail(){ echo "

" . PROPERTIES_LIBRARY_PEER_FAIL . "

"; } function syndication_display($xerte_toolkits_site, $change){ echo "

" . PROPERTIES_LIBRARY_SYNDICATION . "

"; echo "

" . PROPERTIES_LIBRARY_SYNDICATION_EXPLAINED . " site_url . url_return("RSS_syndicate",null) . "\">" . $xerte_toolkits_site->site_url . url_return("RSS_syndicate",null) . "

"; $query_for_syndication = "select syndication,description,keywords,category,license from " . $xerte_toolkits_site->database_table_prefix . "templatesyndication where template_id=" . mysql_real_escape_string($_POST['tutorial_id']); $query_syndication_response = mysql_query($query_for_syndication); $row_syndication = mysql_fetch_array($query_syndication_response); echo "

" . PROPERTIES_LIBRARY_SYNDICATION_PROMPT . " "; if($row_syndication['syndication']=="true"){ echo " " . PROPERTIES_LIBRARY_YES . " " . PROPERTIES_LIBRARY_NO . "

"; }else{ echo " " . PROPERTIES_LIBRARY_YES . " " . PROPERTIES_LIBRARY_NO . "

"; } echo "

" . PROPERTIES_LIBRARY_SYNDICATION_CATEGORY . "

"; echo "

" . PROPERTIES_LIBRARY_SYNDICATION_LICENCE . "

"; echo "

" . PROPERTIES_LIBRARY_SYNDICATION_DESCRIPTION . "

"; echo PROPERTIES_LIBRARY_SYNDICATION_KEYWORDS . "

"; if($change){ echo "

" . PROPERTIES_LIBRARY_SYNDICATION_SAVED . "

"; } } function syndication_not_public($xerte_toolkits_site){ echo "

" . PROPERTIES_LIBRARY_SYNDICATION_PUBLIC . "

"; echo "

" . PROPERTIES_LIBRARY_SYNDICATION_URL . " site_url . url_return("RSS_syndicate",null) . "\">" . $xerte_toolkits_site->site_url . url_return("RSS_syndicate",null) . "

"; } function syndication_display_fail(){ echo "

" . PROPERTIES_LIBRARY_SYNDICATION_FAIL . "

"; } function access_display($xerte_toolkits_site, $change){ $query_for_template_access = "select access_to_whom from " . $xerte_toolkits_site->database_table_prefix . "templatedetails where template_id=" . mysql_real_escape_string($_POST['template_id']); $query_access_response = mysql_query($query_for_template_access); $row_access = mysql_fetch_array($query_access_response); echo "

" . PROPERTIES_LIBRARY_ACCESS . " " . str_replace("-", " - ", $row_access['access_to_whom']) . "

"; echo "
"; if(template_access_settings(mysql_real_escape_string($_POST['template_id'])) == "Public"){ echo "

"; }else{ echo "

"; } echo " " . PROPERTIES_LIBRARY_ACCESS_PUBLIC . "

" . PROPERTIES_LIBRARY_ACCESS_PUBLIC_EXPLAINED . "

"; if(template_access_settings(mysql_real_escape_string($_POST['template_id'])) == "Password"){ echo "

"; }else{ echo "

"; } echo " " . PROPERTIES_LIBRARY_ACCESS_PASSWORD . "

" . PROPERTIES_LIBRARY_ACCESS_PASSWORD_EXPLAINED . "

"; if(substr(template_access_settings(mysql_real_escape_string($_POST['template_id'])),0,5) == "Other"){ echo "

"; }else{ echo "

"; } echo " " . PROPERTIES_LIBRARY_ACCESS_OTHER . "

" . PROPERTIES_LIBRARY_ACCESS_OTHER_EXPLAINED . "

"; if(template_access_settings(mysql_real_escape_string($_POST['template_id'])) == "Private"){ echo "

"; }else{ echo "

"; } echo " " . PROPERTIES_LIBRARY_ACCESS_PRIVATE . "

" . PROPERTIES_LIBRARY_ACCESS_PRIVATE_EXPLAINED . "

"; $query_for_security_content = "select * from " . $xerte_toolkits_site->database_table_prefix . "play_security_details"; $query_for_security_content_response = mysql_query($query_for_security_content); if(mysql_num_rows($query_for_security_content_response)!=0){ while($row_security = mysql_fetch_array($query_for_security_content_response)){ if(template_share_status($row_security['security_setting'])){ echo "

"; }else{ echo "

"; } echo " " . $row_security['security_setting'] . "

" . $row_security['security_info'] . "

"; } } echo "
"; echo "

"; if($change){ echo "

" . PROPERTIES_LIBRARY_ACCESS_CHANGED . "

"; } } function access_display_fail(){ echo "

" . PROPERTIES_LIBRARY_ACCESS_FAIL . "

"; } function rss_display($xerte_toolkits_site,$tutorial_id,$change){ $query_for_name = "select firstname,surname from " . $xerte_toolkits_site->database_table_prefix . "logindetails where login_id=" . $_SESSION['toolkits_logon_id']; $query_for_name_response = mysql_query($query_for_name); $row_name = mysql_fetch_array($query_for_name_response); $query_for_rss = "select rss,export,description from " . $xerte_toolkits_site->database_table_prefix . "templatesyndication where template_id=" . mysql_real_escape_string($tutorial_id); $query_rss_response = mysql_query($query_for_rss); $row_rss = mysql_fetch_array($query_rss_response); echo "

" . PROPERTIES_LIBRARY_RSS . "

"; if($row_rss['rss']=="true"){ echo "

" . PROPERTIES_LIBRARY_RSS_INCLUDE . " " . PROPERTIES_LIBRARY_YES . " " . PROPERTIES_LIBRARY_NO . "

"; }else{ echo "

" . PROPERTIES_LIBRARY_RSS_INCLUDE . " " . PROPERTIES_LIBRARY_YES . " " . PROPERTIES_LIBRARY_NO . "

"; } if($row_rss['export']=="true"){ echo "

" . PROPERTIES_LIBRARY_RSS_EXPORT . " " . PROPERTIES_LIBRARY_YES . " " . PROPERTIES_LIBRARY_NO . "

"; }else{ echo "

" . PROPERTIES_LIBRARY_RSS_EXPORT . " " . PROPERTIES_LIBRARY_YES . " " . PROPERTIES_LIBRARY_NO . "

"; } echo "

" . PROPERTIES_LIBRARY_RSS_DESCRIPTION . "



"; echo "

" . PROPERTIES_LIBRARY_RSS_SITE . "

"; echo "

" . PROPERTIES_LIBRARY_RSS_SITE_LINK . " site_url . url_return("RSS",null) . "\">" . $xerte_toolkits_site->site_url . url_return("RSS",null) . ". " . PROPERTIES_LIBRARY_RSS_PERSONAL . "site_url . url_return("RSS_user", ($row_name['firstname'] . "_" . $row_name['surname'])) . "\">" . $xerte_toolkits_site->site_url . url_return("RSS_user", $row_name['firstname'] . "_" . $row_name['surname']) . ". " . PROPERTIES_LIBRARY_RSS_MINE . "

"; echo "

" . PROPERTIES_LIBRARY_RSS_FOLDER . "

"; echo "

" . PROPERTIES_LIBRARY_RSS_EXPORT . "

"; if($change){ echo "

" . PROPERTIES_LIBRARY_RSS_SAVED . "

"; } } function rss_display_public(){ echo "

" . PROPERTIES_LIBRARY_RSS_PUBLIC . "

"; } function rss_display_fail(){ echo "

" . PROPERTIES_LIBRARY_RSS_FAIL . "

"; } ?>