2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

fix undefined variable, bootrapified operator files , edited styleshits

This commit is contained in:
Alex
2015-09-08 02:26:51 +03:00
parent f36b789908
commit ca8423bd7f
7 changed files with 236 additions and 666 deletions

View File

@@ -1,9 +1,3 @@
/** RESET **/
* {
margin: 0;
padding: 0;
}
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
@@ -16,6 +10,11 @@ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pr
vertical-align: baseline;
}
body {
text-align: justify;
font-family: Tahoma, Arial, Helvetica, sans-serif;
}
.clear {
clear:both;
font-size:0;
@@ -23,303 +22,12 @@ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pr
overflow:hidden;
}
body {
margin: 0px;
padding: 0;
background: #FFFFFF;
text-align: justify;
font-family: Tahoma, Arial, Helvetica, sans-serif;
}
#wrapper_e {
}
.full_height_wrapper{
margin: 0px;
padding: 0;
text-align: justify;
height:285px;
font-family: Tahoma, Arial, Helvetica, sans-serif;
min-width:1024px;
}
.half_height_wrapper{
margin: 0px;
padding: 0;
text-align: justify;
height:94px;
font-family: Tahoma, Arial, Helvetica, sans-serif;
min-width:1024px;
}
#top_page {
}
#top_page_in_e {
}
.full_height_top_page{
height: 207px;
}
.half_height_top_page{
height: 56px;
}
.full_height{
margin: 0px;
padding: 0;
background: #FFF;
text-align: justify;
font-family: Tahoma, Arial, Helvetica, sans-serif;
height: 271px;
padding-top:14px;
}
.half_height{
margin: 0px;
padding: 0;
background: #FFF;
text-align: justify;
font-family: Tahoma, Arial, Helvetica, sans-serif;
height: 80px;
padding-top:14px;
}
#header_line {
margin: 16px 0px 0px 12px;
padding: 0;
text-align: justify;
font-family: Tahoma, Arial, Helvetica, sans-serif;
height: 24px;
}
#menu_left_e {
}
.menu_full_height {
padding: 0;
height: 137px;
width:145px;
display:block;
float:left;
padding:9px 22px 0px 44px;
padding-left:44px;
padding-top:9px;
list-style:none;
}
.menu_half_height {
padding: 0;
height: 47px;
list-style:none;
width:145px;
display:block;
float:left;
padding:9px 22px 0px 44px;
padding-left:44px;
padding-top:9px;
}
#menu_left li {
list-style: none;
}
#item_1 a{
background: url(images/btn_field.jpg) no-repeat left top;
list-style: none;
display: inline;
float: left;
width: 220px;
height: 40px;
color:#9f9f9f;
text-decoration:none;
padding:8px 0px 0px 18px;
border:none;
}
#item_1 a:hover{
list-style: none;
display: inline;
float: left;
width: 220px;
height: 40px;
text-decoration:none;
color:#49b848;
}
#item_2_e a{
}
.item_2_full_height a{
background: url(images/btn_field.jpg) no-repeat left top;
list-style: none;
display: inline;
float: left;
width: 220px;
height: 36px;
text-decoration:none;
color:#9f9f9f;
padding:8px 0px 0px 18px;
border:none;
}
.item_2_half_height a{
float: left;
width: 220px;
height: 1px;
text-decoration:none;
color:#b8b8ba;
display:none;
}
.item_2_full_height a:hover{
list-style: none;
display: inline;
float: left;
width: 220px;
height: 36px;
text-decoration:none;
color:#05b0f7;
background: url(images/btn_field.jpg) no-repeat left top;
}
#item_2_e a:hover{
}
.item_2_half_height {
float: left;
width: 220px;
height: 1px;
display:none;
}
#item_3_e a{
}
.item_3_half_height {
float: left;
width: 220px;
height: 1px;
display:none;
}
.item_3_full_height a{
background: url(images/btn_field.jpg) no-repeat left top;
list-style: none;
display: inline;
float: left;
width: 220px;
height: 36px;
text-decoration:none;
color:#9f9f9f;
padding:8px 0px 0px 18px;
border:none;
}
.item_3_half_height a{
}
.item_3_full_height a:hover{
list-style: none;
display: inline;
float: left;
width: 220px;
height: 36px;
text-decoration:none;
color:#ff3506;
}
#item_3_e a:hover{
}
#info_e {
}
.info_full_height{
margin: 0px;
padding: 0;
background: #CCC;
border: 1px solid #e9e9eb;
text-align: justify;
font-family: Tahoma, Arial, Helvetica, sans-serif;
display:block;
float:left;
height: 137px;
width:214px;
padding-right:115px;
}
.info_half_height{
margin: 0px;
padding: 0;
background: #CCC;
border: 1px solid #e9e9eb;
text-align: justify;
font-family: Tahoma, Arial, Helvetica, sans-serif;
display:block;
float:left;
height: 56px;
width:214px;
padding-right:115px;
}
a:active {
/* border: 4px inset;*/
}
#arrow_up_e {
}
.arrow_up_full_height {
margin: 0 auto;
padding: 0;
background: #EEE;
background: url(images/arrow_up.png) no-repeat left top;
text-align: justify;
font-family: Tahoma, Arial, Helvetica, sans-serif;
height: 20px;
width:20px;
position:absolute;
left:480px;
top:270px;
}
.arrow_up_half_height {
display:none;
}
#arrow_down_e {
}
.arrow_down_full_height {
display:none;
}
.arrow_down_half_height {
margin: 0 auto;
padding: 0;
background: #EEE;
background: url(images/arrow_down.jpg) no-repeat left top;
text-align: justify;
font-family: Tahoma, Arial, Helvetica, sans-serif;
height: 20px;
width:20px;
left:480px;
top:80px;
position:absolute;
}
#bottom_page {
margin: 0px;
padding: 0;
background: #CCC;
text-align: justify;
font-family: Tahoma, Arial, Helvetica, sans-serif;
height: 100%;
}
.headerexpand {
position: absolute;
height: 20px;
bottom: 0px;
right: 20%;
}
#headerexpandimage {
height: 15px;
left: 41%;
}
.box {
margin: 18px;
}
@@ -329,160 +37,19 @@ a:active {
.offline {
background: #FF0000;
}
a {
/*padding: 3px 0.5em;
margin-left: 3px;
border: 1px solid #778;
background: #DDE;
text-decoration: none;
color: black;*/
}
a:active {
/* border: 4px inset;*/
}
.header {
position : absolute;
width : 50%;
height : 30%;
top : 30%;
right : 0;
bottom : auto;
left : 0;
/*max-height:136px;*/
}
#calllist {
position : absolute;
width : 50%;
height : 28%;
top : 2%;
left : 48%;
right : 1%;
/*max-height:180px;*/
bottom : auto;
}
#qstatus {
position : absolute;
width : 30%;
height : 30%;
top : 2%;
right : 2%;
left: 17%;
bottom : auto;
/*max-height:38%;*/
}
#casefunctions {
position : absolute;
width : 12%;
height : 30%;
top : 0;
right : 0;
left: 0;
font-size:18px;
padding:1%;
bottom : auto;
}
#casefunctions li {
list-style:none;
}
#content {
position : absolute;
top : 31%;
left : 0.5%;
right :0.5%;
bottom : auto;
width : 99%;
height : 69%;
}
.embeddedobject {
width:100%;
height:100%;
position:absolute;
}
#main-qstatus {
width:95%;
/*max-height:116px;*/
position:absolute;
left:3%;
top:1%;
height:90%;
border: 2px solid #e9e9eb;
border-radius: 15px;
-moz-border-radius: 15px;
}
#main-casenotes{
height:85%;
}
#main-contactdetails{
/*height:85%;*/
}
#main-calllist{
/*height:85%;*/
}
#main-appointmentlist{
height:85%;
}
#main-projectinfo{
height:85%;
}
.wait_wrapper{
margin: 0 auto;
position:absolute;
top:40%;
height:60%;
width:260px;
left:40%;
list-style:none;
}
.wait_li_1 a{
background: url(images/btn_field.jpg) no-repeat left top;
list-style: none;
display: inline;
float: left;
width: 220px;
height: 40px;
color:#9f9f9f;
text-decoration:none;
padding:8px 0px 0px 18px;
border:none;
margin-bottom: 20px;
}
.wait_li_1 a:hover{
list-style: none;
display: inline;
float: left;
width: 220px;
height: 40px;
text-decoration:none;
color:#49b848;
}
.wait_li_2 a{
background: url(images/btn_field.jpg) no-repeat left top;
list-style: none;
display: inline;
float: left;
width: 220px;
height: 40px;
color:#9f9f9f;
text-decoration:none;
padding:8px 0px 0px 18px;
border:none;
}
.wait_li_2 a:hover{
list-style: none;
display: inline;
float: left;
width: 220px;
height: 40px;
text-decoration:none;
color:#ff3506;
}

