출석부를 변형해서 사용하고 있는데 ... 포인트에 색깔을 입히는데....? 간단하게 수정부탁드립니다. 채택완료
출석부를 변형해서 소스를 수정해서 사용하고 있습니다.
포인트에 색깔을 입히는 소스를 수정해서 추가를 하는데...??
if ($data['point'] == 10) {
$rank_img_po = '<img src=http://www.sunjang.com/img/require.png><font color=ff0099><b>';
} else if ($data['point'] == 15) {
$rank_img_po = '<img src=http://www.sunjang.com/img/require.png><font color=ff0099><b>';
} else if ($data['point'] == 20) {
$rank_img_po = '<img src=http://www.sunjang.com/img/require.png><font color=ff0099><b>';
} else if ($data['point'] == 25) {
$rank_img_po = '<img src=http://www.sunjang.com/img/require.png><font color=ff0099><b>';
} else if ($data['point'] == 30) {
$rank_img_po = '<img src=http://www.sunjang.com/img/require.png><font color=ff0099><b>';
} else if ($data['point'] == 35) {
$rank_img_po = '<img src=http://www.sunjang.com/img/require.png><font color=ff0099><b>';
} else if ($data['point'] == 40) {
$rank_img_po = '<img src=http://www.sunjang.com/img/require.png><font color=ff0099><b>';
} else if ($data['point'] == 45) {
$rank_img_po = '<img src=http://www.sunjang.com/img/require.png><font color=ff0099><b>';
} else if ($data['point'] == 50) {
$rank_img_po = '<img src=http://www.sunjang.com/img/require.png><font color=ff0099><b>';
} else if ($data['point'] == 55) {
$rank_img_po = '<img src=http://www.sunjang.com/img/require.png><font color=0000ff><b>';
} else if ($data['point'] == 60) {
$rank_img_po = '<img src=http://www.sunjang.com/img/require.png><font color=0000ff><b>';
} else if ($data['point'] == 65) {
$rank_img_po = '<img src=http://www.sunjang.com/img/require.png><font color=0000ff><b>';
} else if ($data['point'] == 70) {
$rank_img_po = '<img src=http://www.sunjang.com/img/require.png><font color=0000ff><b>';
} else if ($data['point'] == 75) {
$rank_img_po = '<img src=http://www.sunjang.com/img/require.png><font color=0000ff><b>';
} else if ($data['point'] == 80) {
$rank_img_po = '<img src=http://www.sunjang.com/img/require.png><font color=0000ff><b>';
} else {
$rank_img_po = '';
}
10점 부터 5점씩추가하는 포인트에 색깔을 입히는데...
무한대로 적용하려고하는데 일일이 적어주니 너무 소스가 길어지네요
간단히 적용할수 있는 소스로 변경 부탁드립니다
답변 3개
</p>
<p>$rank_img_po = '';</p>
<p>if ($data['point'] >= 10 && $data['point'] % 5 == 0) {</p>
<p> $rank_img_po = '<img src=<a href="http://www.sunjang.com/img/require.png><font" target="_blank" rel="noopener noreferrer">http://www.sunjang.com/img/require.png><font</a> color=ff0099><b>';</p>
<p>}</p>
<p>
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
감사합니다 넓은마인드님