</div> </div> <div class="row" style="margin-bottom: 1em;"> <div class="col-xs-4">Сортировщик:</div> <div class="col-xs-8"><?php echo getLinkToUserProfile($v->labler_id); ?> </div> </div> </div> </div> </div> <?php if ($user['rankname'] == 'admin') { $pkgColor = getPkgColor($v->id); ?> <div class="panel panel-default"> <div class="panel-heading"><strong class="panel-title">Цвет</strong></div> <div class="panel-body"> <input style="position:absolute;left:-1000px;" type="color" name="color" id="profile-color" value="<?php echo !empty($userProfile->color) ? $userProfile->color : '#ffffff'; ?> " onchange="$('#selected-color').css({'background-color':$(this).val()});"> <label for="profile-color" class="auto-tip" data-title="Selected color" data-position="bottom" data-placement="bottom"><div style="display:inline-block;background-color: <?php echo $pkgColor; ?> ;width:20px;height:18px;border:1px solid black;" id="selected-color"></div></label> <div style="display:inline-block;background-color: red;width:20px;height:18px;" onclick="selectColor($(this).css('background-color'));"></div> <div style="display:inline-block;background-color: blue;width:20px;height:18px;" onclick="selectColor($(this).css('background-color'));"></div>
<?php } else { ?> <tr data-user-id="<?php echo $gv->id; ?> " class="bg-unread"> <td><?php echo $v[0]->id; ?> </td> <td style="max-width:220px;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;"><?php foreach ($v as $gv) { echo "<span "; if ($user['rankname'] == 'admin') { echo 'style="background-color:' . getPkgColor($gv->id) . ' !important;"'; } echo ">" . $gv->item . '</span><br>'; } ?> </td> <td><?php foreach ($v as $gv) { $groupItemPkgStatus = getPackageStatus($gv->id); echo iconPkgStatuses($groupItemPkgStatus->status_text) . "<br>"; } ?> </td> <td><?php foreach ($v as $gv) { foreach (getPackageNotes($gv->id) as $n_user_type => $n_text) {