modif css

This commit is contained in:
Marion Muszynski 2016-10-28 17:56:37 +02:00
parent 6eefb4a672
commit c6ea6b27cf
2 changed files with 59 additions and 2 deletions

View File

@ -74,13 +74,20 @@ class AdminCustomerThreads extends AdminTab
'pending2' => 'status_orange.gif'
);
$anticonArray = array(
'open' => 'anticon-radio-checked text-green-light',
'closed' => 'anticon-radio-checked2 text-rose',
'pending1' => 'anticon-hour-glass text-orange',
'pending2' => 'anticon-hour-glass text-orange'
);
$this->fieldsDisplay = array(
'id_customer_thread' => array('title' => $this->l('ID'), 'width' => 25),
'customer' => array('title' => $this->l('Customer'), 'width' => 100, 'filter_key' => 'customer', 'tmpTableFilter' => true),
'email' => array('title' => $this->l('E-mail'), 'width' => 100, 'filter_key' => 'a!email'),
'contact' => array('title' => $this->l('Type'), 'width' => 75, 'type' => 'select', 'select' => $contactArray, 'filter_key' => 'cl!id_contact', 'filter_type' => 'int', 'align' =>'text-bold'),
'language' => array('title' => $this->l('Language'), 'width' => 60, 'type' => 'select', 'select' => $languageArray, 'filter_key' => 'l!id_lang', 'filter_type' => 'int'),
'status' => array('title' => $this->l('Status'), 'width' => 50, 'type' => 'select', 'select' => $statusArray, 'icon' => $imagesArray, 'align' => 'center', 'filter_key' => 'a!status', 'filter_type' => 'string'),
'status' => array('title' => $this->l('Status'), 'width' => 50, 'type' => 'select', 'select' => $statusArray, 'anticon' => $anticonArray, 'align' => 'center', 'filter_key' => 'a!status', 'filter_type' => 'string'),
'employee' => array('title' => $this->l('Employee'), 'width' => 100, 'filter_key' => 'employee', 'tmpTableFilter' => true),
'id_product' => array('title' => $this->l('> 10€'), 'width' => 50, 'maxlength' => 0, 'align' =>'center'),
'id_order' => array('title' => $this->l('Nb products'), 'width' => 50, 'maxlength' => 0, 'align' =>'center text-bold'),
@ -516,7 +523,8 @@ class AdminCustomerThreads extends AdminTab
if ($key == 'id_product'
AND isset($tr[$key])
AND $tr[$key] !=0
AND isset($tr['id_order'])) {
AND isset($tr['id_order'])
) {
$order = new Order((int)$tr['id_order']);
$cart = new Cart((int)$order->id_cart);
$products = Db::getInstance()->executeS('
@ -587,6 +595,8 @@ class AdminCustomerThreads extends AdminTab
}
elseif (isset($params['icon']) AND (isset($params['icon'][$tr[$key]]) OR isset($params['icon']['default'])))
echo '<img src="../img/admin/'.(isset($params['icon'][$tr[$key]]) ? $params['icon'][$tr[$key]] : $params['icon']['default'].'" alt="'.$tr[$key]).'" title="'.$tr[$key].'" />';
elseif (isset($params['anticon']) AND (isset($params['anticon'][$tr[$key]]) OR isset($params['anticon']['default'])))
echo '<span class="anticon '.(isset($params['anticon'][$tr[$key]]) ? $params['anticon'][$tr[$key]] : $params['anticon']['default']).'"> </span>';
elseif (isset($params['price']))
echo Tools::displayPrice($tr[$key], (isset($params['currency']) ? Currency::getCurrencyInstance((int)($tr['id_currency'])) : $currency), false);
elseif (isset($params['float']))
@ -625,6 +635,31 @@ class AdminCustomerThreads extends AdminTab
}
}
protected function _displayDeleteLink($token, $id)
{
global $currentIndex;
$_cacheLang['Delete'] = $this->l('Delete');
$_cacheLang['DeleteItem'] = $this->l('Delete item #', __CLASS__, TRUE, FALSE);
echo '
<a class="link-anticon" href="'.$currentIndex.'&'.$this->identifier.'='.$id.'&delete'.$this->table.'&token='.($token!=NULL ? $token : $this->token).'" onclick="return confirm(\''.$_cacheLang['DeleteItem'].$id.' ?'.
(!is_null($this->specificConfirmDelete) ? '\r'.$this->specificConfirmDelete : '').'\');">
<span class="anticon anticon-bin"></span></a>';
}
protected function _displayViewLink($token = NULL, $id)
{
global $currentIndex;
$_cacheLang['View'] = $this->l('View');
echo '
<a class="link-anticon" href="'.$currentIndex.'&'.$this->identifier.'='.$id.'&view'.$this->table.'&token='.($token!=NULL ? $token : $this->token).'">
<span class="anticon anticon-search"></span></a>';
}
private function openUploadedFile()
{
$filename = $_GET['filename'];

View File

@ -3338,6 +3338,28 @@ span.anticon{
border: 0!important;
}
.text-green-light{
color: #55b239!important;
}
.text-rose{
color: #e36ea2!important;
}
.text-orange{
color: #FFA74E!important;
}
.text-purple{
color: #666491!important;
}
.text-purple-light{
color: #796dc7!important;
}
a.link-anticon{
color: #796dc7!important;
}
a.link-anticon:hover{
color: #483e93!important;
}
/** CustomerThread **/
form.form-subject-message{
width: 320px;