Changeset 20
- Timestamp:
- Dec 26, 2018, 11:55:16 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Import/Amblar.php
r17 r20 53 53 else $MeetItem->Gender = Gender::Male; 54 54 $MeetItem->Name = trim(GetTextBetween($Item, '<span class="dwqa-author">', '</span>')); 55 $Type = trim(GetTextBetween($Item, ' ', ' ')); 56 if ($Type == 'odpovězeno') continue; 55 57 $MeetItem->Date = trim(GetTextBetween($Item, '<span class="dwqa-date">', '</span>')); 56 if ($MeetItem->Date == 'před 1 dní') $MeetItem->Date = strtotime("-1 days"); 57 else if ($MeetItem->Date == 'před 2 dny') $MeetItem->Date = strtotime("-2 days"); 58 else $MeetItem->Date = HumanDateToTime($MeetItem->Date); 58 if (mb_substr($MeetItem->Date, 0, 4) == 'před') 59 { 60 $Parts = explode(' ', $MeetItem->Date); 61 if ($Parts[2] == 'hours') $MeetItem->Date = strtotime("-".$Parts[1]." hours"); 62 else if ($Parts[2] == 'dní') $MeetItem->Date = strtotime("-".$Parts[1]." days"); 63 else if ($Parts[2] == 'dny') $MeetItem->Date = strtotime("-".$Parts[1]." days"); 64 } else $MeetItem->Date = HumanDateToTime($MeetItem->Date); 59 65 $MeetItem->Email = ''; 60 66 $MeetItem->Message = ''; -
trunk/Import/Csts.php
r19 r20 41 41 if ($MeetItem->Phone == 'neuveden') $MeetItem->Phone = ''; 42 42 $MeetItem->Link = ''; 43 print_r($MeetItem);44 43 $MeetItem->Database = $this->Database; 45 44 $MeetItem->Source = $this->Id; -
trunk/index.php
r19 r20 127 127 { 128 128 $this->NoFullPage = true; 129 if (array_key_exists('name', $_GET) ) $_SESSION['name'] = $_GET['name']; 130 if (array_key_exists('location', $_GET) ) $_SESSION['location'] = $_GET['location']; 131 if (array_key_exists('message', $_GET) ) $_SESSION['message'] = $_GET['message']; 129 132 if (array_key_exists('vekod', $_GET) ) $_SESSION['vekod'] = $_GET['vekod']; 130 133 if (array_key_exists('vekdo', $_GET) ) $_SESSION['vekdo'] = $_GET['vekdo']; … … 184 187 $Output .= '<h4 style="text-align: center;">Inzeráty:</h4>'; 185 188 $Output .= '<div class="btn-group ma3">'. 189 '<div class="label-box">Pohlaví</div>'. 186 190 '<button class="btn btn-filter cpohlavi btn-ico" onclick="upf(\'pohlavi\',0)" id="pohlavi0" data-toggle="tooltip" '. 187 'data-placement="top" title="Obě pohlaví"><span class="icon-both"></span></button>'.191 'data-placement="top" title="Obě"><span class="icon-both"></span></button>'. 188 192 '<button class="btn btn-filter cpohlavi btn-ico" onclick="upf(\'pohlavi\',1)" id="pohlavi1" data-toggle="tooltip" '. 189 'data-placement="top" title=" Jen muži"><span class="icon-man"></span></button>'.193 'data-placement="top" title="Muži"><span class="icon-man"></span></button>'. 190 194 '<button class="btn btn-filter cpohlavi btn-ico" onclick="upf(\'pohlavi\',2)" id="pohlavi2" data-toggle="tooltip" '. 191 'data-placement="top" title="Jen ženy"><span class="icon-woman"></span></button>'. 192 '</div>'; 195 'data-placement="top" title="Ženy"><span class="icon-woman"></span></button>'. 196 '</div> '; 197 $Output .= '<div class="filter-num-box">'. 198 '<div class="label-box">Jméno</div>'. 199 '<input value="'.$_SESSION['name'].'" onkeyup="if(event.keyCode!=9) upf(\'name\',$(this).val(),(event.keyCode==13?0:1)); '. 200 '" id="name" autocomplete="off" type="text">'. 201 '</div> '; 193 202 $Output .= '<div class="filter-num-box">'. 194 203 '<div class="label-box">Věk</div>'. … … 198 207 '<input value="'.$_SESSION['vekdo'].'" onkeyup="'. 199 208 'if(event.keyCode!=9) upf(\'vekdo\',$(this).val(),(event.keyCode==13?0:1));" '. 200 'id="vekdo" autocomplete="off" type="text"><div class="label-box">let</div></div>'. 209 'id="vekdo" autocomplete="off" type="text">'. 210 '<div class="label-box">let</div>'. 201 211 '</div> '; 202 212 $Output .= '<div class="filter-num-box">'. … … 207 217 '<input value="'.$_SESSION['vyskado'].'" onkeyup="'. 208 218 'if(event.keyCode!=9) upf(\'vyskado\',$(this).val(),(event.keyCode==13?0:1));" '. 209 'id="vyskado" autocomplete="off" type="text"><div class="label-box">cm</div></div>'. 219 'id="vyskado" autocomplete="off" type="text">'. 220 '<div class="label-box">cm</div>'. 210 221 '</div> '; 211 222 $Output .= '<div class="filter-num-box">'. … … 216 227 '<input value="'.$_SESSION['vahado'].'" onkeyup="'. 217 228 'if(event.keyCode!=9) upf(\'vahado\',$(this).val(),(event.keyCode==13?0:1));" '. 218 'id="vahado" autocomplete="off" type="text"><div class="label-box">cm</div></div>'. 219 '</div>'; 229 'id="vahado" autocomplete="off" type="text">'. 230 '<div class="label-box">Kg</div>'. 231 '</div> '; 232 $Output .= '<div class="filter-num-box">'. 233 '<div class="label-box">Umístění</div>'. 234 '<input value="'.$_SESSION['location'].'" onkeyup="if(event.keyCode!=9) upf(\'location\',$(this).val(),(event.keyCode==13?0:1)); '. 235 '" id="location" autocomplete="off" type="text">'. 236 '</div> '; 237 $Output .= '<div class="filter-num-box">'. 238 '<div class="label-box">Zpráva</div>'. 239 '<input value="'.$_SESSION['message'].'" onkeyup="if(event.keyCode!=9) upf(\'message\',$(this).val(),(event.keyCode==13?0:1)); '. 240 '" id="message" autocomplete="off" type="text">'. 241 '</div> '; 220 242 } 221 243 222 244 $Where = ''; 245 if (array_key_exists('name', $_SESSION) and ($_SESSION['name'] != '')) $Where .= ' AND (Name LIKE "%'.$_SESSION['name'].'%")'; 246 if (array_key_exists('location', $_SESSION) and ($_SESSION['location'] != '')) $Where .= ' AND (Location LIKE "%'.$_SESSION['location'].'%")'; 247 if (array_key_exists('message', $_SESSION) and ($_SESSION['message'] != '')) $Where .= ' AND (Message LIKE "%'.$_SESSION['message'].'%")'; 223 248 if (array_key_exists('vekod', $_SESSION) and ($_SESSION['vekod'] != '')) $Where .= ' AND (Age >= '.$_SESSION['vekod'].')'; 224 249 if (array_key_exists('vekdo', $_SESSION) and ($_SESSION['vekdo'] != '')) $Where .= ' AND (Age <= '.$_SESSION['vekdo'].')'; -
trunk/style.css
r7 r20 39 39 .btn-group .btn-filter{border-left:1px solid #e6e6e6} 40 40 .btn-group .btn-filter:first-child{border-left:none} 41 .btn-group div.label-box{display:inline-block;line-height:28px;font-size:13px;margin:0 4px;vertical-align:middle} 42 .btn-group{display:inline-block;background-color:#e0e0e0;padding:4px 4px;vertical-align:middle} 41 43 42 44 .filter-num-box{display:inline-block;background-color:#e0e0e0;padding:4px 4px;vertical-align:middle} … … 46 48 .filter-num-box input{width:40px;margin:0;border:0;text-align:center;padding:0 4px;line-height:25px;font-size:13px;vertical-align:middle} 47 49 48 .filter-num-box div.dropdown{display:inline-block;margin:0 4px;paddi g:0}50 .filter-num-box div.dropdown{display:inline-block;margin:0 4px;padding:0} 49 51 .filter-num-box div.dropdown.invi{display:none} 50 52 .filter-num-box div.dropdown .btn{background:#fff;margin:0;border:0;padding:0 8px;line-height:28px;font-size:13px;border-radius: 0} 51 53 .filter-num-box div.dropdown-menu a.dropdown-item{line-height:20px;font-size:13px} 54 55 .ma3{margin:3px} 52 56 53 57 .icon-both:before {
Note:
See TracChangeset
for help on using the changeset viewer.