BlakeSaint |
Дата: Четверг, 20.07.2017, 00:26 | Сообщение # 34
|
Новичок
Сообщений: 3
Статус: Offline
|
Вопрос: - Как сделать чтобы показывало скин в ЛК, если в павно использован sscanf? Я указал в показе скину переменную "MODEL" - она отвечает за показ фракционного скина, но не пойму как изменить на переменную в БД "SKINS" - которая отвечает за скин гардероба Приложения(Скриншоты/код скрипта и т.д.): -<?php include 'include/head.php';?> <body class="inner-page"> <aside id="fh5co-hero" style="background-image: url(/assets/image/hero4.jpg);"> <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="fh5co-hero-wrap"> <div class="fh5co-hero-intro"> <h2>Добро пожаловать<span></span></h2> <h1><?=$u['Name']; ?></h1> </div> </div> </div> </div> </div> </aside>
<div id="fh5co-main"> <section> <div class="container"> <div class="row">
<hr class="fh5co-spacer fh5co-spacer-sm">
<div class="col-md-12"> <center><div class="fh5co-spacer fh5co-spacer-sm"></div> <?php if (isset($error)): ?> <div class="col-md-12 fh5co-feature-item">
<h2 class="h4 fh5co-feature-title"><span class="fh5co-feature-icon"><i class="ti-shield"></i></span> <?=$error;?></h2> </div> </center> <?php endif;?> <div id="fh5co-tab-feature-vertical" class="fh5co-tab"> <ul class="resp-tabs-list hor_1"> <li><i class="fh5co-tab-menu-icon ti-blackboard"></i>Статистика персонажа</li> <li><i class="fh5co-tab-menu-icon ti-unlock"></i>Настройки аккаунта</li> </ul> <div class="resp-tabs-container hor_1"> <div> <div class="row"> <center><div class="col-md-6"> <img width="150" src="/assets/image/skin/<?=$u['Model'];?>.png"/> </div></center> <div class="col-md-6"> <p> <table class="table"> <tr><td>Пол</td><td><?php $sex = array ( '0' => 'Мужской', '1' => 'Женский' ); echo $sex[$u['Sex']]; ?></td></tr> <tr><td>Уровень</td><td><?=$u['Level'];?></td></tr> <tr><td>До следющего</td><td><?=$u['Level'] * 6;?> часов</td></tr> <tr><td>Бизнес</td><td><?=$biz;?></td></tr> <tr><td>Дом</td><td><?=$home;?></td></tr> <tr><td>Организация</td><td><?php if($frac['fText']) { echo $frac['fText']; } else { echo 'Отсутсвует'; } ?></td></tr> <tr><td>Ранг</td><td><?=$u['Rank'] == 0 ? 'Отсутствует' : $u['Rank'];?></td></tr> <tr><td>Банковский счёт</td><td><?=$u['Bank'];?>$</td></tr> <tr><td>Наличка</td><td><?=$u['Cash'];?>$</td></tr> <tr><td>Варны</td><td><?=$u['Warn'];?></td></tr> <tr><td>Репутация </td><td><?=$u['MyRp'];?></td></tr> </table> </p> </div> <h2> Автомобили </h2> <?php foreach($car as $car) { $carname = array ( -400 => "Отсутствует", "Landstalker", "Bravura", "Buffalo", "Linerunner", "Pereniel", "Sentinel", "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus", "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam", "Esperanto", "Taxi", "Washington", "Bobcat", "Mr Whoopee", "BF Injection", "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder", "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van", "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale", "Oceanic", "Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy", "Hermes", "Sabre", "Rustler", "ZR3 50", "Walton", "Regina", "Comet", "BMX", "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper", "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking", "Blista Compact", "Police Maverick", "Boxville", "Benson", "Mesa", "RC Goblin", "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropdust", "Stunt", "Tanker", "RoadTrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra", "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune", "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington", "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent", "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder", "Primo", "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite", "Windsor", "Monster A", "Monster B", "Uranus", "Jester", "Sultan", "Stratum", "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito", "Freight", "Trailer", "Kart", "Mower", "Duneride", "Sweeper", "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400", "Newsvan", "Tug", "Trailer A", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club", "Trailer B", "Trailer C", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car (LSPD)", "Police Car (SFPD)", "Police Car (LVPD)", "Police Ranger", "Picador", "S.W.A.T. Van", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage Trailer A", "Luggage Trailer B", "Stair Trailer", "Boxville", "Farm Plow", "Utility Trailer"); echo '<img width="150" src="/assets/image/cars/'.$car['Model'].'.jpg">'; }; ?> </div> </div> <div> <div class="row"> <div class="col-md-6"> <h2> Смена пароля </h2> <form action="/profile/" method="post"> <div class="col-md-12"> <div class="form-group"> <label for="email" class="sr-only">Старый пароль</label> <input placeholder="Укажите старый пароль" id="email" name="oldPass" type="text" class="form-control input-lg" required> </div> </div> <div class="col-md-12"> <div class="form-group"> <label for="email" class="sr-only">Укажите новый пароль</label> <input placeholder="Укажите новый пароль" name="newPass" id="email" type="text" class="form-control input-lg" required> </div> </div> <div class="col-md-12"> <div class="form-group"> <input type="submit" class="btn btn-primary btn-lg " value="Изменить пароль"> </div> </div> </form> <h2> Смена почты </h2> <form action="/profile/" method="post"> <div class="col-md-12"> <div class="form-group"> <label for="email" class="sr-only">Укажите новую почту</label> <input placeholder="Укажите новую почту" name="newmail" type="email" class="form-control input-lg" required> </div> </div> <div class="col-md-12"> <div class="form-group"> <input type="submit" class="btn btn-primary btn-lg " value="Изменить почту"> </div> </div> </form> <h2> Смена защитного кода</h2> <p>Если защита не была установлена, тогда вы можете установить код, поле `старый код` оставляем пустым.</p> <form action="/profile/" method="post"> <div class="col-md-12"> <div class="form-group"> <label for="email" class="sr-only">Укажите старый код</label> <input placeholder="Укажите старый код" name="oldip" type="text" class="form-control input-lg"> </div> <div class="form-group"> <label for="email" class="sr-only">Укажите новый код</label> <input placeholder="Укажите новый код" name="newip" type="text" class="form-control input-lg" required> </div> </div> <div class="col-md-12"> <div class="form-group"> <input type="submit" class="btn btn-primary btn-lg " value="Изменить код"> </div> </div> </form> </div> </div> </div> </div> </div> </div> <div class="fh5co-spacer fh5co-spacer-md"></div> <!-- END Tabs --> </div> </div> </section> <section> <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset-2 text-center fh5co-lead-wrap"> <p><a href="/logout/" class="btn btn-outline btn-lg">Выйти из аккаунта</a></p> </div>
</div> <div class="fh5co-spacer fh5co-spacer-xxs"></div> </div> </section>
<?php include 'include/footer.php';?>
|
|
|
|