* replace style of icons.
This commit is contained in:
@@ -40,14 +40,13 @@ js::set('customed', $customed);
|
||||
<?php
|
||||
|
||||
echo '<span class="link-button dropButton">';
|
||||
echo html::a("#", " ", '', "id='exportAction' class='icon-green-common-export' onclick=toggleSubMenu(this.id,'bottom',0) title='{$lang->export}'");
|
||||
echo html::a("#", $lang->export, '', "id='exportAction' onclick=toggleSubMenu(this.id,'bottom',0) title='{$lang->export}'");
|
||||
echo html::a("#", "<i class='icon-signout'></i> " . $lang->export, '', "id='exportAction' onclick=toggleSubMenu(this.id,'bottom',0) title='{$lang->export}'");
|
||||
echo '</span>';
|
||||
|
||||
common::printIcon('bug', 'report', "productID=$productID&browseType=$browseType&moduleID=$moduleID");
|
||||
common::printIcon('bug', 'customFields');
|
||||
common::printIcon('bug', 'batchCreate', "productID=$productID&projectID=0&moduleID=$moduleID");
|
||||
common::printIcon('bug', 'create', "productID=$productID&extra=moduleID=$moduleID");
|
||||
common::printIcon('bug', 'report', "productID=$productID&browseType=$browseType&moduleID=$moduleID", '', 'button', 'icon-bar-chart');
|
||||
common::printIcon('bug', 'customFields', '', '', 'button', 'icon-wrench');
|
||||
common::printIcon('bug', 'batchCreate', "productID=$productID&projectID=0&moduleID=$moduleID", '', 'button', 'icon-plus-sign');
|
||||
common::printIcon('bug', 'create', "productID=$productID&extra=moduleID=$moduleID", '', 'button', 'icon-plus');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -240,7 +240,7 @@ class common extends control
|
||||
|
||||
if(!common::hasPriv($module, 'edit')) return false;
|
||||
echo "<span class='link-button'>";
|
||||
echo html::a('#commentBox', ' ', '', "class='icon-green-common-comment' title='$lang->comment' onclick='setComment()'");
|
||||
echo html::a('#commentBox', '<i class="icon-comments-alt icon-large"></i>', '', "title='$lang->comment' onclick='setComment()'");
|
||||
echo "</span>";
|
||||
}
|
||||
|
||||
@@ -298,9 +298,9 @@ class common extends control
|
||||
/* set the class. */
|
||||
if(!$icon) $icon = $method;
|
||||
if(strpos(',edit,copy,report,export,delete,', ",$icon,") !== false) $module = 'common';
|
||||
$color = $type == 'button' ? 'green' : ($clickable ? 'green' : 'gray');
|
||||
$disabled = $type == 'button' ? '' : ($clickable ? '' : 'disabled');
|
||||
$extraClass = strpos(',export,customFields,', ",$method,") !== false ? $method : $extraClass;
|
||||
$class = $extraClass ? "icon-$color-$module-$icon $extraClass" : "icon-$color-$module-$icon";
|
||||
$class = $extraClass ? "$icon $disabled $extraClass" : "$icon $disabled";
|
||||
|
||||
/* Create the icon link. */
|
||||
if($clickable)
|
||||
@@ -313,16 +313,15 @@ class common extends control
|
||||
if($type == 'button')
|
||||
{
|
||||
echo "<span class='link-button'>";
|
||||
echo html::a($link, ' ', $target, "class='$class' title='$title'", true);
|
||||
if($method != 'edit' and $method != 'copy' and $method != 'delete')
|
||||
{
|
||||
echo html::a($link, $title, $target, "class='$extraClass'", true);
|
||||
echo html::a($link, "<i class='$class'></i> " . $title, $target, "class='$extraClass'", true);
|
||||
}
|
||||
echo "</span>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo html::a($link, ' ', $target, "class='$class' title='$title'", false);
|
||||
echo html::a($link, '<i class="$class"></i>', $target, "class='icon-link' title='$title'", false);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -349,7 +348,7 @@ class common extends control
|
||||
if(isonlybody()) return false;
|
||||
|
||||
echo "<span class='link-button'>";
|
||||
echo html::a($backLink, ' ', '', "class='icon-goback' title={$lang->goback}");
|
||||
echo html::a($backLink, '<i class="icon-level-down icon-large icon-rotate-90"></i>', '', "title={$lang->goback}");
|
||||
echo "</span>";
|
||||
|
||||
if(isset($preAndNext->pre) and $preAndNext->pre)
|
||||
@@ -358,7 +357,7 @@ class common extends control
|
||||
$title = isset($preAndNext->pre->title) ? $preAndNext->pre->title : $preAndNext->pre->name;
|
||||
$title = '#' . $preAndNext->pre->$id . ' ' . $title;
|
||||
echo "<span class='link-button'>";
|
||||
echo html::a(inLink('view', "ID={$preAndNext->pre->$id}"), ' ', '', "id='pre' class='icon-pre' title='{$title}'");
|
||||
echo html::a(inLink('view', "ID={$preAndNext->pre->$id}"), '<i class="icon-chevron-sign-left icon-large"></i>', '', "id='pre' title='{$title}'");
|
||||
echo "</span>";
|
||||
}
|
||||
if(isset($preAndNext->next) and $preAndNext->next)
|
||||
@@ -367,7 +366,7 @@ class common extends control
|
||||
$title = isset($preAndNext->next->title) ? $preAndNext->next->title : $preAndNext->next->name;
|
||||
$title = '#' . $preAndNext->next->$id . ' ' . $title;
|
||||
echo "<span class='link-button'>";
|
||||
echo html::a(inLink('view', "ID={$preAndNext->next->$id}"), ' ', '', "id='next' class='icon-next' title='$title'");
|
||||
echo html::a(inLink('view', "ID={$preAndNext->next->$id}"), '<i class="icon-chevron-sign-right icon-large"></i>', '', "id='next' title='$title'");
|
||||
echo "</span>";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ $(function(){
|
||||
<?php echo $this->action->printChanges($action->objectType, $action->history);?>
|
||||
</div>
|
||||
<?php if($canEditComment):?>
|
||||
<span class='link-button f-right comment<?php echo $action->id;?>'><?php echo html::a('#lastCommentBox', ' ', '', "class='icon-green-common-edit' onclick='toggleComment($action->id)'")?></span>
|
||||
<span class='link-button f-right comment<?php echo $action->id;?>'><?php echo html::a('#lastCommentBox', '<i class="icon-edit-sign icon-large"></i>', '', "onclick='toggleComment($action->id)'")?></span>
|
||||
<?php endif;?>
|
||||
<?php
|
||||
if($action->comment)
|
||||
|
||||
@@ -31,13 +31,12 @@
|
||||
<div class='f-right'>
|
||||
<?php
|
||||
echo '<span class="link-button dropButton">';
|
||||
echo html::a("#", " ", '', "id='exportAction' class='icon-green-common-export' onclick=toggleSubMenu(this.id,'bottom',0) title='{$lang->export}'");
|
||||
echo html::a("#", $lang->export, '', "id='exportAction' onclick=toggleSubMenu(this.id,'bottom',0) title='{$lang->export}'");
|
||||
echo html::a("#", "<i class='icon-signout'></i> " . $lang->export, '', "id='exportAction' onclick=toggleSubMenu(this.id,'bottom',0) title='{$lang->export}'");
|
||||
echo '</span>';
|
||||
|
||||
common::printIcon('story', 'report', "productID=$productID&browseType=$browseType&moduleID=$moduleID");
|
||||
common::printIcon('story', 'batchCreate', "productID=$productID&moduleID=$moduleID");
|
||||
common::printIcon('story', 'create', "productID=$productID&moduleID=$moduleID");
|
||||
common::printIcon('story', 'report', "productID=$productID&browseType=$browseType&moduleID=$moduleID", '', 'button', 'icon-bar-chart');
|
||||
common::printIcon('story', 'batchCreate', "productID=$productID&moduleID=$moduleID", '', 'button', 'icon-plus-sign');
|
||||
common::printIcon('story', 'create', "productID=$productID&moduleID=$moduleID", '', 'button', 'icon-plus');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -21,20 +21,18 @@
|
||||
<?php
|
||||
if(!isset($browseType)) $browseType = '';
|
||||
if(!isset($orderBy)) $orderBy = '';
|
||||
common::printIcon('task', 'report', "project=$projectID&browseType=$browseType");
|
||||
common::printIcon('task', 'report', "project=$projectID&browseType=$browseType", '', 'button', 'icon-bar-chart');
|
||||
|
||||
echo '<span class="link-button dropButton">';
|
||||
echo html::a("#", " ", '', "id='exportAction' class='icon-green-common-export' onclick=toggleSubMenu(this.id,'bottom',0) title='{$lang->export}'");
|
||||
echo html::a("#", $lang->export, '', "id='exportAction' onclick=toggleSubMenu(this.id,'bottom',0) title='{$lang->export}'");
|
||||
echo html::a("#", "<i class='icon-signout'></i> " . $lang->export, '', "id='exportAction' onclick=toggleSubMenu(this.id,'bottom',0) title='{$lang->export}'");
|
||||
echo '</span>';
|
||||
|
||||
echo '<span class="link-button dropButton">';
|
||||
echo html::a("#", " ", '', "id='importAction' class='icon-green-task-import' onclick=toggleSubMenu(this.id,'bottom',0) title='{$lang->import}'");
|
||||
echo html::a("#", $lang->import, '', "id='importAction' onclick=toggleSubMenu(this.id,'bottom',0) title='{$lang->import}'");
|
||||
echo html::a("#", "<i class='icon-signin'></i> " . $lang->import, '', "id='importAction' onclick=toggleSubMenu(this.id,'bottom',0) title='{$lang->import}'");
|
||||
echo '</span>';
|
||||
|
||||
common::printIcon('task', 'batchCreate', "projectID=$projectID");
|
||||
common::printIcon('task', 'create', "project=$projectID");
|
||||
common::printIcon('task', 'batchCreate', "projectID=$projectID", '', 'button', 'icon-plus-sign');
|
||||
common::printIcon('task', 'create', "project=$projectID", '', 'button', 'icon-plus');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -31,15 +31,14 @@ js::set('confirmDelete', $lang->testcase->confirmDelete);
|
||||
</div>
|
||||
<div class='f-right'>
|
||||
<?php
|
||||
common::printIcon('testcase', 'import', "productID=$productID", '', 'button', '', '', 'export');
|
||||
common::printIcon('testcase', 'import', "productID=$productID", '', 'button', 'icon-signin');
|
||||
|
||||
echo '<span class="link-button dropButton">';
|
||||
echo html::a("#", " ", '', "id='exportAction' class='icon-green-common-export' onclick=toggleSubMenu(this.id,'bottom',0) title='{$lang->export}'");
|
||||
echo html::a("#", $lang->export, '', "id='exportAction' onclick=toggleSubMenu(this.id,'bottom',0) title='{$lang->export}'");
|
||||
echo '<span class="link-button dropButton">';
|
||||
echo html::a("#", "<i class='icon-signout'></i>" . $lang->export, '', "id='exportAction' onclick=toggleSubMenu(this.id,'bottom',0) title='{$lang->export}'");
|
||||
echo '</span>';
|
||||
|
||||
common::printIcon('testcase', 'batchCreate', "productID=$productID&moduleID=$moduleID");
|
||||
common::printIcon('testcase', 'create', "productID=$productID&moduleID=$moduleID");
|
||||
common::printIcon('testcase', 'batchCreate', "productID=$productID&moduleID=$moduleID", '', 'button', 'icon-plus-sign');
|
||||
common::printIcon('testcase', 'create', "productID=$productID&moduleID=$moduleID", '', 'button', 'icon-plus');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -339,11 +339,10 @@ table.tablesorter thead tr .headerSortDown {background-image: url(./images/table
|
||||
#projectID {background:#e5e5e5; border:1px solid #e5e5e5}
|
||||
|
||||
/* Feature bar. */
|
||||
#featurebar {height:30px; line-height:30px;background-color: #edf3fe; padding:10px; border-bottom: 1px solid #e7edf7;margin: -20px -20px 20px -20px;}
|
||||
#featurebar {height:34px; line-height:34px;background-color: #edf3fe; padding:8px 10px; border-bottom: 1px solid #e7edf7;margin: -20px -20px 20px -20px;}
|
||||
#featurebar span {font-size:14px;}
|
||||
#featurebar a {text-decoration:none; display: inline-block;padding: 2px 7px; font-size:14px;-webkit-transition: all .2s;-o-transition: all .2s;-moz-transition: all .2s;transition: all .2s;}
|
||||
#featurebar a {text-decoration:none; display: inline-block;padding: 0px 7px; line-height: 34px;height: 34px; font-size:14px;-webkit-transition: all .2s;-o-transition: all .2s;-moz-transition: all .2s;transition: all .2s;}
|
||||
#featurebar a:hover {color:#000;background-color: #e5e5e5;}
|
||||
#featurebar .f-right a {border-right:none; padding:5px 5px 5px 0px;}
|
||||
#featurebar #bysearchTab a {border:none;}
|
||||
#featurebar select {font-size:12px; height:22px; margin-top:3px;}
|
||||
|
||||
@@ -593,10 +592,8 @@ table.tablesorter thead tr .headerSortDown {background-image: url(./images/table
|
||||
#featurebar .f-right .icon-green-testcase-create {padding:2px 8px; background:url(images/main/zt-icons.png) 0px -320px;}
|
||||
#featurebar .f-right .icon-green-testcase-batchCreate {padding:2px 8px; background:url(images/main/zt-icons.png) -20px -320px;}
|
||||
|
||||
.link-button {padding:7px 0px 7px 0px; margin-left:-1px; }
|
||||
.link-button:hover {background:RGB(200, 200, 200)}
|
||||
.link-button a{color:black; font-weight:normal; font-size:14px;}
|
||||
.link-button a:hover {color:RGB(234, 0, 0);}
|
||||
.link-button a{color:#036; font-weight:normal; font-size:14px;}
|
||||
.link-button a:hover {color:#000;}
|
||||
|
||||
/* Testtask icons. */
|
||||
.icon-green-testtask-create {padding:2px 8px; background:url(images/main/zt-icons.png) 0px -202px;}
|
||||
|
||||
Reference in New Issue
Block a user