<div id="info-profile"> <div class="subtitle-cont"> <div class="subtitle-profile"> MY PROFILE </div> <a href="/EditProfile" > <div id="edit-pen-div"> <img class="edit-pen" src=<?php echo $this->edit; ?>> </div> </a> </div> <div id="profile-pic-div"> <img class="profile-picture" src=<?php echo $this->image; ?>> </div> <div id="info-text"> <ol id="list-info"> <li><b><?php echo $this->username; ?></b></li> <li><?php echo $this->name; ?></li> <?php if($this->isdriver == 'Driver'): ?> <li><?php echo $this->isdriver; ?> | <?php for($i = 0; $i<floor($this->rating); $i++) { echo "?"; } ?> (<?php echo $this->rating; ?> rating from <?php echo $this->votes; ?> votes)</li> <?php endif; ?> <li><?php echo $this->email; ?></i></li> <li><?php echo $this->phone; ?></i></li> </ol> </div> </div> <div> <div class="subtitle-cont"> <?php if($this->isdriver == 'Driver'): ?> <div id="prefer-loc-title" class="subtitle-profile"> PREFERRED LOCATIONS: </div> <a href="/EditPrefLoc"> <div id="edit-pen-div"> <img class="edit-pen" src=<?php echo $this->edit; ?>> </div> </a> </div> <?php foreach ($this->preferredloc as $loc): ?> <div id="info-pref-text"> <span class="loc-list"><?php echo " " . $loc[1] ?><span> </div> <?php endforeach; ?> <?php endif; ?> </div>