View File

@@ -84,7 +84,7 @@ ul.tabbernav li.tabberactive a:hover
Add style only after the tabber interface is set up (.tabberlive)
--------------------------------------------------*/
.tabberlive .tabbertab {
position:absolute;
/*position:absolute;*/
border: 2px solid #e9e9eb;
border-bottom-left-radius: 15px;
-moz-border-radius-bottomleft: 15px;

View File

@@ -200,7 +200,7 @@ else if (HEADER_EXPANDER_MANUAL)
}
xhtml_head(T_("Case"), $body, array("include/bootstrap/css/bootstrap.min.css","css/index_interface2.css","css/tabber_interface2.css","include/jquery-ui/jquery-ui.min.css") , $js);
xhtml_head(T_("Case"), $body, array("include/bootstrap/css/bootstrap.min.css","include/bootstrap/css/bootstrap-theme.min.css","include/font-awesome/css/font-awesome.css","css/index_interface2.css","css/tabber_interface2.css","include/jquery-ui/jquery-ui.min.css"),$js,false,false, false,false,false);
print $script;
$case_id = get_case_id($operator_id,true);
@@ -217,138 +217,140 @@ $ref = $scr['referral'];
$availability = is_using_availability($case_id);
?>
<div id="casefunctions" class="col-sm-2">
<ul id="casefunctions" class="header ">
<li id="item_1"><a href="javascript:poptastic('call_interface2.php');"><?php echo T_("Outcome"); ?> <img src="css/images/play.jpg" /></a></li>
<li id="item_2_e" class="item_2_full_height"><a href="javascript:poptastic('appointment.php');"><?php echo T_("Appointment"); ?><img src="css/images/plius.jpg" /></a></li>
<?php if ($sc == 1) { ?>
<li id='item_4_e' class="item_2_full_height"><a href="javascript:poptastic('email.php?interface2=true');"><?php echo T_("Email"); ?> <img src="css/images/plius.jpg" /></a></li>
<?php } ?>
<?php if ($ref == 1) { ?>
<li id='item_5_e' class="item_2_full_height"><a href="javascript:poptastic('referral.php?interface2=true');"><?php echo T_("Referral"); ?> <img src="css/images/plius.jpg" /></a></li>
<?php } ?>
<li id="item_3_e" class="item_3_full_height"><a href="?endwork=endwork"><?php echo T_("End work"); ?> <img src="css/images/end.jpg" /></a></li>
</ul>
</div>
<div class="container-fluid ">
<div class="row ">
<div id="qstatus" class="header col-sm-4">
<?php xhtml_object("status_interface2.php","main-qstatus");?>
<?php if (HEADER_EXPANDER_MANUAL){ ?> <div class='headerexpand'><img id='headerexpandimage' src='./images/arrow-up-2.jpg' alt='<?php echo T_('Arrow for expanding or contracting'); ?>'/></div> <?php } ?>
</div>
<div id="casefunctions" class="col-sm-2 panel-body">
<a href="javascript:poptastic('call_interface2.php');" class="btn btn-default btn-block" style="border-radius:15px; color:blue"><strong><?php echo T_("Outcome"); ?> <i class="fa fa-lg fa-check-square-o fa-fw"></i></strong></a></br>
<a href="javascript:poptastic('appointment.php');" class="btn btn-default btn-block " style="border-radius:15px; color:green"><strong><?php echo T_("Appointment"); ?> <i class="fa fa-lg fa-clock-o fa-fw"></i></strong></a></br>
<?php if ($sc == 1) { ?>
<a href="javascript:poptastic('email.php?interface2=true');" class="btn btn-default btn-block" style="border-radius:15px; color:blue"><strong><?php echo T_("Email"); ?> <i class="fa fa-lg fa-envelope-o fa-fw"></i></strong></a></br>
<?php } ?>
<?php if ($ref == 1) { ?>
<a href="javascript:poptastic('referral.php?interface2=true');" class="btn btn-default btn-block" style="border-radius:15px; color:blue"><strong><?php echo T_("Referral"); ?> <i class="fa fa-lg fa-link fa-fw"></i></strong></a></br>
<?php } ?>
<a href="?endwork=endwork"; class="btn btn-default btn-block" style="border-radius:15px; color:red"><strong><?php echo T_("End work"); ?> <i class="fa fa-lg fa-ban fa-fw"></i></strong></a>
<div id="calllist" class="header col-sm-6">
</div>
<div id="qstatus" class="col-sm-3 panel-body">
<?php xhtml_object("status_interface2.php","main-qstatus", "col-sm-12" );?>
</div>
<div class="tabber" id="tab-main">
<?php if (HEADER_EXPANDER_MANUAL){ ?><div class="headerexpand"><i id='headerexpandimage' class="fa fa-lg fa-toggle-down fa-fw" title='<?php echo T_('Arrow for expanding or contracting'); ?>'></i></div> <?php } ?>
<?php if (TAB_CASENOTES) { ?>
<div id="calllist" class="col-sm-7">
<div class="tabber" id="tab-main">
<?php
if (isset($appointment)) {} else {$appointment = "";}
if (TAB_CASENOTES) { ?>
<div class="tabbertab <?php if ((DEFAULT_TAB == 'casenotes' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'casenotes' && $appointment))
print "tabbertabdefault"; ?>">
<h2><?php echo T_("Notes"); ?></h2>
<div id="div-casenotes" class="tabberdiv"><?php xhtml_object("casenote.php","main-casenotes");?></div>
<div id="div-casenotes" class="tabberdiv"><?php xhtml_object("casenote.php","main-casenotes","col-sm-12");?></div>
</div>
<?php }?>
<?php }?>
<?php if ($availability) { ?>
<?php if ($availability) { ?>
<div class="tabbertab <?php if ((DEFAULT_TAB == 'availability' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'availability' && $appointment))
print "tabbertabdefault"; ?>">
<h2><?php echo T_("Availability"); ?></h2>
<div id="div-casenotes" class="tabberdiv"><?php xhtml_object("availability.php","main-casenotes");?></div>
<div id="div-casenotes" class="tabberdiv"><?php xhtml_object("availability.php","main-availability","col-sm-12");?></div>
</div>
<?php }?>
<?php }?>
<?php if (TAB_CONTACTDETAILS) { ?>
<?php if (TAB_CONTACTDETAILS) { ?>
<div class="tabbertab <?php if ((DEFAULT_TAB == 'contactdetails' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'contactdetails' && $appointment))
print "tabbertabdefault"; ?>">
<h2><?php echo T_("Contact details"); ?></h2>
<div id="div-contactdetails" class="tabberdiv"><?php xhtml_object("contactdetails.php","main-contactdetails");?></div>
<div id="div-contactdetails" class="tabberdiv"><?php xhtml_object("contactdetails.php","main-contactdetails","col-sm-12");?></div>
</div>
<?php }?>
<?php }?>
<?php if (TAB_CALLLIST) { ?>
<?php if (TAB_CALLLIST) { ?>
<div class="tabbertab <?php if ((DEFAULT_TAB == 'calllist' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'calllist' && $appointment))
print "tabbertabdefault"; ?>">
<h2><?php echo T_("Call history"); ?></h2>
<div id="div-calllist" class="tabberdiv"><?php xhtml_object("calllist.php","main-calllist");?></div>
<div id="div-calllist" class="tabberdiv"><?php xhtml_object("calllist.php","main-calllist","col-sm-12");?></div>
</div>
<?php }?>
<?php }?>
<?php if (TAB_SHIFTS) { ?>
<?php if (TAB_SHIFTS) { ?>
<div class="tabbertab <?php if ((DEFAULT_TAB == 'shifts' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'shifts' && $appointment))
print "tabbertabdefault"; ?>" id="tab-shifts">
<h2><?php echo T_("Shifts"); ?></h2>
<div id="div-shifts" class="tabberdiv"><?php xhtml_object("shifts.php","main-shifts");?></div>
<div id="div-shifts" class="tabberdiv"><?php xhtml_object("shifts.php","main-shifts","col-sm-12");?></div>
</div>
<?php }?>
<?php }?>
<?php if (TAB_APPOINTMENTLIST) { ?>
<?php if (TAB_APPOINTMENTLIST) { ?>
<div class="tabbertab <?php if ((DEFAULT_TAB == 'appointmentlist' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'appointmentlist' && $appointment))
print "tabbertabdefault"; ?>">
<h2><?php echo T_("Appointments"); ?></h2>
<div id="div-appointmentlist" class="tabberdiv"><?php xhtml_object("appointmentlist.php","main-appointmentlist");?></div>
<div id="div-appointmentlist" class="tabberdiv"><?php xhtml_object("appointmentlist.php","main-appointmentlist","col-sm-12");?></div>
</div>
<?php }?>
<?php }?>
<?php if (TAB_PERFORMANCE) { ?>
<?php if (TAB_PERFORMANCE) { ?>
<div class="tabbertab <?php if ((DEFAULT_TAB == 'performance' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'performance' && $appointment))
print "tabbertabdefault"; ?>">
<h2><?php echo T_("Performance"); ?></h2>
<div id="div-performance" class="tabberdiv"><?php xhtml_object("performance.php","main-performance");?></div>
<div id="div-performance" class="tabberdiv"><?php xhtml_object("performance.php","main-performance","col-sm-12");?></div>
</div>
<?php }?>
<?php }?>
<?php if (TAB_CALLHISTORY) { ?>
<?php if (TAB_CALLHISTORY) { ?>
<div class="tabbertab <?php if ((DEFAULT_TAB == 'callhistory' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'callhistory' && $appointment))
print "tabbertabdefault"; ?>">
<h2><?php echo T_("Work history"); ?></h2>
<div id="div-callhistory" class="tabberdiv"><?php xhtml_object("callhistory.php","main-callhistory");?></div>
<div id="div-callhistory" class="tabberdiv"><?php xhtml_object("callhistory.php","main-callhistory","col-sm-12");?></div>
</div>
<?php }?>
<?php }?>
<?php if (TAB_PROJECTINFO) { ?>
<?php if (TAB_PROJECTINFO) { ?>
<div class="tabbertab <?php if ((DEFAULT_TAB == 'projectinfo' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'projectinfo' && $appointment))
print "tabbertabdefault"; ?>">
<h2><?php echo T_("Project information"); ?></h2>
<div id="div-projectinfo" class="tabberdiv"><?php xhtml_object("project_info.php","main-projectinfo");?></div>
<div id="div-projectinfo" class="tabberdiv"><?php xhtml_object("project_info.php","main-projectinfo","col-sm-12");?></div>
</div>
<?php }?>
<?php }?>
<?php if (TAB_INFO) { ?>
<?php if (TAB_INFO) { ?>
<div class="tabbertab <?php if ((DEFAULT_TAB == 'info' && !$appointment) || (DEFAULT_TAB_APPOINTMENT == 'info' && $appointment))
print "tabbertabdefault"; ?>">
<h2><?php echo T_("Info"); ?></h2>
<div id="div-info" class="tabberdiv"><?php xhtml_object("info.php","main-info");?></div>
<div id="div-info" class="tabberdiv"><?php xhtml_object("info.php","main-info","col-sm-12");?></div>
</div>
<?php }?>
<?php }?>
</div>
</div>
</div>
</div>
</div>
<div id="content" class="content ">
<?php
<div class="row">
$ca = get_call_attempt($operator_id,true);
$call_id = get_call($operator_id);
$appointment = false;
if ($ca)
{
<?php
$ca = get_call_attempt($operator_id,true);
$call_id = get_call($operator_id);
$appointment = false;
if ($ca)
{
$appointment = is_on_appointment($ca);
$respondent_id = get_respondent_id($ca);
}
}
if (!$call_id)
{
if (!$call_id)
{
if ($appointment)
{
//create a call on the appointment number
@@ -405,24 +407,25 @@ if (!$call_id)
}
$call_id = get_call($operator_id,$respondent_id,$contact_phone_id,true);
}
}
}
if (!is_respondent_selection($operator_id))
if (!is_respondent_selection($operator_id))
$data = get_limesurvey_url($operator_id);
else
else
$data = get_respondentselection_url($operator_id,true,true); //use second interface
xhtml_object($data,"main-content");
xhtml_object($data,"main-content", "embeddedobject content");
?>
?>
</div>
</div>
<?php
xhtml_foot();
//if ($db->HasFailedTrans()){ print "<p>FAILED AT END of index</p>"; exit();}
$db->CompleteTrans();

View File

@@ -1,20 +1,17 @@
function headerexpand()
{
$(".header").css("height","38%");
$(".content").css("height","60%");
$(".content").css("top","40%");
$(".headerexpand").css("top","35%");
$(".content").css("height","63%");
$(".content").css("top","37%");
$(".box:not(.important)").css("display","");
// $(".item_2_half_height").removeClass("item_2_half_height").addClass("item_2_full_height");
$(".item_3_half_height").removeClass("item_3_half_height").addClass("item_3_full_height");
}
function headercontract()
{
$(".header").css("height","13%");
$(".content").css("height","85%");
$(".content").css("top","15%");
$(".headerexpand").css("top","18%");
$(".content").css("height","80%");
$(".content").css("top","20%");
$(".box:not(.important)").css("display","none");
// $(".item_2_full_height").removeClass("item_2_full_height").addClass("item_2_half_height");
$(".item_3_full_height").removeClass("item_3_full_height").addClass("item_3_half_height");
}

View File

@@ -6,20 +6,20 @@ $(document).ready(function(){
function headerforcecontract()
{
$("#headerexpandimage").attr('src',"./images/arrow-down-2.jpg");
$("#headerexpandimage").attr('class',"fa fa-lg fa-fw fa-toggle-down ");
headercontract();
}
function headertogglemanual()
{
if ($("#headerexpandimage").attr('src') == './images/arrow-up-2.jpg')
if ($("#headerexpandimage").attr('class') == 'fa fa-lg fa-fw fa-toggle-up')
{
$("#headerexpandimage").attr('src',"./images/arrow-down-2.jpg");
$("#headerexpandimage").attr('class',"fa fa-lg fa-fw fa-toggle-down");
headercontract();
}
else
{
$("#headerexpandimage").attr('src',"./images/arrow-up-2.jpg");
$("#headerexpandimage").attr('class',"fa fa-lg fa-fw fa-toggle-up");
headerexpand();
}

View File

@@ -215,18 +215,20 @@ if ($ca)
//Display all available numbers for this case as a list of radio buttons
//By default, the selected radio button should have a "call" started for it
//When then next one clicked, it should bring up call screen if no outcome otherwise start new call
print "<div>";
//print "<div>";print "</div>";
foreach($rs as $r)
{
print "<form method='post' action='?'><div class='text'>";
print "<input onclick='this.form.submit();' type='radio' name='contactphone' value='{$r['contact_phone_id']}' id='contactphone{$r['contact_phone_id']}' {$r['checked']}/>";
print "<label for='contactphone{$r['contact_phone_id']}'>{$r['phone']}";
if ($r['checked']) print "&emsp;<a href='callto:{$r['phone']}'>" . T_('Dial') . "</a>";
print "<form method='post' action='?'>
<p>
<input onclick='this.form.submit();' type='radio' name='contactphone' value='{$r['contact_phone_id']}' id='contactphone{$r['contact_phone_id']}' {$r['checked']}/>&ensp;
<label for='contactphone{$r['contact_phone_id']}'>{$r['phone']}";
if ($r['checked']) print "&emsp;<a href='callto:{$r['phone']}'><i class='fa fa-phone fa-fw'></i> " . T_('Dial') . "</a>";
if (!empty($r['description'])) print " - " . $r['description'];
print "</label>";
print "</div></form></br>";
print "</label>
</p>
</form>";
}
print "</div>";
}
else
print "<div class='text'>" . T_("No more numbers to call") . "</div>";

View File

@@ -46,7 +46,7 @@ include ("auth-interviewer.php");
*/
include_once("functions/functions.xhtml.php");
xhtml_head(T_("Standby"),false,array("include/bootstrap/css/bootstrap.min.css","css/index_interface2.css"), array(), false, 300);
xhtml_head(T_("Standby"),false,array("include/bootstrap/css/bootstrap.min.css","include/bootstrap/css/bootstrap-theme.min.css","include/font-awesome/css/font-awesome.css","css/index_interface2.css"), array(), false, 300);
if (isset($_GET['auto']))
{
@@ -91,7 +91,7 @@ if (empty($rs))
else
{
print "<div class='col-sm-3'>";
print "<div class='col-sm-4'>";
print "<div class=' well' style='padding:2%;'><p>" . T_("Assigned questionnaires:") . "";
/* if (isset($_GET['auto'])) {
@@ -191,13 +191,14 @@ else
}
?>
<div id="">
<ul class="wait_wrapper">
<?php if ($cases_count['count_samples'] > 0 or $new_samples['count_samples'] > 0){ ?>
<li class="wait_li_1"><a href="index_interface2.php"><?php echo T_("Get a new case"); ?> <img src="css/images/play.jpg" /></a></li>
<div class="col-sm-3 col-sm-offset-1" style="top: 150px;">
<?php if ((isset($cases_count['count_samples']) && $cases_count['count_samples'] > 0) or (isset($new_samples['count_samples']) && $new_samples['count_samples'] > 0)){ ?>
<a href="index_interface2.php" class="btn btn-default btn-lg btn-block" style="border-radius:25px; color:blue"><?php echo T_("Get a new case"); ?> <i class="fa fa-lg fa-play fa-fw"></i></a>
</br>
<?php } ?>
<li class="wait_li_2"><a href="endwork.php"><?php echo T_("End work"); ?> <img src="css/images/end.jpg" /></a></li>
</ul>
<a href="endwork.php" class="btn btn-default btn-lg btn-block" style="border-radius:25px; color:red;"><?php echo T_("End work"); ?> <i class="fa fa-lg fa-ban fa-fw "></i></a>
</div>
<?php