Skip to content

Commit

Permalink
neatened display of the workspace properties tab
Browse files Browse the repository at this point in the history
git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@404 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
pgogy committed Jul 23, 2012
1 parent cf92205 commit 05198dd
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 21 deletions.
Expand Up @@ -30,7 +30,7 @@

$query_peer_response = mysql_query($query_for_peer_templates);

workspace_menu_create();
workspace_menu_create(60);

echo "<div style=\"float:left; width:30%; height:20px;\">" . PEER_REVIEW_NAME . "</div>";

Expand Down
Expand Up @@ -33,7 +33,7 @@

while($row_template_name = mysql_fetch_array($query_public_response)){

echo "<div style=\"float:left; width:100%;\">" . str_replace("_","",$row['template_name']) . "</div>";
echo "<div style=\"float:left; width:100%;\">" . str_replace("_","",$row_template_name['template_name']) . "</div>";

}

Expand Down
Expand Up @@ -27,17 +27,17 @@

$database_connect_id = database_connect("Folder_content_template.php connect success","Folder_content_template.php connect failed");

$query_for_rss_templates = "select * from " . $xerte_toolkits_site->database_table_prefix . "templatedetails, " . $xerte_toolkits_site->database_table_prefix . "templaterights, " . $xerte_toolkits_site->database_table_prefix . "templatesyndication where creator_id=\"" . $_SESSION['toolkits_logon_id'] . "\" and " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_id = " . $xerte_toolkits_site->database_table_prefix . "templaterights.template_id and " . $xerte_toolkits_site->database_table_prefix . "templaterights.template_id = " . $xerte_toolkits_site->database_table_prefix . "templatesyndication.template_id and (rss=\"true\" or export=\"true\")";
$query_for_rss_templates = "select * from " . $xerte_toolkits_site->database_table_prefix . "templatedetails, " . $xerte_toolkits_site->database_table_prefix . "templaterights, " . $xerte_toolkits_site->database_table_prefix . "templatesyndication where creator_id=\"" . $_SESSION['toolkits_logon_id'] . "\" and " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_id = " . $xerte_toolkits_site->database_table_prefix . "templaterights.template_id and " . $xerte_toolkits_site->database_table_prefix . "templaterights.template_id = " . $xerte_toolkits_site->database_table_prefix . "templatesyndication.template_id and role=\"creator\" and (rss=\"true\" or export=\"true\")";

$query_rss_response = mysql_query($query_for_rss_templates);

workspace_menu_create();
workspace_menu_create(50);

echo "<div style=\"float:left; position:relative; width:15%; height:20px;\">" . RSS_WORKSPACE_RSS . "</div><div style=\"float:left; position:relative; width:15%; height:20px;\">" . RSS_WORKSPACE_EXPORT . "</div>";

while($row_template_name = mysql_fetch_array($query_rss_response)){

echo "<div style=\"float:left; position:relative; width:50%;\">" . str_replace("_","",$row['template_name']) . "</div><div style=\"float:left; position:relative; width:15%;\">";
echo "<div style=\"float:left; position:relative; width:50%;\">" . str_replace("_","",$row_template_name['template_name']) . "</div><div style=\"float:left; position:relative; width:15%;\">";

if($row_template_name['rss']){

Expand Down
Expand Up @@ -26,18 +26,18 @@

$database_connect_id = database_connect("Folder_content_template.php connect success","Folder_content_template.php connect failed");

$query_for_shared_templates = "select * from " . $xerte_toolkits_site->database_table_prefix . "logindetails, " . $xerte_toolkits_site->database_table_prefix . "templatedetails, " . $xerte_toolkits_site->database_table_prefix . "templaterights where user_id=\"" . $_SESSION['toolkits_logon_id'] . "\" and role!=\"creator\" and " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_id = " . $xerte_toolkits_site->database_table_prefix . "templaterights.template_id and creator_id = login_id";
$query_for_shared_templates = "select * from " . $xerte_toolkits_site->database_table_prefix . "logindetails, " . $xerte_toolkits_site->database_table_prefix . "templatedetails, " . $xerte_toolkits_site->database_table_prefix . "templaterights where user_id=\"" . $_SESSION['toolkits_logon_id'] . "\" and " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_id = " . $xerte_toolkits_site->database_table_prefix . "templaterights.template_id and creator_id = login_id";

$query_shared_response = mysql_query($query_for_shared_templates);

workspace_menu_create();
workspace_menu_create(60);

echo "<div style=\"float:left; width:40%; height:20px;\">" . SHARED_TEMPLATE_CREATOR . "</div>";
echo "<div style=\"float:left; width:30%; height:20px;\">" . SHARED_TEMPLATE_CREATOR . "</div>";

while($row_template_name = mysql_fetch_array($query_shared_response)){

echo "<div style=\"float:left; width:40%; overflow:hidden; padding-right:10px\">" . str_replace("_","",$row['template_name']) . "</div>";
echo "<div style=\"float:left; width:40%; overflow:hidden;\">" . $row_template_name['firstname'] . " " . $row_template_name['surname'] . "</div>";
echo "<div style=\"float:left; width:60%; overflow:hidden;\">" . str_replace("_","",$row_template_name['template_name']) . "</div>";
echo "<div style=\"float:left; width:30%; overflow:hidden;\">" . $row_template_name['firstname'] . " " . $row_template_name['surname'] . "</div>";

}

Expand Down
Expand Up @@ -25,17 +25,17 @@

$database_connect_id = database_connect("Folder_content_template.php connect success","Folder_content_template.php connect failed");

$query_for_rss_templates = "select * from " . $xerte_toolkits_site->database_table_prefix . "templatedetails, " . $xerte_toolkits_site->database_table_prefix . "templaterights, " . $xerte_toolkits_site->database_table_prefix . "templatesyndication where creator_id=\"" . $_SESSION['toolkits_logon_id'] . "\" and " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_id = " . $xerte_toolkits_site->database_table_prefix . "templaterights.template_id and " . $xerte_toolkits_site->database_table_prefix . "templaterights.template_id = " . $xerte_toolkits_site->database_table_prefix . "templatesyndication.template_id and (rss=\"true\" or export=\"true\")";
$query_for_rss_templates = "select * from " . $xerte_toolkits_site->database_table_prefix . "templatedetails, " . $xerte_toolkits_site->database_table_prefix . "templaterights, " . $xerte_toolkits_site->database_table_prefix . "templatesyndication where creator_id=\"" . $_SESSION['toolkits_logon_id'] . "\" and " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_id = " . $xerte_toolkits_site->database_table_prefix . "templaterights.template_id and " . $xerte_toolkits_site->database_table_prefix . "templaterights.template_id = " . $xerte_toolkits_site->database_table_prefix . "templatesyndication.template_id and role=\"creator\" and (rss=\"true\" or export=\"true\")";

$query_rss_response = mysql_query($query_for_rss_templates);

workspace_menu_create();
workspace_menu_create(50);

echo "<div style=\"float:left; width:40%; height:20px;\">" . SYNDICATION_TEMPLATE_TERM . "</div>";

while($row_template_name = mysql_fetch_array($query_rss_response)){

echo "<div style=\"float:left; width:50%;\">" . str_replace("_","",$row['template_name']) . "</div><div style=\"float:left; width:40%;\">";
echo "<div style=\"float:left; width:50%;\">" . str_replace("_","",$row_template_name['template_name']) . "</div><div style=\"float:left; width:40%;\">";

if($row_template_name['syndication']){

Expand Down
18 changes: 14 additions & 4 deletions website_code/php/workspaceproperties/usage_templates_template.php
Expand Up @@ -30,14 +30,24 @@

$query_shared_response = mysql_query($query_for_shared_templates);

workspace_menu_create();
workspace_menu_create(60);

echo "<div style=\"float:left; width:15%; height:20px;\">" . USAGE_TEMPLATE_STATS . "</div>";
echo "<div style=\"float:left; width:40%; height:20px;\">" . USAGE_TEMPLATE_STATS . "</div>";

while($row_template_name = mysql_fetch_array($query_shared_response)){

echo "<div style=\"float:left; width:80%;\">" . str_replace("_","",$row['template_name']). "</div>";
echo "<div style=\"float:left; width:15%;\">" . $row_template_name['number_of_uses'] . "</div>";
if(trim($row_template_name['number_of_uses'])!=""){

$plays = $row_template_name['number_of_uses'];

}else{

$plays = 0;

}

echo "<div style=\"float:left; width:60%;\">" . str_replace("_","",$row_template_name['template_name']). "</div>";
echo "<div style=\"float:left; width:40%;\">" . $plays . "</div>";

}

Expand Down
4 changes: 2 additions & 2 deletions website_code/php/workspaceproperties/workspace_library.php
Expand Up @@ -17,11 +17,11 @@ function workspace_templates_menu(){

}

function workspace_menu_create(){
function workspace_menu_create($size){

echo "<div style=\"clear:left; margin-left:20px; margin-top:10px; width:90%; float:left;\">";

echo "<div style=\"float:left; width:60%; height:20px;\">" . WORKSPACE_LIBRARY_TEMPLATE_NAME . "</div>";
echo "<div style=\"float:left; width:" . $size . "%; height:20px;\">" . WORKSPACE_LIBRARY_TEMPLATE_NAME . "</div>";

}

Expand Down
Expand Up @@ -32,7 +32,7 @@

while($row_template_name = mysql_fetch_array($query_created_response)){

echo "<div style=\"float:left; width:100%; clear:left\">" . str_replace("_","",$row['template_name']) . "</div>";
echo "<div style=\"float:left; width:100%; clear:left\">" . str_replace("_","",$row_template_name['template_name']) . "</div>";

}

Expand Down
Expand Up @@ -30,7 +30,7 @@

$query_peer_response = mysql_query($query_for_peer_templates);

workspace_menu_create();
workspace_menu_create(60);

echo "<div style=\"float:left; width:30%; height:20px;\">" . XML_TEMPLATE_NAME . "</div>";

Expand Down

0 comments on commit 05198dd

Please sign in to comment.