示例#1
0
    ?>
" value="<?php 
    echo ewr_HtmlEncode($Page->timeta->SearchValue);
    ?>
" data-calendar="true" data-format="%d/%m/%Y"<?php 
    echo $Page->timeta->EditAttributes();
    ?>
>
</span>
	<span class="ewSearchCond btw1_timeta"><?php 
    echo $ReportLanguage->Phrase("AND");
    ?>
</span>
	<span class="ewSearchField btw1_timeta">
<?php 
    ewr_PrependClass($Page->timeta->EditAttrs["class"], "form-control");
    // PR8
    ?>
<input type="text" id="sv2_timeta" name="sv2_timeta" placeholder="<?php 
    echo $Page->timeta->PlaceHolder;
    ?>
" value="<?php 
    echo ewr_HtmlEncode($Page->timeta->SearchValue2);
    ?>
" data-calendar="true" data-format="%d/%m/%Y"<?php 
    echo $Page->timeta->EditAttributes();
    ?>
>
</span>
</div>
</div>
        ?>
<div id="fJop_Position_Vs_Job_Offered_Candidatessummary_SearchPanel" class="ewSearchPanel collapse<?php 
        echo $SearchPanelClass;
        ?>
">
<input type="hidden" name="cmd" value="search">
<div id="r_1" class="ewRow">
<div id="c_dateCreated" class="ewCell form-group">
	<label for="sv_dateCreated" class="ewSearchCaption ewLabel"><?php 
        echo $Page->dateCreated->FldCaption();
        ?>
</label>
	<span class="ewSearchField">
<?php 
        $Page->dateCreated->EditAttrs["onchange"] = "ewrForms(this).Submit(); " . @$Page->dateCreated->EditAttrs["onchange"];
        ewr_PrependClass($Page->dateCreated->EditAttrs["class"], "form-control");
        ?>
<select id="sv_dateCreated" name="sv_dateCreated"<?php 
        echo $Page->dateCreated->EditAttributes();
        ?>
>
<option value=""><?php 
        echo $ReportLanguage->Phrase("PleaseSelect");
        ?>
</option>
<?php 
        $cntf = is_array($Page->dateCreated->AdvancedFilters) ? count($Page->dateCreated->AdvancedFilters) : 0;
        $cntd = is_array($Page->dateCreated->DropDownList) ? count($Page->dateCreated->DropDownList) : 0;
        $totcnt = $cntf + $cntd;
        $wrkcnt = 0;
        if ($cntf > 0) {
示例#3
0
 function RenderButtonGroup($body)
 {
     // Get all hidden inputs
     // format: <input type="hidden" ...>
     //		$inputs = array();
     //		if (preg_match_all('/<input\s+([^>]*)>/i', $body, $inputmatches, PREG_SET_ORDER)) {
     //			foreach ($inputmatches as $inputmatch) {
     //				$body = str_replace($inputmatch[0], '', $body);
     //				if (preg_match('/\s+type\s*=\s*[\'"]hidden[\'"]/i', $inputmatch[0])) // Match type='hidden'
     //					$inputs[] = $inputmatch[0];
     //			}
     //		}
     // Get all buttons
     // format: <div class="btn-group">...</div>
     $btns = array();
     if (preg_match_all('/<div\\s+class\\s*=\\s*[\'"]btn-group[\'"]([^>]*)>([\\s\\S]*?)<\\/div\\s*>/i', $body, $btnmatches, PREG_SET_ORDER)) {
         foreach ($btnmatches as $btnmatch) {
             $body = str_replace($btnmatch[0], '', $body);
             $btns[] = $btnmatch[0];
         }
     }
     $links = '';
     // Get all links/buttons
     // format: <a ...>...</a> / <button ...>...</button>
     if (preg_match_all('/<(a|button)([^>]*)>([\\s\\S]*?)<\\/(a|button)\\s*>/i', $body, $matches, PREG_SET_ORDER)) {
         foreach ($matches as $match) {
             $tag = $match[1];
             if (preg_match('/\\s+class\\s*=\\s*[\'"]([\\s\\S]*?)[\'"]/i', $match[2], $submatches)) {
                 // Match class='class'
                 $class = $submatches[1];
                 $attrs = str_replace($submatches[0], '', $match[2]);
             } else {
                 $class = '';
                 $attrs = $match[2];
             }
             $caption = $match[3];
             if (strpos($class, 'btn btn-default') === FALSE) {
                 // Prepend button classes
                 ewr_PrependClass($class, 'btn btn-default');
             }
             if ($this->ButtonClass != "") {
                 ewr_AppendClass($class, $this->ButtonClass);
             }
             $attrs = ' class="' . $class . '" ' . $attrs;
             $link = '<' . $tag . $attrs . '>' . $caption . '</' . $tag . '>';
             $links .= $link;
         }
     }
     if ($links != "") {
         $btngroup = '<div class="btn-group ewButtonGroup">' . $links . '</div>';
     } else {
         $btngroup = "";
     }
     foreach ($btns as $btn) {
         $btngroup .= $btn;
     }
     //foreach ($inputs as $input)
     //	$btngroup .= $input;
     return $btngroup;
 }