Commit d8c5335a authored by Anatole Rakotoson's avatar Anatole Rakotoson
Browse files

sommom aress

parent 7526d2ea
......@@ -77,6 +77,10 @@
display: inline-block;
}
.effect-1:focus {
outline: none !important;
}
</style>
......@@ -129,15 +133,6 @@ if( isset(Yii::app()->session["costum"]["form"]["params"][$kunik]) ) {
}
}
if(count($paramsData["list"]) != 0){
foreach ($paramsData["list"] as $key => $value) {
// if($lbl == $key){
if($paramsData["tofill"][$value] == "cplx"){
var_dump($paramsData["placeholdersradio"][$value]);
}}}
if($mode == "r"){ ?>
<div class="col-xs-12" id="<?php echo $kunik ?>">
......@@ -149,8 +144,8 @@ if($mode == "r"){ ?>
?>
<div class="form-check">
<label class="form-check-label" for="<?php echo $key ?>"><h4 style="color: #043743;"><?php echo $label.$editQuestionBtn.$editParamsBtn ?></h4></label>
<div class="" style="padding-top: 30px;">
<label class="form-check-label" for="<?php echo $key ?>"><h4 style="color: <?php echo ($titleColor) ? $titleColor : "black"; ?>;"><?php echo $label.$editQuestionBtn.$editParamsBtn ?></h4></label>
<?php
if( !isset(Yii::app()->session["costum"]["form"]["params"][$kunik]['list']) ) {
......@@ -167,7 +162,7 @@ if($mode == "r"){ ?>
if(isset($answer["answers"][$form["id"]][$kunik]["value"]) && $answer["answers"][$form["id"]][$kunik]["value"] == $lbl)
$ckd = "checked";
?>
<tr class="thradio"><th>
<tr class="thradio"><th >
<input data-id="<?php echo $kunik ?>" class=" radioCo " id="<?php echo $kunik.$ix ?>" data-form='<?php echo $form["id"] ?>' <?php echo $ckd?> type="radio" name="<?php echo $kunik ?>"
data-type="<?php if(count($paramsData["tofill"]) != 0){
......@@ -186,20 +181,20 @@ if($mode == "r"){ ?>
value="<?php echo $lbl ?>" />
<label for="<?php echo $kunik.$ix ?>"><span></span><span><?php echo $lbl ?>
<div style="position: relative; display: inline-block;">
<?php if(count($paramsData["tofill"]) != 0){
foreach ($paramsData["tofill"] as $key => $value) {
if($lbl == $key && $value == "cplx"){
?>
<input class="effect-1 inputRadioCo" data-id="<?php echo $kunik ?>" data-form='<?php echo $form["id"] ?>' type="text" data-imp="<?php echo $key; ?>" placeholder="<?php echo $paramsData['placeholdersradio'][$key]; ?>" style="display: inline-block !important;"
<input class="effect-1 inputRadioCo" data-id="<?php echo $kunik ?>" data-form='<?php echo $form["id"] ?>' type="text" data-imp="<?php echo $key; ?>" placeholder="<?php echo $paramsData['placeholdersradio'][$key]; ?>" style="display: inline-block !important; position: relative;"
value="<?php
if(isset($answer["answers"][$form["id"]][$kunik]["textsup"]) && isset($answer["answers"][$form["id"]][$kunik]["value"]) && $answer["answers"][$form["id"]][$kunik]["value"] == $key ){
echo $answer["answers"][$form["id"]][$kunik]["textsup"] ;
} ?>"
>
<span class="focus-border"></span>
</div>
<?php
}
}
......
<style type="text/css">
.rdo-grp label {
cursor: pointer;
-webkit-tap-highlight-color: transparent;
padding: 6px 8px;
border-radius: 20px;
float: left;
transition: all 0.2s ease;
}
.input-grp label span:first-child {
position: relative;
display: inline-block;
vertical-align: middle;
width: 20px;
height: 20px;
background: #e8eaed;
/*background: rgba(125,100,247,0.06);*/
border-radius: 50%;
transition: all 0.2s ease;
margin-right: 8px;
}
.input-grp :hover {
background: rgba(125,100,247,0.06);
}
.effect-2{border: 0; padding: 7px 0; border-bottom: 2px solid #ccc;}
.effect-2 ~ .focus-border{position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: #3399FF; transition: 0.4s;}
.effect-2:focus ~ .focus-border{width: 100%; transition: 0.4s;}
.paramsonebtn , .paramsonebtnP {
font-size: 17px;
display: none;
padding: 5px;
}
.paramsonebtn:hover {
color: red;
}
.paramsonebtnP:hover {
color: blue;
}
.thradio:hover .paramsonebtn, .thradio:hover .paramsonebtnP {
display: inline-block;
}
.effect-2:focus {
outline: none !important;
}
</style>
<?php
$value = (!empty($answers)) ? " value='".$answers."' " : "";
$inpClass = "form-control";
if($type == "tags")
$inpClass = "select2TagsInput";
if($saveOneByOne)
$inpClass .= " saveOneByOne";
......@@ -17,12 +72,15 @@ if($mode == "r"){ ?>
<?php
}else{
?>
<div class="form-group">
<div class="input-grp" style="position: relative; padding-top: 30px;">
<label for="<?php echo $key ?>"><h4 style="color:<?php echo ($titleColor) ? $titleColor : "black"; ?>"><?php echo $label.$editQuestionBtn ?></h4></label>
<br/><input type="<?php echo (!empty($type)) ? $type : 'text' ?>" class="<?php echo $inpClass ?>" id="<?php echo $key ?>" aria-describedby="<?php echo $key ?>Help" placeholder="<?php echo (isset($placeholder)) ? $placeholder : '' ?>" data-form='<?php echo $form["id"] ?>' <?php echo $value ?> >
<br/>
<!-- <input type="" class="<?php echo $inpClass ?> effect-2 " id="<?php echo $key ?>" aria-describedby="<?php echo $key ?>Help" placeholder="<?php echo (isset($placeholder)) ? $placeholder : '' ?>" data-form='<?php echo $form["id"] ?>' <?php echo $value ?> >
<?php if(!empty($info)){ ?>
<small id="<?php echo $key ?>Help" class="form-text text-muted"><?php echo $info ?></small>
<?php } ?>
<?php } ?> -->
<input class="effect-2" type="text" placeholder="Placeholder Text" style="position: relative; width: 100%;">
<span class="focus-border"></span>
</div>
......
......@@ -162,6 +162,11 @@
//echo implode(",", $a["pointGPS"]);
echo '<span class="pull-right" style= "margin-right : 5px;"><a id="showActeurLocation" href="javascript:;" onclick=""><i class="fa fa-map-o" aria-hidden="true"></i></a></span>';
}
else if($i == "contact"){
if($canEdit){
echo $a[$i];
}
}
else if(is_array($a[$i])){
echo implode(",", $a[$i]);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment