continuation of modif
This commit is contained in:
parent
1d4435a4ef
commit
47b180afb1
@ -370,12 +370,14 @@ class AdminCustomerThreads extends AdminTab
|
||||
</div>'
|
||||
:'').'
|
||||
<form action="'.Tools::htmlentitiesutf8($_SERVER['REQUEST_URI']).'" method="post">
|
||||
<b>'.$this->l('Subject:').'</b>
|
||||
<label>'.$this->l('Subject:').'</label>
|
||||
<input type="hidden" name="id_customer_message" value="'.$message['id_customer_message'].'" />
|
||||
<select name="id_contact" class="'.(!empty($message['employee_name'])?'bg-rose':'').'" onchange="this.form.submit();">';
|
||||
foreach ($contacts as $contact)
|
||||
$output .= '<option value="'.(int)$contact['id_contact'].'" '.($contact['id_contact'] == $message['id_contact'] ? 'selected="selected"' : '').'>'.Tools::htmlentitiesutf8($contact['name']).'</option>';
|
||||
$output .= '</select>
|
||||
<div class="styled-select bg-purple-light semi-square">
|
||||
<select name="id_contact" class="'.(!empty($message['employee_name'])?'bg-rose':'').'" onchange="this.form.submit();">';
|
||||
foreach ($contacts as $contact)
|
||||
$output .= '<option value="'.(int)$contact['id_contact'].'" '.($contact['id_contact'] == $message['id_contact'] ? 'selected="selected"' : '').'>'.Tools::htmlentitiesutf8($contact['name']).'</option>';
|
||||
$output .= '</select>
|
||||
</div>
|
||||
</form>';
|
||||
}
|
||||
else
|
||||
@ -426,13 +428,15 @@ class AdminCustomerThreads extends AdminTab
|
||||
<div id="reply_to_'.(int)($message['id_customer_message']).'" style="display: none; margin-top: 10px;" class="panel-answer">
|
||||
<form action="'.Tools::htmlentitiesutf8($_SERVER['REQUEST_URI']).'" method="post" enctype="multipart/form-data">
|
||||
<p>'.$this->l('Please type your reply below:').'</p>
|
||||
<select name="order_message" id="order_message" onchange="savOverwriteMessage(this, \''.$this->l('Do you want to overwrite your existing message?').'\', \''.(int)($message['id_customer_message']).'\')">
|
||||
<option value="0" selected="selected">-- '.$this->l('Choose a standard message').' --</option>';
|
||||
foreach ($orderMessages AS $orderMessage) {
|
||||
$output .= '<option value="'.htmlentities($orderMessage['message'], ENT_COMPAT, 'UTF-8').'">'.$orderMessage['name'].'</option>';
|
||||
}
|
||||
$output .= '
|
||||
</select>
|
||||
<div class="styled-select bg-purple-light semi-square">
|
||||
<select name="order_message" id="order_message" onchange="savOverwriteMessage(this, \''.$this->l('Do you want to overwrite your existing message?').'\', \''.(int)($message['id_customer_message']).'\')">
|
||||
<option value="0" selected="selected">-- '.$this->l('Choose a standard message').' --</option>';
|
||||
foreach ($orderMessages AS $orderMessage) {
|
||||
$output .= '<option value="'.htmlentities($orderMessage['message'], ENT_COMPAT, 'UTF-8').'">'.$orderMessage['name'].'</option>';
|
||||
}
|
||||
$output .= '
|
||||
</select>
|
||||
</div>
|
||||
<div style="width: 450px; margin-top: 0px;margin-bottom:5px;">
|
||||
<input type="file" name="joinFile"/>
|
||||
</div>
|
||||
@ -597,24 +601,26 @@ class AdminCustomerThreads extends AdminTab
|
||||
|
||||
echo '
|
||||
<h2>'.$this->l('Messages').'</h2>
|
||||
<form action="'.Tools::htmlentitiesUTF8($_SERVER['REQUEST_URI']).'" method="post" enctype="multipart/form-data">
|
||||
<p>
|
||||
<img src="../img/admin/msg-forward.png" alt="" style="vertical-align: middle;" /> '.$this->l('Forward this discussion to an employee:').'
|
||||
<select name="id_employee_forward" style="vertical-align: middle;" onchange="
|
||||
if ($(this).val() >= 0)
|
||||
$(\'#message_forward\').show(400);
|
||||
else
|
||||
$(\'#message_forward\').hide(200);
|
||||
if ($(this).val() == 0)
|
||||
$(\'#message_forward_email\').show(200);
|
||||
else
|
||||
$(\'#message_forward_email\').hide(200);
|
||||
">
|
||||
<option value="-1">'.$this->l('-- Choose --').'</option>
|
||||
<option value="0">'.$this->l('Someone else').'</option>';
|
||||
foreach ($employees AS $employee)
|
||||
echo ' <option value="'.(int)($employee['id_employee']).'">'.substr($employee['firstname'], 0, 1).'. '.$employee['lastname'].'</option>';
|
||||
echo ' </select>
|
||||
<form class="form-forward-message" action="'.Tools::htmlentitiesUTF8($_SERVER['REQUEST_URI']).'" method="post" enctype="multipart/form-data">
|
||||
<div>
|
||||
<label for="id_employee_forward">'.$this->l('Forward this discussion to an employee:').'</label>
|
||||
<div class="styled-select bg-purple semi-square">
|
||||
<select name="id_employee_forward" style="vertical-align: middle;" onchange="
|
||||
if ($(this).val() >= 0)
|
||||
$(\'#message_forward\').show(400);
|
||||
else
|
||||
$(\'#message_forward\').hide(200);
|
||||
if ($(this).val() == 0)
|
||||
$(\'#message_forward_email\').show(200);
|
||||
else
|
||||
$(\'#message_forward_email\').hide(200);
|
||||
">
|
||||
<option value="-1">'.$this->l('-- Choose --').'</option>
|
||||
<option value="0">'.$this->l('Someone else').'</option>';
|
||||
foreach ($employees AS $employee)
|
||||
echo ' <option value="'.(int)($employee['id_employee']).'">'.substr($employee['firstname'], 0, 1).'. '.$employee['lastname'].'</option>';
|
||||
echo ' </select>
|
||||
</div>
|
||||
<div id="message_forward_email" style="display:none">
|
||||
<b>'.$this->l('E-mail').'</b> <input type="text" name="email" />
|
||||
</div>
|
||||
@ -622,7 +628,7 @@ class AdminCustomerThreads extends AdminTab
|
||||
<textarea name="message_forward" style="width: 500px; height: 80px; margin-top: 15px;" onclick="if ($(this).val() == \''.addslashes($this->l('You can add a comment here.')).'\') { $(this).val(\'\'); }">'.$this->l('You can add a comment here.').'</textarea><br />
|
||||
<input type="Submit" name="submitForward" class="button" value="'.$this->l('Forward this discussion').'" style="margin-top: 10px;" />
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
</form>';
|
||||
|
||||
if ($nextThread)
|
||||
@ -647,8 +653,8 @@ class AdminCustomerThreads extends AdminTab
|
||||
</a>');
|
||||
else
|
||||
echo $this->displayButton('
|
||||
<a href="'.$currentIndex.'&viewcustomer_thread&setstatus=1&id_customer_thread='.Tools::getValue('id_customer_thread').'&viewmsg&token='.$this->token.'">
|
||||
'.$this->l('Click here to disable pending status').'
|
||||
<a class="active" href="'.$currentIndex.'&viewcustomer_thread&setstatus=1&id_customer_thread='.Tools::getValue('id_customer_thread').'&viewmsg&token='.$this->token.'">
|
||||
<span class="anticon anticon-tick"></span> '.$this->l('In Pending 1').'
|
||||
</a>');
|
||||
|
||||
if ($thread->status != "pending2")
|
||||
@ -658,8 +664,8 @@ class AdminCustomerThreads extends AdminTab
|
||||
</a>');
|
||||
else
|
||||
echo $this->displayButton('
|
||||
<a href="'.$currentIndex.'&viewcustomer_thread&setstatus=1&id_customer_thread='.Tools::getValue('id_customer_thread').'&viewmsg&token='.$this->token.'">
|
||||
'.$this->l('Click here to disable pending status').'
|
||||
<a class="active" href="'.$currentIndex.'&viewcustomer_thread&setstatus=1&id_customer_thread='.Tools::getValue('id_customer_thread').'&viewmsg&token='.$this->token.'">
|
||||
<span class="anticon anticon-tick"></span> '.$this->l('In Pending 2').'
|
||||
</a>');
|
||||
|
||||
echo '<div class="clear"> </div>';
|
||||
|
115
css/admin.css
115
css/admin.css
@ -3297,7 +3297,88 @@ span.anticon{
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
/* styled-select */
|
||||
.styled-select {
|
||||
background: url(../img/arrow_select.png) no-repeat 96% -2px;
|
||||
height: 27px;
|
||||
overflow: hidden;
|
||||
width: 256px;
|
||||
}
|
||||
.styled-select select {
|
||||
background: transparent;
|
||||
border: none;
|
||||
font-size: 12px;
|
||||
height: 27px;
|
||||
padding: 5px;
|
||||
width: 268px;
|
||||
}
|
||||
.semi-square {
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.styled-select.bg-purple{
|
||||
background-color: rgba(86,84,133,0.9);
|
||||
}
|
||||
.styled-select.bg-purple select{
|
||||
color: #fff;
|
||||
}
|
||||
.styled-select.bg-purple-light{
|
||||
background-color: rgba(121,109,199,0.2);
|
||||
border: 1px solid #796dc7;
|
||||
}
|
||||
.styled-select.bg-rose{
|
||||
border: 1px solid #e36ea2;
|
||||
background: rgba(226,110,162,0.2);
|
||||
}
|
||||
.styled-select.bg-purple-light select,
|
||||
.styled-select.bg-rose select{
|
||||
color: #000;
|
||||
background: none!important;
|
||||
border: 0!important;
|
||||
}
|
||||
|
||||
/** CustomerThread **/
|
||||
form.form-forward-message{
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
form.form-forward-message label{
|
||||
line-height: 26px;
|
||||
font-size: 14px;
|
||||
padding: 0 5px 0 0;
|
||||
}
|
||||
form.form-forward-message #message_forward {
|
||||
padding: 5px;
|
||||
width: 510px;
|
||||
text-align: right;
|
||||
}
|
||||
form.form-forward-message textarea {
|
||||
border: 1px solid #000;
|
||||
}
|
||||
form.form-forward-message input:focus,
|
||||
form.form-forward-message textarea:focus {
|
||||
background-color: #F1F1F1;
|
||||
}
|
||||
form.form-forward-message .button {
|
||||
font-size: 14px;
|
||||
background-color: rgba(86,84,133,0.7);
|
||||
border: 1px solid #565485;
|
||||
border-left: 1px solid rgba(86,84,133,0.6);
|
||||
border-top: 1px solid rgba(86,84,133,0.6);
|
||||
color: rgba(255,255,255,0.9);
|
||||
padding: 5px 10px;
|
||||
}
|
||||
form.form-forward-message .button:hover {
|
||||
background-color: #565485;
|
||||
border: 1px solid rgba(86,84,133,0.6);
|
||||
border-left: 1px solid #565485;
|
||||
border-top: 1px solid #565485;
|
||||
color: #fff;
|
||||
}
|
||||
form.form-forward-message .button:focus{
|
||||
background-color: rgba(86,84,133,0.6);
|
||||
}
|
||||
|
||||
.btn-action-message{
|
||||
position:relative;
|
||||
float:left;
|
||||
@ -3324,17 +3405,21 @@ span.anticon{
|
||||
.btn-action-message p>span {
|
||||
color: #e36ea2;
|
||||
display: block;
|
||||
width: 100%;
|
||||
width: auto;
|
||||
height: 100%;
|
||||
line-height: 48px;
|
||||
padding-left: 10px;
|
||||
padding-right: 55px;
|
||||
text-align: left;
|
||||
}
|
||||
.btn-action-message p a.active,
|
||||
.btn-action-message:hover p a,
|
||||
.btn-action-message:hover p>span {
|
||||
color: #fff;
|
||||
}
|
||||
.btn-action-message p a.active{
|
||||
background: rgba(226,110,162,1);
|
||||
}
|
||||
.btn-action-message p span.anticon,
|
||||
.btn-action-message p a span.anticon{
|
||||
position: absolute;
|
||||
@ -3430,10 +3515,16 @@ span.anticon{
|
||||
.panel-message .more-info ul li{
|
||||
line-height: 16px;
|
||||
}
|
||||
.panel-message form label {
|
||||
width: auto;
|
||||
font-size: 14px;
|
||||
line-height: 22px;
|
||||
}
|
||||
.panel-content-message{
|
||||
border-radius: 4px;
|
||||
margin: 10px 0 0 0;
|
||||
padding: 5px 10px 10px;
|
||||
position: relative;
|
||||
}
|
||||
.panel-content-message.bg-rose{
|
||||
border: 1px solid #e36ea2;
|
||||
@ -3445,6 +3536,18 @@ span.anticon{
|
||||
border: 1px solid #796dc7;
|
||||
background: rgba(121,109,199,0.2);
|
||||
}
|
||||
.panel-content-message b{
|
||||
opacity: 1.2;
|
||||
font-size: 30px;
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
}
|
||||
.panel-content-message.bg-purple b{
|
||||
color: rgba(121,109,199,0.2);
|
||||
}
|
||||
.panel-content-message.bg-rose b{
|
||||
color: rgba(226,110,162,0.2);
|
||||
}
|
||||
.panel-message .btn-answer{
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
@ -3480,21 +3583,25 @@ span.anticon{
|
||||
margin-top: 5px;
|
||||
}
|
||||
.panel-answer,
|
||||
.panel-answer div {
|
||||
.panel-answer div:not(.styled-select) {
|
||||
width: 100%;
|
||||
}
|
||||
.panel-message select {
|
||||
/*.panel-message select {
|
||||
border: 1px solid #796dc7;
|
||||
background-color: rgba(121,109,199,0.2);
|
||||
}
|
||||
.panel-message select.bg-rose {
|
||||
border: 1px solid #e36ea2;
|
||||
background: rgba(226,110,162,0.2);
|
||||
}
|
||||
}*/
|
||||
.panel-answer textarea{
|
||||
width: 670px;
|
||||
height: 120px;
|
||||
}
|
||||
.panel-answer input:focus,
|
||||
.panel-answer textarea:focus {
|
||||
background-color: #F1F1F1;
|
||||
}
|
||||
.table.customerThread-table {
|
||||
width: 700px;
|
||||
border: 1px solid #565485;
|
||||
|
Loading…
Reference in New Issue
Block a user